Outbound NAT not working (multiple WAN)
-
When there was only 1 WAN, this used to work.
I now have 2 WAN connections, both running BGP so the upstream sets the default route.I'm using manual outbound NAT with a rule enabled to route 10.10.2.0/24 out the WAN interface.
While performing a ping from a LAN host, I see in the States table the packet coming in as well as a non-translated packet going out WAN2. (I have WAN and WAN2 upstream/failover).
So it appears that its not translating the address. I also ran tcpdump on the gateway to confirm its trying to send a non-NAT IP out the WAN2 interface.
-
@brk where is your outbound nat for wan2? Your only showing wan.
-
@johnpoz thank you! forgot to copy that NAT rules. Only copied the WAN rules to WAN2.
-
@brk btw why are wanting to do manual - that is not required for multiple wan setups.
-
@johnpoz I have public and private net blocks on the LAN side. I only want some of the private networks to use NAT. I only displayed the one private network in the image. I want to NAT only 2 of 14 networks.
-
@brk Ah - you could also just set a hybrid entry for the networks you don't want to nat.