2 WAN - Masquerade - Howto?

Hi guys i wonder how i should set masquerade when i want to use 2 WAN connections (without load balancing).
Should it look like:

chain=srcnat action=masquerade out-interface=ether1-gateway log=no log-prefix=“”
chain=srcnat action=masquerade out-interface=ether2- gateway 2 log=no log-prefix=“”

or
chain=srcnat action=masquerade log=no log-prefix=“”

?
Thank You :slight_smile:

Heelo, this one is the right :


chain=srcnat action=masquerade out-interface=ether1-gateway log=no log-prefix=“”
chain=srcnat action=masquerade out-interface=ether2- gateway 2 log=no log-prefix=“”

regards,

But why chain=srcnat action=masquerade log=no log-prefix=“” is wrong? What consequences will be?

Regards

In chain=srcnat action=masquerade log=no log-prefix=“” you are not specified any interface. Router does not know which interface to go traffic

But it worked. 2 WAN > | chain=srcnat action=masquerade log=no log-prefix=“” | > SWITCH (4 x LAN). Why and what problems it will cause?

It NATs everything. So when you run some internal server, it will make you wonder why all clients look like they come from your router’s internal address.