# config system interfaceIn this case, if traffic goes via WAN1 with SNAT as 1.1.10.1, internet will not work.
edit "wan1"
set alias to_ISP1
set mode dhcp
next
edit "wan2"
set alias to_ISP2
set ip 1.1.10. 255.255.255.248
next
end
# config system sdwan
set status enable
# config members
edit 1
set interface "wan1"
next
edit 2
set interface "wan2"
set gateway 1.1.10.6
next
end
end
# config firewall ippool
edit "1.1.10.1"
set startip 1.1.10.1
set endip 1.1.10.5
next
end
# config firewall policy
edit 1
set srcintf "port2"
set dstintf "sdwan"
set srcaddr "all"
set dstaddr "all"
set action accept
set schedule "always"
set service "ALL"
set logtraffic all
set logtraffic-start enable
set ippool enable
set poolname "1.1.10.1"
set nat enable
next
# config firewall ippoolWith this, IP pool will be applied only when traffic is going via WAN2 interface.
edit "1.1.10.1"
set type overload
set startip 1.1.10.1
set endip 1.1.10.5
set associated-interface 'wan2'
set comments ''
next
end
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 2023 Fortinet, Inc. All Rights Reserved.