Troubleshooting Tip: How to fix the error 'Unable to establish VPN connection. The VPN server may be unreachable (-6005)'
| Description | This article describes the case when logging into the FortiClient, it shows the following error: 'Unable to establish VPN connection. The VPN server may be unreachable(-6005)'. |
| Scope | FortiClient, FortiGate. |
| Solution | When trying to establish a VPN connection, users receive an error message that says 'Unable to establish VPN connection. The VPN server may be unreachable (-6005)'.
Check the configuration to ensure everything is correct. This error is usually caused by an incorrect VPN gateway configuration or incorrect authentication configuration in the case of SAML authentication.
Ensure it is possible to connect and pass authentication using the configured VPN gateway URL from the browser. This does not require enabling web access: it should be possible to see a login page even with tunnel-only access enabled.
The issue can sometimes be resolved by uninstalling the current version of FortiClient.
To ensure a clean uninstall, use the FCRemove tool. See this article: Technical Tip: How to download FortiClient and FCRemove exe from Support.fortinet.com.
Additional tips:
config system global set remoteauthtimeout 180 end
If the user is getting this error message when connecting to SSL VPN after upgrading to firmware version 7.2.12, do refer to Troubleshooting Tip: SAML Authentication fails after firmware upgrade to v7.2.12, v7.4.9 or v7.6.4.
This change resolves the SAML authentication issue that may occur after the firmware upgrade. |


