Technical Tip: FortiGate in FGSP cluster does not disable static route when synced IPsec tunnel goes down
| Description | This article describes an under-investigation issue with static routing that can be triggered by tunnel failure in a FortiGate Session Life Support Protocol (FGSP) deployment. |
| Scope | FortiOS v7.4. |
| Solution | This issue is under investigation. Note that the most common High Availability (HA) clustering protocol on FortiGate devices is FortiGate Clustering Protocol (FGCP), which is not affected by this issue.
In an affected FGSP cluster, an IPsec tunnel may not be properly flagged as inactive when the tunnel is down on a peer, causing associated static routes to remain in the active routing table.
Example affected configuration:
config router static edit <index> set dst 10.255.255.0 255.255.255.0 set device "Cluster-HQ" next end
config system standalone-cluster set standalone-group-id 1 set group-member-id 1 config cluster-peer edit 1 set peerip 172.31.210.1 next end end
During the issue, no IPsec SA keys are visible in 'diagnose vpn tunnel list', indicating the tunnel is not able to pass traffic, but DPD status incorrectly shows 'ok': diagnose vpn tunnel list name=Cluster-HQ ver=2 serial=e 192.0.2.2:0->198.51.100.100:0 nexthop=192.0.2.1 tun_id=198.51.100.100 tun_id6=::198.51.100.100 status=up dst_mtu=1500 weight=1
proxyid_num=1 child_num=0 refcnt=3 ilast=199 olast=199 ad=/0
Note: It is not required to enable fgsp-sync on the IPsec tunnel to trigger the issue; it can be observed when fgsp-sync is disabled.
config vpn ipsec phase1-interface edit "Cluster-HQ" set fgsp-sync disable next end
Workaround: To workaround the issue, apply one of the following methods:
config system standalone-cluster config cluster-peer edit 1 set peerip <Peer IP Adress> set ipsec-tunnel-sync disable <-- Also disables IKE and IPsec SA synchronization between tunnel peers. next end end
config system standalone-cluster config cluster-peer edit 1 set peerip <Peer IP Adress> set secondary-add-ipsec-routes disable next end end
Related documents: |
