Community discussions

MikroTik App
 
bkra1976
just joined
Topic Author
Posts: 14
Joined: Wed Mar 16, 2016 12:04 pm

Multi WAN on same Gateway

Wed Nov 09, 2016 9:45 am

hello

i have an rb3011 and want to do following things.
LAN1 - 192.168.1.0/24
LAN2 - 192.168.2.0/24
LAN3 - 192.168.3.0/24

WAN1 - 100.0.0.1
WAN2 - 100.0.0.2
WAN3 - 100.0.0.3

Gateway for WAN 100.0.0.6

i have an all LAN Subnet Internet, but the external ip is this from wan1. How can i solve that LAN1 goes to WAN1, LAN2 to WAN2 and LAN3 to WAN3.
I tried multiple configs but found no solution.

i found a config that solve this but portforwarding dosent work with this.
NAT Rule
Chain srcnat outinterface wan1 action masquerade
Chain srcnat outinterface wan2 action masquerade
Chain srcnat outinterface wan3 action masquerade

With this i get the correct wan ip but portforwarding not available

any ideas

berni
 
User avatar
karlisi
Member
Member
Posts: 469
Joined: Mon May 31, 2004 8:09 am
Location: Latvia

Re: Multi WAN on same Gateway

Wed Nov 09, 2016 11:16 am

Try this
add action=src-nat chain=srcnat out-interface=WAN1 src-address=192.168.1.0/24 \
	to-addresses=10.0.0.1
add action=src-nat chain=srcnat out-interface=WAN2 src-address=192.168.2.0/24 \
	to-addresses=10.0.0.2
add action=src-nat chain=srcnat out-interface=WAN3 src-address=192.168.3.0/24 \
	to-addresses=10.0.0.3
 
bkra1976
just joined
Topic Author
Posts: 14
Joined: Wed Mar 16, 2016 12:04 pm

Re: Multi WAN on same Gateway

Wed Nov 09, 2016 12:27 pm

i have try this. it´s only works when i disable the masquerade rule.
but when i disable the masquerade rule the portforwarding doesnt work.

thanks berni
 
User avatar
karlisi
Member
Member
Posts: 469
Joined: Mon May 31, 2004 8:09 am
Location: Latvia

Re: Multi WAN on same Gateway

Wed Nov 09, 2016 2:36 pm

Plese post Your configuration export /ip firewall nat

Who is online

Users browsing this forum: No registered users and 23 guests