检查 fortinet端口状态
- 服务器端: 使用命令
curl -X POST http://localhost:92/requests -H "Content-Type: application/json" -d '{"port":12355}'检查 fortinet server是否可以接收到请求。 - 客户端端: 测试 fortinet server是否支持请求参数,使用
curl -X POST http://localhost:12355/requests -H "Content-Type: application/json" -d '{"port":12355}'。
发送请求检查
- 在 fortinet server端发送请求,检查是否成功。
curl -X POST http://localhost:92/requests -H "Content-Type: application/json" -d '{"port":12355}' - 如果请求成功,检查 fortinet server是否接收到请求(如使用
curl -X POST http://localhost:12355/requests -H "Content-Type: application/json" -d '{"port":12355}')。
检查网络连接
- 使用网络工具(如
ping)检查 fortinet server和服务器之间的距离。ping fortinet-server ping server
- 如果距离过远,确保网络带宽足够,或者使用VPN连接。
检查 fortinet版本
- 确保 fortinet版本支持请求参数,如
requests版本为 5.1. 或更高。echo ' Fortinet requests version' | fortinet --version
- 如果版本不足,尝试更新 fortinet。
检查 fortinet配置
- 确保 fortinet配置允许请求参数的接收。
fortinet list --show-config --config= fortinet.conf
- fortinet 未正确配置请求参数,尝试调整配置。
测试 fortinet server访问权限
- 测试 fortinet server是否允许访问,
curl -X POST http://localhost:92/requests -H "Content-Type: application/json" -d '{"port":12355}' - fortinet server不支持请求,可能需要重新配置 fortinet。
检查 fortinet server连接状态
- 测试 fortinet server是否在运行:
curl -X POST http://localhost:12355/requests -H "Content-Type: application/json" -d '{"port":12355}' - fortinet server无法接收到请求,检查其是否处于运行状态。
联系 fortinet支持
- 如果上述步骤均未解决问题,可能需要联系 fortinet支持团队,提供详细问题描述,以便进一步排查。
通过以上步骤,可以逐步排查并解决Fortinet VPN连接失败的问题,确保网络连接的稳定性。









