Lan2 to the Internet via Wan2
-
Good day!
There are two internal networks, Lan1 and Lan2, two WANs (Wan1, Wan2).
Wan interfaces receive IP via DHCP.
It is necessary to make Lan2 go online through Wan2.
To do this, I made an Outbound NAT rule, specifying source - lan2_net, Source port - *, Destination - *, Destination port- *, Nat address - WAN2 address.
But Internet access for Lan2 via Wan2 does not work.What else needs to be done?
-
@goro2205
The outbound NAT is one necessary part, but it does only NAT.
The second is the routing. When you want to direct certain internal devices out to the non-default gateway you have to do this with policy routing.I recently explained how to do this in another thread:
https://forum.netgate.com/topic/166607/configuring-a-3rd-isp-wan-interface-to-another-lan-interface/2?_=1632396405859