Page 1 of 1

Dual wan Lan 2 Port Forwading

Posted: Sat Sep 07, 2019 3:34 pm
by ahsanse1
I am having Two WAN and Two LAN

IP Config: Wan1 :
Wan2 :
LAN1 :
Both the WAN are active but all internet traffic is routing from wan1. port forwarding on both LAN1 from WAN1 and on LAN 2 : From WAN2 . I am only able to access from WAN1. When i disable routing from WAN1 the all internet traffic start from WAN2 and port forwarding on LAN2 start working.

I need to know what should i do my both the WAN be operational and internet traffic route from WAN1 and both port forwarding also work , if user come from WAN2 if get access on LAN2 IP and if user comes from LAN1 could access from LAN1. some configuration setting is attached image

Re: Dual wan Lan 2 Port Forwading

Posted: Mon Sep 09, 2019 3:01 am
by Sob
You should mark new incoming connections from each WAN and then mark routing for responses, to make them go back the same way.

You can find some inspiration here (the article is primarily about load balancing, so just ignore that part):

Re: Dual wan Lan 2 Port Forwading

Posted: Wed Sep 11, 2019 4:19 pm
by ahsanse1
Thanks for your reply
I created a mangle group and added specific IP in that group
and created a route for the WAN 2 traffic to that group
it working fine now.