Description | This article describes how to configure a link-monitor on IPSec Aggregate and disable the routes associated with this aggregate. |
Scope | FortiGate v6.4, v7.0, v7.2, v7.4 and v7.6 |
Solution |
In v7.0.1 the routing behavior is changed, all routes associated with IPSec aggregate will stay UP even if the aggregate is down. As a workaround could be used a link-monitor .
Example topology:
There is an IPSec aggregate between FortiGate-1 and FortiGate-2 with 2 IPSec members. With the current change of behavior, all routes on FortiGate-1 and FortiGate-2 associated with IPSec aggregate will stay up even if the IPSec aggregate us down. In order to make all routes associated with the IPSec aggregate inactive when it's down, a Link-monitor could be used.
Config of Phase-1 VPN_1 and VPN_2 of FortiGate-1:
config vpn ipsec phase1-interface end FortiGate-1 IPSec aggregate :
config system ipsec-aggregate
On both FortiGates, it is assigned an IPv4 address of the IPSec aggregate :
FortiGate-1 aggregate interface config :
config system interface
FortiGate-2 aggregate interface config:
config system interface
Link-monitor configuration on FortiGate-1:
config system link-monitor
It is visible from the output above, that for ICMP target uses an IP address 192.168.77.2 which belongs to the IPSec aggregate tunnel of FortiGate-2. If IPSec tunnels are down (VPN_1 and VPN_2), then the link-monitoring will report the aggregate as down. As a result, all routes associated with the IPSec aggregate will be inactive.
The routing table on FortiGate-1 when the aggregate IPSec is up:
get router info routing-table all | grep aggregate
Diagnose output for link-monitor, when the aggregate is UP :
diagnose sys link-monitor status Link Monitor: aggregate_monitor, Status: alive, Server num(1), cfg_version=0 HA state: local(alive), shared(alive)
Diagnose output for link-monitor, when the aggregate is down:
diagnose sys link-monitor status Link Monitor: aggregate_monitor, Status: dead, Server num(1), cfg_version=0 HA state: local(dead), shared(dead)
The routing table on FortiGate-1 when the aggregate IPSec is down:
get router info routing-table all | grep aggregate
The 'connected' routes associated with the interface 'aggregate' are still active, but the routes for 1.1.1.1/32 and 10.99.99.1/32 are inactive because of the link-monitor. |
|
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.