FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
jvaishnav
Staff
Staff
Article Id 189542

Description

 

This article describes how to troubleshoot the SSL VPN issue.

 

Scope

 

FortiGate versions : 6.4.x - 7.0.x - 7.2.x - 7.4.x - 7.6.x

Solution

 

SSL VPN debug command.

Use the following diagnose commands to identify SSL VPN issues. These commands enable debugging of SSL VPN with a debug level of -1 for detailed results.

 

diagnose vpn ssl debug-filter src-addr4 x.x.x.x
diagnose debug application sslvpn -1
diagnose debug enable


Note:

x.x.x.x should be the public IP of the connecting user. The filter will ensure that the debug information relevant only to traffic from the specified IP address is captured, helping to focus on specific client troubleshooting.

The CLI displays debug output similar to the following:

 

[282:root]SSL state:before/accept initialization (172.20.120.12)
[282:root]SSL state:SSLv3 read client hello A (172.20.120.12)
[282:root]SSL state:SSLv3 write server hello A (172.20.120.12)
[282:root]SSL state:SSLv3 write change cipher spec A (172.20.120.12)
[282:root]SSL state:SSLv3 write finished B (172.20.120.12)
[282:root]SSL state:SSLv3 flush data (172.20.120.12)
[282:root]SSL state:SSLv3 read finished A:system lib(172.20.120.12)
[282:root]SSL state:SSLv3 read finished A (172.20.120.12)
[282:root]SSL state:SSL negotiation finished successfully (172.20.120.12)
[282:root]SSL established: DHE-RSA-AES256-SHA SSLv3 Kx=DH Au=RSA Enc=AES(256) Mac=SHA1

 

To disable the debug.

 

diagnose debug disable
diagnose debug reset

 

Remote user authentication debug command.

Use the following diagnose commands to identify remote user authentication issues.

 

diagnose debug application fnbamd -1
diagnose debug enable

 

Use the following diagnose commands to identify SAML user authentication issues.

 

diagnose debug application samld -1

diagnose debug enable

 

Troubleshooting common issues.

To troubleshoot getting no response from the SSL VPN URL:

 

  • Go to VPN -> SSL-VPN SettingsCheck the SSL VPN port assignment. Make sure the port number does not conflict with HTTPS or Virtual IPs.
      Capture4.png

     

  • Check the restrict access setting to ensure the host connected from is allowed.


Capture2.png

 

  • Go to Policy & Objects -> Firewall PolicyCheck that the policy for SSL VPN traffic is configured correctly.


Capture3.PNG

 

  • Check the URL to connect to. It follows this pattern: https://<FortiGate IP>:<Port>. Check the correct port number in the URL is used. Ensure FortiGate is reachable from the computer.


Capture.png

 

  • Ping <FortiGate IP> to see if it is reachable (If PING is enabled on the FortiGate interface).
  • Check the browser has TLS 1.1, TLS 1.2, and TLS 1.3 enabled.
  • When using FQDN to connect, make sure it resolves to the IP address of the FortiGate correctly.
  • Check local-in-policy in the FortiGate CLI by running 'show firewall local-in-policy'.

To troubleshoot FortiGate connection issues.

 

  • Check the Release Notes to ensure that the FortiClient version is compatible with the version of FortiOS.
    FortiClient uses IE security setting, In IE Internet options -> Advanced -> Security, check that Use TLS 1.1 and Use TLS 1.2 are enabled.
  • Check that SSL VPN 'ip-pools' have free IPs to sign out. The default 'ip-pools' SSLVPN_TUNNEL_ADDR1 has 10 IP addresses. Export and check FortiClient debug logs. Go to File -> SettingsIn the Logging section, enable Export logs. Set the Log Level to Debug and select Clear logs. Try to connect to the VPN. When a connection error is get, select 'Export logs'.  

   

 

To troubleshoot SSL VPN hanging or disconnecting at 48%

  • Negotiation stops at this percentage if there is an issue with two-factor authentication.
  • If negotiation stops at this percentage with the error 'Credential or SSL VPN configuration is wrong (-7200)', recheck the credentials.
  • To resolve the 'Credential or SSL VPN configuration is wrong (-7200)' error, follow the steps in this troubleshooting article.

 

To troubleshoot SSL VPN hanging or disconnecting at 98%.

A new SSL VPN driver was added to FortiClient 5.6.0 and later to resolve SSL VPN connection issues. If the FortiOS version is compatible, upgrade to use one of these versions. Latency or poor network connectivity can cause login timeout on FortiGate. In v5.6.0 and later, use the following commands to allow a user to increase the SSL VPN login timeout setting.

 

config vpn ssl settings
    set login-timeout 180 (default is 30)
    set dtls-hello-timeout 60 (default is 10)
end

 

To troubleshoot tunnel mode connections shutting down after a few seconds.

This happens if there are multiple interfaces connected to the Internet, for example, SD-WAN. This can cause the session to become 'dirty'.

To allow multiple interfaces to connect, use the following CLI commands.

For v6.0.1 or later.

 

config system interface
    edit <name>
        set preserve-session-route enable
    next
end

 

For v6.0.0 or earlier.

 

config vpn ssl settings
    set route-source-interface enable
end

 

To troubleshoot users being assigned to the wrong IP range.

Go to VPN -> SSL-VPN Portals and VPN -> SSL-VPN Settings and ensure the same IP pool is used in both places. Using the same IP Pool prevents conflicts. If there is a conflict, the portal settings are used.

To troubleshoot slow SSL VPN throughput.

Many factors can contribute to slow throughput.
This recommendation aims to improve throughput by using the FortiOS Datagram Transport Layer Security (DTLS) tunnel option, available in FortiOS 5.4 and above.
DTLS allows SSL VPN to encrypt traffic using TLS and uses UDP as the transport layer instead of TCP. This avoids retransmission problems that can occur with TCP-in-TCP.
FortiClient 5.4.0 to 5.4.3 uses DTLS by default.
FortiClient 5.4.4 and later uses normal TLS, regardless of the DTLS setting on the FortiGate.


To use DTLS with FortiClient:

Go to File -> Settings and enable 'Preferred DTLS Tunnel'

To enable the DTLS tunnel on FortiGate, use the following CLI commands.

 

config vpn ssl settings
    set dtls-tunnel enable
end

 

Too many failed login attempts (brute force) can cause high resource consumption and slow down performance. To prevent it, do the following:

 

Additionally, to check the basic SSL VPN statistics, run the following command with the proper parameter:

 

diagnose vpn ssl [list/info/statistics/debug-filter/hw-acceleration-status]

               

  • list: for current connections
  • info: for general information
  • statistics: for memory usage, concurrent and maximum connections
  • hw-acceleration-status: for the hardware acceleration status

 

For slow file transfer issues, refer to this article.

 

Note:

SSL VPN is no longer supported on FortiGate with 2 GB RAM or less, starting from v7.4.4 GA and above.
To confirm if a FortiGate has 2 GB RAM or less, enter the command 'diagnose hardware sysinfo conserve' in CLI. If the total RAM is less than 2000 MB, it means the device has 2 GB RAM or less.

 

60f-conserve-mode.PNG

 

Related articles:

Troubleshooting Tip: Possible reasons for FortiClient SSL VPN connectivity failure at specific perce...

Troubleshooting Tip: SSL VPN fails at 98%