VIP NAT Not Working
Hello Everyone,
I'm new to the Fortigate 300c HA but slowly getting the hang of it.
I have a Internal Network connected to the Fortigate via GRE/BGP. The webserver (10.0.0.2) can ping the Fortigates GRE IP (172.0.0.2) and the Fortigate can ping the webserver.
I have routed internet traffic to go via the Fortigate to the internet. I want the private IP (10.x.x.x) address to turn into a public IP (168.x.x.2) and visa versa but it doesn't work.
The VIP configuration is:
config firewall vip edit "Test" set uuid e76358ee-5067-51e6-fbfa-27942f3c0371 set extip 168.x.x.2 set extintf "any" set nat-source-vip enable set mappedip "10.0.0.2" next end
The Firewall configuration is:
config firewall policy edit 6 set uuid 42cc3654-4fb1-51e6-5ffd-bcf47c310aa6 set srcintf "any" set dstintf "any" set srcaddr "all" set dstaddr "all" set action accept set schedule "always" set service "ALL" set logtraffic all next end
I did a flow debug before and saw that the ping is going, Server -> GW -> Firewall -> Internet but it doesn't apply the NAT and the packet stays as 10.0.0.2
If I turn on NAT Masquerade it works but with the Firewall IP not the VIP IP.
Any help is greatly appreciated.
Regards,
Anthony
