Adze, I just need:
1) Proper multiwan routing. I have WAN and VPN connection. I need WAN INPUT replies to go via WAN OUTPUT, and VPN INPUT to VPN OUTPUT. Without policy routing, if I have default gateway via VPN, WAN INPUT replies would go via VPN, which is not what I want.
2) Forward WAN to WAN for one WAN IP address. I want to be a gateway for one client in WAN subnet.
I can achieve this by creating new "novpn" routing table, copying everything from main table to novpn, replacing default gateway in novpn table from VPN gateway to WAN gateway and configuring some rules for policy routing and traffic marking.
I did this by writing my own interface hook script. I wanted to get rid of it and to use mwan3, because it has luci plugin, and everything works as good as with my scripts, but WAN-to-WAN forwarding is not working at all.
How to reproduce:
1) Connect switch to WAN interface, plug in it ISP cable and another PC (let's call it PC2) cable
2) Configure router to masquerade traffic to WAN. Enable WAN-to-WAN forwarding in firewall configuration.
3) Configure PC2 to use our router IP on WAN interface as a default gateway
Expected result:
PC2 can access websites.
Actual result:
PC2 can't access websites.
TL;DR: I need not only LAN-to-WAN or LAN-to-VPN forwarding with masquerading, but also WAN-to-WAN forwarding with masquerading, which doesn't work with mwan3 enabled, but works without mwan3.
(Last edited by ValdikSS on 3 Jul 2014, 18:05)