Dual Internet NAT not working
-
Hi All,
I have an issue that I am looking into and it just doesn't make sense (I think I have missed something in configuration).
I have two ISP's, one (ISP1) is setup as my default connection and the other is there for business use (ISP2). My second internet connection uses PPoE and sets a static IP and provides default gateway.
Under interfaces I have WAN (ISP1) and WAN2 (ISP2).
Under Firewall > NAT > Outbound NAT - I have changed the mode to hybrid and added a single rule to NAT all traffic from 192.168.5.0/27 to the WAN2 IP address. However when I do a "whats my ip" lookup I get the IP of WAN (ISP1). Under Routing > Gateways I have default gateway set to Automatic. I am almost sure I have missed something out that is critical to getting this working.If I change the "default gateway" to the one for WAN2 (ISP2) the IP Address changes for all connections not just traffic from 192.168.5.0/27.
Does anyone have any pointers as to what might be going wrong here?... I am sure I have missed a setting somewhere.
Regards,
Tom -
@tompark
Outbound NAT masquerades outgoing traffic with the stated translation IP. This is needed for outbound traffic on the concerned interface, but it does nothing else, not routing at all.To route traffic from certain sources out to a non-default gateway, you have to add policy routing rules to the respective interface where the traffic is coming in.