Description | This article describes how to configure subnet to subnet NAT. |
Scope | FortiGate, SNAT |
Solution |
Original source network: 10.20.30.0/24
Translated SNAT network: 172.16.25.0/24
Network original and NAT must have the same netmask in this case /24. and the fourth octet will always match, for example:
Original -SNAT-> Translated 10.20.30.1 -SNAT-> 172.16.25.1 10.20.30.66 -SNAT-> 172.16.25.66 10.20.30.128 -SNAT-> 172.16.25.128 10.20.30.250 -SNAT-> 172.16.25.250
And so on.
Configure a port-fixed fixed IP-Pool:
config firewall ippool edit "10.20.30-SNAT-172.16.25" set type fixed-port-range next end
And apply it in an outbound Firewall Policy.
Results.
diag sniffer packet any 'host 192.168.200.1 and icmp' 4
diag sniffer packet any 'host 192.168.200.1 and icmp' 4 |
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.