VPN推荐评测
VPN

FortiClient IPsec Over TCP: What It Is and How to Set It Up

宋知遥··8 min
FortiClient IPsec Over TCP: What It Is and How to Set It Up

Learn what FortiClient IPsec over TCP does, when it helps, and how to configure and troubleshoot it.

FortiClient IPsec over TCP lets an IPsec VPN tunnel travel inside a TCP connection, making it useful on networks that block or interfere with the UDP traffic normally used by IPsec. To use it, configure the feature and a matching TCP port on the FortiGate, then connect with a compatible FortiClient profile. Availability and configuration details vary by FortiOS and FortiClient version, so check the documentation for your releases before changing a production VPN.

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 IPsec transport options

OptionTransportFirewall traversalBest suited forMain trade-off
IPsec over UDPUDP, commonly port 500 and 4500May be blocked on restrictive networksNetworks that allow IPsec trafficCan fail where UDP is restricted
IPsec over TCPTCP, using a configured portOften works through networks that allow the selected TCP portRestrictive networks that block IPsec UDPMay add overhead or reduce performance
SSL VPNTLS over TCPOften passes through common web-access rulesRemote access where SSL VPN is configuredDifferent VPN mode and setup
No VPNNo tunnelNot applicableAccess to public services onlyNo protected private-network access
IPsec over TCP with a reachable server portTCPWorks only if the port is permitted end to endManaged networks with matching client and gateway settingsRequires coordinated configuration
IPsec over TCP with a blocked server portTCPDoes not pass the blocking ruleNetworks where the required port is deniedConnection cannot be established

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

What FortiClient IPsec over TCP means

A standard IPsec VPN commonly uses IKE over UDP port 500 and, when NAT traversal is involved, UDP port 4500. Some public Wi-Fi, corporate networks, hotels, or mobile providers restrict UDP traffic. When that happens, the client may fail to establish or maintain a tunnel even though ordinary web browsing works.

IPsec over TCP wraps the VPN communication in a TCP connection. The network then sees TCP traffic on the configured port rather than the usual IPsec UDP traffic. This can help the connection get through firewalls that allow selected TCP ports.

It is still an IPsec VPN, not a separate VPN protocol. The FortiGate and client must both support the feature and agree on the relevant settings. Simply changing a firewall rule or entering a TCP port in an unrelated FortiClient field will not convert a standard IPsec profile.

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

When to use it

Consider IPsec over TCP when users cannot connect from networks that restrict UDP, but can reach the configured TCP port on the FortiGate. It can be a useful fallback for remote workers who move between home, public, and business networks. V2Ray for iOS: How to Choose an App and Connect Safely

It is not automatically better than ordinary IPsec. TCP encapsulation adds overhead, and it can perform poorly when the underlying network is lossy or when TCP traffic is already being carried inside another TCP-based connection. This effect, sometimes called TCP-over-TCP, can cause delays and retransmissions.

Option Typical transport Best suited for Main consideration
Native IPsec UDP 500 and UDP 4500 Networks that permit IPsec traffic Usually the preferred starting point
IPsec over TCP A configured TCP port Networks that block or disrupt UDP May add overhead or reduce throughput
SSL VPN Commonly TLS over TCP, depending on configuration Environments designed around SSL VPN access Availability and features depend on FortiOS version and deployment

Use the transport your organization supports. Do not assume that IPsec over TCP and SSL VPN are interchangeable. They have different configuration requirements and may be subject to different product or licensing limitations.

Requirements and setup checks

CheckClient sideFortiGate sideMatch required?If missing
FortiClient versionSupports the intended IPsec configurationCompatible VPN configurationYesClient may not offer or establish the connection
VPN typeSelect IPsec VPNConfigure an IPsec tunnelYesSettings do not apply to the same VPN type
TCP transportEnable or select TCP transportEnable IPsec over TCPYesClient and gateway cannot negotiate as intended
TCP portUse the configured portListen on the same portYesTraffic may reach the wrong service or be rejected
Server addressEnter the FortiGate hostname or addressProvide a reachable public endpointYesClient cannot find the VPN gateway
AuthenticationProvide the configured credentials or certificateConfigure matching authenticationYesAuthentication fails
Network accessPermit outbound TCP to the VPN endpointAllow inbound traffic to the configured portYesFirewall or routing blocks the connection
User accessUse an authorized accountGrant VPN access and required policiesYesLogin may succeed without access to intended resources

Compiled November 2026; check the provider's site for current details. Clash Verge on iPhone: What Works and What to Use Instead

Requirements and configuration

Before making changes, confirm that your FortiGate model and FortiOS version support IPsec over TCP, and that the installed FortiClient version supports the corresponding client-side option. Feature names and GUI locations can differ across releases.

You will generally need to:

  1. Choose a TCP port for the VPN listener. The port must be permitted by upstream firewalls and available on the FortiGate.
  2. Enable IPsec over TCP on the relevant FortiGate VPN configuration and specify the chosen port, following the documentation for your FortiOS version.
  3. Allow inbound traffic to that port through any intervening firewall, router, or cloud security group.
  4. Configure the FortiClient IPsec profile to use IPsec over TCP and enter the matching server address and port, if the client presents those options.
  5. Confirm that authentication, certificates or pre-shared keys, proposals, and other VPN parameters match the FortiGate configuration.
  6. Test the connection from a network where native IPsec is known to be blocked.

A port such as TCP 443 may be convenient because it is commonly allowed for web traffic, but it is not a universal requirement. It can conflict with other services, and networks may inspect or restrict traffic even on that port. Select a port based on your organization’s network design, then document and consistently configure it at both ends.

For managed deployments, update the FortiClient profile through the organization’s approved management method rather than asking users to create ad hoc profiles. Keep a working native-IPsec profile available if users also connect from networks that permit UDP. Clash Verge for iOS: What iPhone Users Need to Know

Troubleshooting connection problems

If the tunnel does not connect, check the path from the client to the FortiGate before changing authentication settings.

  • Verify the port: Confirm the client targets the correct public address and TCP port, and that the port is allowed through every firewall or NAT device.
  • Check listener and policy configuration: Ensure the FortiGate is configured to accept the connection on that port and that no competing service is using it.
  • Compare client and gateway settings: Confirm the profile uses the intended transport and that the VPN parameters match.
  • Review logs: Check FortiClient diagnostics and FortiGate event or VPN logs for clues such as timeouts, rejected authentication, or negotiation failures.
  • Test from another network: A successful connection from a mobile hotspot but not from an office network can point to filtering or inspection on the original network.
  • Check software compatibility: Confirm the client and gateway versions support the same feature and configuration options.

A TCP connection that reaches the FortiGate does not guarantee that VPN negotiation will succeed. If the transport connects but authentication or negotiation fails, investigate credentials, certificates, cryptographic settings, user permissions, and gateway configuration separately. Avoid weakening security settings as a quick fix.

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

Security and performance considerations

Use a port that your network team can monitor and protect. Exposing a VPN listener to the internet increases the importance of strong authentication, timely software updates, and appropriate access controls. Apply FortiGate security guidance, restrict access where practical, and review logs for repeated failures.

After deployment, measure the experience rather than assuming the TCP option improves it. Test sign-in time, throughput, latency, and stability on the networks users actually rely on. If users can connect with native IPsec, that is often the better default. Reserve TCP encapsulation for environments where it solves a real reachability problem. Sites Blocked When Using VPN: Causes and Fixes

Troubleshoot by symptom

SymptomLikely areaWhat to checkPossible next stepSecurity or performance note
Cannot reach the gatewayAddress or routingHostname, endpoint address, and network routeTest from another permitted networkAvoid exposing management services
Connection times outPort or firewallTCP port and inbound or outbound rulesAsk the network administrator to allow the configured portAllow only required traffic
Connection is refusedListener or port mismatchFortiGate listener and client portAlign the configured TCP port at both endsDo not open unrelated ports
Authentication failsCredentials or identity settingsUsername, password, certificate, and authentication methodCorrect credentials or certificate configurationUse strong authentication
Tunnel connects but resources do notPolicies or routingVPN policies, routes, and destination accessReview FortiGate access rules and client routesGrant only necessary access
Connection works but feels slowTransport or network qualityLatency, packet loss, and competing trafficCompare performance on a network that permits UDPTCP tunneling can add overhead
Connection drops intermittentlyNetwork stability or timeoutsFirewall timeouts and connection logsReview logs on both client and FortiGateKeep client and gateway software maintained
TCP works where UDP failsNetwork restrictionsWhether UDP is blocked and TCP is allowedUse IPsec over TCP if supported and configuredPrefer the transport permitted by policy

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

Recommendation

Use FortiClient IPsec over TCP as a compatibility option when UDP-based IPsec is blocked or unreliable. First verify support for your FortiOS and FortiClient versions, configure the same TCP port on the FortiGate and client, and test through the restrictive network. Keep native IPsec as the preferred transport where it works, and follow your organization’s security and change-management procedures.

© 2026 信远网络评测 · Xinyuan Net Review Ltd.