Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
andreagx
New Contributor

SNAT do not work

Hello, 

I'm using FortiOS 7.

 

I need a rule that do this: 

2 source server with ip1 and ip2

2 public ip, Pub1 and Pub2 

I need the two servers ip1 e ip2 go in internet with Pub2 (not the default) 

So I made a SNAT rule like the below, but do not work. What's wrong?  

 

 

config firewall policy set name "LAB2 SNAT" set uuid cda48efe-f6c6-51eb-2f52-56f13adb9039 set srcintf "internal" set dstintf "wan1" set srcaddr "Ip1-Ip2" set dstaddr "all" set action accept set schedule "always" set service "ALL" set logtraffic all set nat enable set ippool enable set poolname "PUB2" next end

1 REPLY 1
abarushka
Staff
Staff

Hello,

 

Configuration looks good. I would recommend to verify by collecting debug flow output whether firewall policy is hit.

 

https://community.fortinet.com/t5/FortiGate/Troubleshooting-Tip-First-steps-to-troubleshoot-connecti...

FortiGate
Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors