Created on
09-26-2024
07:48 AM
Edited on
10-17-2025
02:04 AM
By
Anthony_E
| 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:
|
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.