Technical Tip: How to preserve source port when central NAT is enabled
| Description | This article describes how to enable a preserved source port when NAT translation is managed centrally. |
| Scope | FortiOS v7.0 and above. |
| Solution | In FortiOS running in no central SNAT mode, the preserve source port can be enabled in the firewall policy from the GUI/CLI.
config firewall policy edit <policy id> set fixedport <enable/disable> end
In the Central SNAT mode, there is no more 'set fixedport <enable/disable>' command. The central SNAT table allows for more granular control over address translation performed by FortiGate. The NAT table defines rules for the source address or address group, and which IP pool the destination address uses.
set port-preserve <preservation of the original source port from SNAT> <----- Available since v7.4.4. set dst-port <destination port or port range> <----- Available since v7.2.8.
The following are the options to preserve the source port:
|


