VPN

FortiClient IPsec Over TCP: What It Is and How to Configure It

方屿白··7 min
FortiClient IPsec Over TCP: What It Is and How to Configure It

Learn when FortiClient IPsec over TCP helps, how to configure both ends, and how to troubleshoot common connection problems.

FortiClient IPsec over TCP lets an IPsec VPN tunnel use a TCP connection as its transport, which can help when a network blocks or disrupts the UDP traffic commonly used by IPsec. To make it work, enable the relevant IPsec-over-TCP option on the FortiGate VPN configuration and select matching settings in FortiClient. The exact menu names and availability can vary by FortiOS and FortiClient version, so check the documentation for your installed releases.

NordVPN — fast, secure VPN

Editor's pick: NordVPN — fast, secure VPN — Strong encryption, a no-logs policy and apps for every device. 30-day money-back guarantee. Get NordVPN →

Compare VPN transport options

OptionTransportNAT or firewall traversalPerformance impactBest fit
IPsec over UDPUDPMay be blocked by restrictive networksUsually lower overheadNetworks that allow IPsec traffic
IPsec over TCPTCPCan work through networks that block UDP-based IPsecMay add overhead or latencyRestrictive networks where UDP IPsec fails
SSL VPNTLS over TCPOften works through standard web-oriented firewall rulesDepends on configuration and network conditionsRemote access where SSL VPN is available
Direct connectionNative IPsec transportRequires compatible network accessAvoids TCP-over-TCP effectsUnrestricted networks
TCP fallbackTCP after UDP failureCan preserve access when UDP is unavailableMay be slower than UDPUsers needing a fallback path

Compiled November 2026; check the provider's site for current details.

What IPsec over TCP does

A typical IPsec VPN uses UDP for IKE negotiation and ESP for encrypted tunnel traffic. Some public Wi-Fi networks, restrictive firewalls, or upstream devices interfere with these packets. IPsec over TCP encapsulates the VPN traffic in a TCP connection, which may be allowed through those networks.

This is a transport workaround, not a different encryption method. IPsec still provides the VPN’s security; TCP carries the tunnel traffic through the network. The connection still depends on compatible settings at both ends and on the TCP port being reachable.

TCP port 443 is often used because networks commonly allow it for HTTPS, but it is not inherently required. The administrator chooses or confirms the port supported by the FortiGate configuration. A port conflict or an upstream firewall rule can prevent the VPN from connecting.

FortiClient IPsec Over TCP: What It Is and How to Configure It: Checklist

When to use it

Try IPsec over TCP when a standard IPsec connection works on some networks but fails on another, especially when the affected network restricts UDP traffic. It may also be useful when a user needs to connect from a network where conventional IPsec is not permitted. V2Ray for iOS: How to Choose, Set Up, and Use a Client

It is not a universal replacement for the default transport. TCP can add overhead, and carrying TCP-based application traffic inside a TCP-based VPN can sometimes cause performance problems under packet loss or congestion. If standard IPsec works reliably, there may be no reason to change it.

Option Transport behavior Best suited to
Standard IPsec Uses the usual IPsec and IKE transport, commonly over UDP Networks that allow normal IPsec traffic
IPsec over TCP Carries IPsec traffic inside a TCP connection on a configured port Networks that block or disrupt standard IPsec traffic

FortiClient IPsec over TCP configuration checklist

StepFortiGateFortiClientCheck
Confirm supportVerify the FortiGate supports the featureVerify the client version supports itBoth endpoints support TCP transport
Configure the tunnelEnable IPsec over TCP for the remote-access setupSelect the matching IPsec connection typeTransport settings match
Set the TCP portConfigure the listening portEnter the same portPort is permitted end to end
Allow network trafficPermit the configured port through firewall rulesConnect from the intended networkNo intermediary blocks the connection
Match authenticationConfigure compatible authentication and credentialsUse the assigned credentials and certificatesAuthentication settings agree
Match proposalsSet compatible encryption and integrity proposalsUse compatible tunnel settingsNegotiation succeeds
Test connectivityConfirm the service is listeningConnect and verify tunnel statusTraffic reaches intended resources

Compiled November 2026; check the provider's site for current details.

Configure FortiGate and FortiClient

First, confirm that your FortiGate model, FortiOS release, FortiClient edition, and FortiClient version support IPsec over TCP. Feature support and configuration labels can differ between releases. If the setting is missing, consult the release-specific Fortinet documentation or ask your VPN administrator. Do not assume a similarly named option is equivalent. Clash Verge on iPhone: What Works and What to Use Instead

On the FortiGate

The administrator should review the relevant IPsec VPN configuration and enable its TCP transport option, where supported. Set the TCP port and confirm that the FortiGate can accept connections on it. If a firewall or other network device sits in front of the FortiGate, allow traffic to that port as well.

Keep the rest of the VPN configuration consistent with the organization’s established setup. This includes authentication, certificates or pre-shared keys, encryption proposals, user access, and routing. Changing several settings at once makes connection failures harder to diagnose.

In FortiClient

Create or edit the IPsec VPN connection using the parameters supplied by the administrator. Enable the option for IPsec over TCP, if available, and enter the same TCP port configured on the FortiGate. Verify the gateway address, authentication method, credentials, and other required VPN settings.

After saving, connect from a network where the standard tunnel has failed. If the profile is managed centrally, local changes may be disabled or overwritten. Request an updated profile from the VPN administrator instead. Clash Verge for iOS: Is It Available, and What Can You Use Instead?

Troubleshoot common problems

If the VPN does not connect, compare the client and gateway settings before changing security options. Check these items first:

  • The FortiGate and FortiClient versions support the feature.
  • IPsec over TCP is enabled at both ends.
  • The TCP port matches exactly and is reachable from the client’s network.
  • The VPN gateway address and authentication details are correct.
  • The FortiGate is listening on the expected interface and port.
  • Local or upstream firewalls are not blocking the connection.

A timeout often points to a reachability problem, such as a blocked port, incorrect destination, or missing listener. An authentication or negotiation error may instead indicate mismatched credentials, proposals, certificates, or VPN settings. Review FortiClient logs and FortiGate VPN event logs for the specific failure rather than relying on a generic “connection failed” message.

Also test from a different network, such as a trusted mobile hotspot, if company policy permits. If the VPN connects there but not on the original network, the original network may be filtering the selected TCP port or VPN traffic. Do not switch to port 443 blindly: another service may already use it, and the FortiGate must be configured to accept the VPN connection on that port.

FortiClient IPsec Over TCP: What It Is and How to Configure It: Key points

Troubleshoot and choose a connection approach Why Sites Are Blocked When Using a VPN, and How to Fix It

Symptom or needLikely area to checkUseful actionConsider TCP over IPsec when
UDP-based tunnel cannot connectNetwork blocks or filters UDPTest from another networkUDP access is restricted
TCP connection times outPort, routing, or firewall policyConfirm the configured port is reachableA permitted TCP path exists
Authentication failsCredentials, certificates, or policyCompare client and gateway authentication settingsNot a transport-related fix
Tunnel negotiation failsMismatched proposals or configurationVerify compatible IPsec settings at both endsTransport settings already match
Tunnel connects but apps failRoutes, DNS, or access policiesCheck assigned routes and firewall rulesNot a transport-related fix
Connection is slowLatency, congestion, or TCP-over-TCP behaviorCompare performance on an allowed UDP pathConnectivity matters more than speed
Security is a concernEncryption, authentication, and endpoint policyUse approved cryptographic settings and secure credentialsTCP transport is needed without weakening IPsec
UDP works reliablyNo restrictive network issuePrefer the simpler working transportThere is no need for TCP fallback

Compiled November 2026; check the provider's site for current details.

Performance and security considerations

TCP encapsulation can make a tunnel possible on restrictive networks, but it may not improve speed or reliability in every case. If applications become sluggish, compare performance with standard IPsec on a network that allows it. Network congestion, packet loss, and the extra encapsulation can all affect the result.

Use only administrator-approved VPN profiles and ports. Keep FortiGate and FortiClient updated, retain the organization’s required authentication and encryption settings, and avoid exposing management services while opening a port for VPN access. IPsec over TCP changes how the traffic is carried. It should not be treated as a reason to weaken the VPN’s security controls.

Recommendation

Use FortiClient IPsec over TCP when standard IPsec is blocked or unreliable and both the FortiGate and client support the feature. Have the VPN administrator configure the gateway and port, then match those settings in FortiClient. If the connection still fails, check logs and network reachability before changing authentication or encryption settings. Axgate VPN Download: How to Find and Install the Right Client