Technical Tip: FortiOS responds to VRF 0 local traffic using a different VRF
| Description | This article describes the expected FortiOS behavior when management traffic is received on VRF 0. |
| Scope | FortiGate v7.4.1 and later. |
| Solution | After upgrading to v7.4.1 or later, FortiOS may respond to management traffic received on VRF 0 using a different VRF and different interface, if a more specific route exists in a different VRF. This can cause the firewall to not be accessible using HTTPS and SSH after the upgrade.
VRF 0 is a special VRF that includes routes from multiple VRFs. See this document: Virtual routing and forwarding.
After the upgrade, the most specific route is used to forward replies received in VRF 0 if the most specific route is in a different VRF.
Example configuration:
config system interface edit "port1" set vdom "root" set vrf 0 <-- Default configuration. set ip 10.255.4.31 255.255.252.0 set allowaccess ping https ssh next end
Routing Table:
get router info routing-table all
Routing table for VRF=0
Routing table for VRF=2
Packet sniffer showing different interfaces used to forward replies:
Because the most specific route to the IP address 10.254.200.200 is via port1.0003, this interface is used to forward replies for management traffic, causing asymmetric routing and possible packet loss.
Workarounds:
config router static edit <index> set dst 10.0.0.0 255.0.0.0 set gateway 10.255.7.254 next end
Note: The issue above is not present in v7.4.11, but may occur if the more specific route via another VRF is a 'blackhole' route.
Example: config router static |
