Troubleshooting: Routing issue with FortiGate on Oracle Cloud Infrastructure (OCI)
| Description | This article describes a routing issue with FortiGate on Oracle Cloud Infrastructure (OCI), where internet traffic is being routed through the port1 interface instead of the intended internet interface. |
| Scope | FortiGate VM in OCI v7.6.5. |
| Solution | The FortiGate OCI instance will add a kernel route '0.0.0.0/0 via port1' when using an ISCSI boot volume. Because of this route, the traffic will be forwarded via the port1 interface instead of the intended internet interface, taking precedence over the configured default route.
Example kernel route output:
get router info kernel
tab=65534 vf=0 vrf=0 scope=0 type=1 proto=18 prio=0 0.0.0.0/0.0.0.0/0->0.0.0.0/0 pref=0.0.0.0 gwy=10.0.24.1 dev=3(port1)
Example routing table output:
get router info routing-table all
Routing table for VRF=0
Workaround:
config router static edit 1 set dst 169.254.0.0 255.255.0.0 set gateway <Gateway IP> set device "port1" next end
diagnose ip route delete port1 0.0.0.0 0.0.0.0 <gateway> <distance> <priority>
For a permanent fix, it is necessary to upgrade the FortiGate firmware version to v7.6.7, v8.0.0, or above.
Refer to the following article for more information on configuring FortiGate on OCI: About FortiGate-VM for OCI. |
