Description | This article discusses the reason SSL VPN Bookmark failed when IP Pool is used in the policy. |
Scope | FortiOS 6.4.9, 7.0.1, 7.2.0 and earlier. |
Solution |
Working with SSL VPN Web Mode, create a personal Bookmark to connect internal resources.
When the Bookmark is used by the user, the FortiGate creates a local connection from Fortigate to the remote resource. The FortiGate will use the source IP as the local IP of the interface getting out to reach the internal resource.
[SSLVPN Bookmark] Foritgate [Internal1 - IP x.x.x.x] <-> [y.y.y.y] WebServer.
The TCP packet will form as following:
src.ip x.x.x.x,dst.ip y.y.y.y, src.port aaaa, dst.port 443
There are situations where customers will use a different IP other than the Internal1 (x.x.x.x), usually, an IP Pool is this option.
After FortiOS v6.4.9, v7.0.1 and v7.2.0 the way to manage this traffic in FortiOS changed because of optimization of the kernel processing flow.
For example, by having the following topology and following configuration we can demonstrate the behavior.
Internet -> [VPN SSL Bookmark] Fortigate1 [ippool] <-> IPSec <-> [Fortigate2] <-> WebSever [10.120.0.52.8080]
# config vpn ssl web portal
# config firewall ippool
# config firewall policy edit 3 set name "ToVpn" next
The IPSec SA selectors are specific to IP Pool 172.26.6.5 by company policy restrictions.
# config vpn ipsec phase2-interface
Only enabling the IP Pool on the firewall policy the SSL VPN Bookmark will fail, because the packet responds sync/ack from WebServer will be forward to the Internet since FG don't recognize the connection as local.
# diagnose sniffer packet any '10.120.0.52' 4 0 l Using Original Sniffing Mode To FortiGate recognize this traffic as local, define IP pool addresses as the secondary IPs for the outgoing interface or use a loopback interface.
Creating the loopback interface the SSL VPN Bookmark works.
# config system interface
The sync/ack now is handled by FortiGate and the Web server works.
# diagnose sniffer packet any 'host 10.120.0.52' 4 0 l Using Original Sniffing Mode
|
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 2023 Fortinet, Inc. All Rights Reserved.