Community discussions

MikroTik App
 
Silurus
just joined
Topic Author
Posts: 4
Joined: Sun May 01, 2016 12:21 pm

2 WAN - Masquerade - Howto?

Sun May 01, 2016 10:07 pm

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 :)
 
User avatar
evince
Member
Member
Posts: 355
Joined: Thu Jul 05, 2012 12:11 pm
Location: Harzé - Belgique
Contact:

Re: 2 WAN - Masquerade - Howto?

Mon May 02, 2016 6:16 pm

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,
 
Silurus
just joined
Topic Author
Posts: 4
Joined: Sun May 01, 2016 12:21 pm

Re: 2 WAN - Masquerade - Howto?

Mon May 02, 2016 9:12 pm

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

Regards
 
User avatar
devi1
Trainer
Trainer
Posts: 19
Joined: Fri Aug 21, 2015 2:01 pm
Location: Russia, Chelyabinsk
Contact:

Re: 2 WAN - Masquerade - Howto?

Mon May 02, 2016 10:04 pm

In chain=srcnat action=masquerade log=no log-prefix="" you are not specified any interface. Router does not know which interface to go traffic
 
Silurus
just joined
Topic Author
Posts: 4
Joined: Sun May 01, 2016 12:21 pm

Re: 2 WAN - Masquerade - Howto?

Tue May 03, 2016 6:07 pm

But it worked. 2 WAN > | chain=srcnat action=masquerade log=no log-prefix="" | > SWITCH (4 x LAN). Why and what problems it will cause?
 
Sob
Forum Guru
Forum Guru
Posts: 9188
Joined: Mon Apr 20, 2009 9:11 pm

Re: 2 WAN - Masquerade - Howto?

Tue May 03, 2016 6:17 pm

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.

Who is online

Users browsing this forum: No registered users and 16 guests