Fortigate DNAT issue - Applied to all traffic regardless of filter
- June 26, 2018
- 6 replies
- 9438 views
Hi,
I am having a strange issue with Central NAT - DNAT configuration.
Below is my topology.

Below are the configuration:
[style="background-color: #ffff00;"]config firewall vip[/style] [style="background-color: #ffff00;"] edit "IBZ-Server-to-136"[/style] [style="background-color: #ffff00;"] set uuid 4fb18976-7973-51e8-1240-8a7c051886e4[/style] [style="background-color: #ffff00;"] set src-filter "10.123.11.10/32"[/style] [style="background-color: #ffff00;"] set extip 10.123.123.0-10.123.123.255[/style] [style="background-color: #ffff00;"] set extintf "port2"[/style] [style="background-color: #ffff00;"] set nat-source-vip enable[/style] [style="background-color: #ffff00;"] set srcintf-filter "port3"[/style] [style="background-color: #ffff00;"] set mappedip "136.0.0.0-136.0.0.255"[/style] [style="background-color: #ffff00;"] next[/style][style="background-color: #ffff00;"]d[/style]
[style="background-color: #ffff00;"][style="background-color: #ffffff;"]I get the desired result. Bu i also get the undesired result.[/style][/style]
[style="background-color: #ffff00;"][style="background-color: #ffffff;"]Desired Result:[/style][/style]
[style="background-color: #ffff00;"][style="background-color: #ffffff;"] [/style][/style][style="background-color: #ccffcc;"][size="2"]3.066018 port3 in 10.123.11.10 -> 10.123.123.10: icmp: echo request[/size][/style]
[style="background-color: #ccffcc;"][size="2"]3.066067 port2 out 10.123.11.10 -> 136.0.0.10: icmp: echo request[/size][/style] [style="background-color: #ccffcc;"][size="2"]3.072249 port2 in 136.0.0.10 -> 10.123.11.10: icmp: echo reply[/size][/style] [style="background-color: #ccffcc;"][size="2"]3.072286 port3 out 10.123.123.10 -> 10.123.11.10: icmp: echo reply[/size][/style]
[style="background-color: #ccffcc;"][size="2"][style="background-color: #ffffff;"]Undesired Result:[/style] [/size][/style]
[style="background-color: #ff6600;"]11.877979 port2 in 136.0.0.11 -> 10.123.11.10: icmp: echo request[/style] [style="background-color: #ff6600;"]11.878027 port3 out 10.123.123.11 -> 10.123.11.10: icmp: echo request[/style] [style="background-color: #ff6600;"]11.888300 port3 in 10.123.11.10 -> 10.123.123.11: icmp: echo reply[/style] [style="background-color: #ff6600;"]11.888325 port2 out 10.123.11.10 -> 136.0.0.11: icmp: echo reply[/style]
[style="background-color: #ffffff;"]Summary:[/style]
[style="background-color: #ffffff;"]I want traffic form <10.123.11.10> to <10.123.123.0/24> DNAT to <136.0.0.0/24>[/style]
[style="background-color: #ffffff;"]But traffic from <136.0.0.0/24> are also source NATted to <10.123.123.0/24>. (Even with src-filter)[/style]
[style="background-color: #ffffff;"]Please help if this is a bug or so. If not, how to implement the above requirement.[/style]
[style="background-color: #ffffff;"]Similar issue is explained in "https://forum.fortinet.com/tm.aspx?m=138667" also.[/style]
[style="background-color: #ffffff;"]FortiOS user = 5.6 and 6.0.1[/style]
[style="background-color: #ffffff;"]Thanks[/style]
[style="background-color: #ffffff;"]San[/style]
