Page 1 of 1

Different Interface to difference WAN

Posted: Mon May 17, 2021 1:04 pm
by ICNIT
Hi All,

I think it sounds stupid, but I just want to double confirm.

Scenario Ether=WAN1 , Ether2=WAN2 , Ether3,4,5=Bridge (VLAN1,VLAN10,VLAN20,VLAN30).

If I want VLAN1 user to use WAN1, and VLAN10,20,30 to use WAN2, is it possible to be done in firewall > NAT?

Chain: scr-nat
Src. address: 172.16.0.0/24 (VLAN1)
Out. Interface: WAN1
Action: masquerade

Chain: scr-nat
Src. address: 172.16.10.0/24, 172.16.20.0/24, 172.16.30.0/24(VLAN10,20,30)
Out. Interface: WAN2
Action: masquerade

So user in VLAN1 wont share the bandwidth with user in VLAN10,20,30.

Is it possible to work?

Thanks.

Re: Different Interface to difference WAN

Posted: Mon May 17, 2021 2:13 pm
by sid5632
Ask yourself this question: How does it work out where to route the WAN1/2 outbound traffic in the first place?
Src-nat happens at the very end of the chain, if you look at the packet routing diagram, so obviously a routing decision needs to be made earlier somehow.

Re: Different Interface to difference WAN

Posted: Mon May 17, 2021 2:23 pm
by anav
viewtopic.php?f=2&t=175314&p=857680#p857680

Please keep it to one thread, aka the one linked above.

Re: Different Interface to difference WAN

Posted: Mon May 31, 2021 10:16 am
by colekayley
WAN stands for Wide Area Network and this is the network that connects your router to your service provider. The WAN port usually connects to a DSL modem, cable modem or fibre media converter. LAN stands for Local Area Network and this is the network that connects the devices within your home/business to the router.