Martineau
Part of the Furniture
One potential alternative that might be worth investigating, based on Asus's own VPN Fusion: using iptables for port-based routing.
ASUS VPN Fusion GT-AC5300 feature ?
Well as usual, the help works (but it wouldn't be the first time that a 'useful' feature isn't actually enabled in the current iptables v1.4.14 version!)
EDIT: Looks like this function is deprecated in ALL versions of iptables later than v1.4.14!!! (which is the current version in the firmware?)
Code:
iptables -j ROUTE --help
ROUTE target v1.11 options:
--oif ifname Route packet through `ifname' network interface
--iif ifname Change packet's incoming interface to `ifname'
--gw ip Route packet via this gateway `ip'
--continue Route packet and continue traversing the
rules. Not valid with --iif or --tee.
--tee Duplicate packet, route the duplicate,
continue traversing with original packet.
Not valid with --iif or --continue.
So it seems to allow the '-j ROUTE' rules to be created...
Code:
iptables -A PREROUTING -t mangle -i br0 -p tcp --dport 80 -j ROUTE --oif tun11
iptables -A PREROUTING -t mangle -i br0 -p tcp --dport 443 -j ROUTE --oif tun11
iptables -nvL PREROUTING --line -t mangle
Chain PREROUTING (policy ACCEPT 1746 packets, 293K bytes)
num pkts bytes target prot opt in out source destination
1 1506 89800 MARK all -- !eth0 * 0.0.0.0/0 xxx.xxx.xxx.xxx MARK or 0x8000
2 0 0 MARK tcp -- br0 * 0.0.0.0/0 0.0.0.0/0 match-set WAN0 src,dst MARK or 0x7000
3 0 0 MARK tcp -- br0 * 0.0.0.0/0 0.0.0.0/0 match-set VPN1 src,dst MARK or 0x1000
4 0 0 MARK tcp -- br0 * 0.0.0.0/0 0.0.0.0/0 match-set VPN2 src,dst MARK or 0x2000
5 0 0 MARK tcp -- br0 * 0.0.0.0/0 0.0.0.0/0 match-set VPN3 src,dst MARK or 0x3000
6 0 0 MARK tcp -- br0 * 0.0.0.0/0 0.0.0.0/0 match-set VPN4 src,dst MARK or 0x4000
7 0 0 MARK tcp -- br0 * 0.0.0.0/0 0.0.0.0/0 match-set VPN5 src,dst MARK or 0x5000
8 0 0 MARK tcp -- br0 * 0.0.0.0/0 0.0.0.0/0 multiport sports 5000:5001 MARK or 0x7000
9 429 26320 ROUTE tcp -- br0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80ROUTE oif:tun11
10 1353 103K ROUTE tcp -- br0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:443ROUTE oif:tun11
11 0 0 ROUTE all -- tun11 * 0.0.0.0/0 0.0.0.0/0 ROUTE iif:br0
So it is definitely doing something...and ports 80 and 443 appear to be redirected, but I'm not getting the Web pages
Look like I may have got the return translation wrong...guess I'll have a play later.
Last edited: