veth1 and veth2 is MAC VLAN of wan device,
double dial the same ISP to get two Wan IP addresses.
gateway1 metric 10, gateway2 metric 20
Firewall Port Forwards:
wan1,wan2 port:8443 -> lan 192.168.1.200:8443
curl -k https://WAN_IP1:8443 -> ok
curl -k https://WAN_IP2:8443 -> timeout
How do I configure it? Thank you for your answers!
I can't test, but you probably need to add a second wan zone in Firewall - General settings, assign veth2 to it and then add new port forwards from this new zone.
Thank you for your reply. I added veth1 and veth2 to wan zone. It doesn't work. Then I change veth2 to wan2 zone. It still doesn't work. I don't know what's the problem?
@m95d I have set port forward for wan2, but it still doesn't work.
I read some topic, and some said it was necessary to set the route to return to the original wan interface.
Had the same problem. It won't work because your server reply will go through the default wan. Thats why it works in WAN1 but not in WAN2 (unless you unplug WAN1 so WAN2 its the default gateway).
As a temporary "fix" you can add a second LAN with another ip and add it to the server. Then set that this subnet goes over wan2. So when someone goes over wan2 you redirect them to the second ip of the server.
the sticky '1': Traffic from the same source IP address that previously matched this rule within the sticky timeout period will use the same WAN interface.
I have configured all protocols, but I don't know why UDP protocol doesn't work. My wireguard uses UDP protocol and can't access through WAN interface.