Technical Tip: How to control/change the FortiGate source IP for self-originating traffic: SNMP, Syslog, FortiAnalyzer, Alert Email, FortiManager
| Description | This article describes how to change the source interface IP that the FortiGate will use when sending TCP/UDP packets to the following log, trap, or alarm receivers. |
| Scope | FortiOS v6.0 and above. |
| Solution | By default, the source IP is the one from the FortiGate egress interface. This feature allows, for example, specifying a loopback address as the source IP:
This feature is available only in the CLI.
config system snmp community For SNMP v3: config system snmp user
A sniffer trace allows to verify the source IP of the packets sent:
4.030647 internal out 10.160.10.1.162 -> 10.160.0.171.162: udp 112
From v7.0.0 and later, local out routing can be modified in the GUI as well:
CLI:
config system global Note:
Related articles: Technical Tip : Configuring and using a loopback interface on a FortiGate Technical Tip: How a FortiManager can manage a FortiGate via Redundant WAN interfaces |
