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.
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
| Option | Transport | Firewall traversal | Best suited for | Main trade-off |
|---|---|---|---|---|
| IPsec over UDP | UDP, commonly port 500 and 4500 | May be blocked on restrictive networks | Networks that allow IPsec traffic | Can fail where UDP is restricted |
| IPsec over TCP | TCP, using a configured port | Often works through networks that allow the selected TCP port | Restrictive networks that block IPsec UDP | May add overhead or reduce performance |
| SSL VPN | TLS over TCP | Often passes through common web-access rules | Remote access where SSL VPN is configured | Different VPN mode and setup |
| No VPN | No tunnel | Not applicable | Access to public services only | No protected private-network access |
| IPsec over TCP with a reachable server port | TCP | Works only if the port is permitted end to end | Managed networks with matching client and gateway settings | Requires coordinated configuration |
| IPsec over TCP with a blocked server port | TCP | Does not pass the blocking rule | Networks where the required port is denied | Connection 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.
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
| Check | Client side | FortiGate side | Match required? | If missing |
|---|---|---|---|---|
| FortiClient version | Supports the intended IPsec configuration | Compatible VPN configuration | Yes | Client may not offer or establish the connection |
| VPN type | Select IPsec VPN | Configure an IPsec tunnel | Yes | Settings do not apply to the same VPN type |
| TCP transport | Enable or select TCP transport | Enable IPsec over TCP | Yes | Client and gateway cannot negotiate as intended |
| TCP port | Use the configured port | Listen on the same port | Yes | Traffic may reach the wrong service or be rejected |
| Server address | Enter the FortiGate hostname or address | Provide a reachable public endpoint | Yes | Client cannot find the VPN gateway |
| Authentication | Provide the configured credentials or certificate | Configure matching authentication | Yes | Authentication fails |
| Network access | Permit outbound TCP to the VPN endpoint | Allow inbound traffic to the configured port | Yes | Firewall or routing blocks the connection |
| User access | Use an authorized account | Grant VPN access and required policies | Yes | Login 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:
- Choose a TCP port for the VPN listener. The port must be permitted by upstream firewalls and available on the FortiGate.
- Enable IPsec over TCP on the relevant FortiGate VPN configuration and specify the chosen port, following the documentation for your FortiOS version.
- Allow inbound traffic to that port through any intervening firewall, router, or cloud security group.
- Configure the FortiClient IPsec profile to use IPsec over TCP and enter the matching server address and port, if the client presents those options.
- Confirm that authentication, certificates or pre-shared keys, proposals, and other VPN parameters match the FortiGate configuration.
- 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.
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
| Symptom | Likely area | What to check | Possible next step | Security or performance note |
|---|---|---|---|---|
| Cannot reach the gateway | Address or routing | Hostname, endpoint address, and network route | Test from another permitted network | Avoid exposing management services |
| Connection times out | Port or firewall | TCP port and inbound or outbound rules | Ask the network administrator to allow the configured port | Allow only required traffic |
| Connection is refused | Listener or port mismatch | FortiGate listener and client port | Align the configured TCP port at both ends | Do not open unrelated ports |
| Authentication fails | Credentials or identity settings | Username, password, certificate, and authentication method | Correct credentials or certificate configuration | Use strong authentication |
| Tunnel connects but resources do not | Policies or routing | VPN policies, routes, and destination access | Review FortiGate access rules and client routes | Grant only necessary access |
| Connection works but feels slow | Transport or network quality | Latency, packet loss, and competing traffic | Compare performance on a network that permits UDP | TCP tunneling can add overhead |
| Connection drops intermittently | Network stability or timeouts | Firewall timeouts and connection logs | Review logs on both client and FortiGate | Keep client and gateway software maintained |
| TCP works where UDP fails | Network restrictions | Whether UDP is blocked and TCP is allowed | Use IPsec over TCP if supported and configured | Prefer 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.
