Created on
06-26-2025
10:13 PM
Edited on
09-16-2025
10:04 PM
By
Jean-Philippe_P
Description
This article describes recommended best practices for deploying an IPsec dial-up Virtual Private Network (VPN) tunnel over Transmission Control Protocol (TCP) on FortiGate devices. This configuration is typically used in environments where User Datagram Protocol (UDP) traffic is restricted or blocked by intermediate firewalls or carrier-grade NAT.
Scope
FortiGate v7.2 and above.
Solution
Use Case.
IPsec VPN over TCP enables IPsec tunnels to function reliably in networks where standard protocols such as UDP/500 and IP protocol 50 (ESP) are not permitted. TCP encapsulation ensures that VPN traffic can traverse restrictive networks, including public Wi-Fi, mobile carrier networks, or enterprise firewalls with strict outbound rules.
Recommended Best Practices:
Example CLI Configuration.
On the dial-up server FortiGate (listening on TCP port 443):
config system settings
show full | grep ike-tcp-port
set ike-tcp-port 443
end
config vpn ipsec phase1-interface
edit "dialup-tcp"
set type dynamic
set interface "wan1"
set mode aggressive
set peertype any
set proposal aes256-sha256
set dhgrp 14
set encapsulation tcp
set psksecret ENC <encrypted_psk>
next
end
config firewall policy
edit <id>
set tcp-mss-sender 1360
set tcp-mss-receiver 1360
next
end
On the dial-up client FortiGate:
config system settings
show full | grep ike-tcp-port
set ike-tcp-port 443
end
config vpn ipsec phase1-interface
edit "client-tcp"
set type dynamic
set interface "wan1"
set remote-gw x.x.x.x
set mode aggressive
set peertype any
set proposal aes256-sha256
set dhgrp 14
set encapsulation tcp
set psksecret ENC <encrypted_psk>
next
end
config firewall policy
edit <id>
set tcp-mss-sender 1360
set tcp-mss-receiver 1360
next
end
Monitoring.
Use the following command to verify the tunnel's encapsulation method and active status:
diagnose vpn tunnel list | grep encap
Additional Considerations:
Related documents:
Technical Tip: Troubleshooting IPsec VPN tunnel connectivity
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.