Adamm
Part of the Furniture
Decided to dig into Selective Routing again recently, it seems something has changed in relation to the AX88U?
A small test to confirm this, visit (http://whatismyip.host/my-ip-address-details) and note your IP address, then;
Now when visiting (http://whatismyip.host/my-ip-address-details) you should see your VPN IP.
It seems packets are being marked correctly by IPTables as the counter is increasing, but they are never forwarded to OpenVPN Client 1;
A small test to confirm this, visit (http://whatismyip.host/my-ip-address-details) and note your IP address, then;
Code:
ip rule add fwmark 0x8000/0x8000 table 254 prio 9990
ip rule add fwmark 0x1000/0x1000 table 111 prio 9991
iptables -I PREROUTING -t mangle -d 34.233.244.94 -j MARK --set-mark 0x1000/0x1000
Now when visiting (http://whatismyip.host/my-ip-address-details) you should see your VPN IP.
It seems packets are being marked correctly by IPTables as the counter is increasing, but they are never forwarded to OpenVPN Client 1;
Code:
skynet@RT-AX88U-DC28:/tmp/home/root# iptables -t mangle -vL PREROUTING
Chain PREROUTING (policy ACCEPT 1200 packets, 393K bytes)
pkts bytes target prot opt in out source destination
0 0 MARK all -- tun21 any anywhere anywhere MARK xset 0x1/0x7
5 480 MARK all -- tun11 any anywhere anywhere MARK xset 0x1/0x7
2483 626K BWDPI_FILTER udp -- ppp0 any anywhere anywhere
15 1932 MARK all -- any any anywhere ec2-34-233-244-94.compute-1.amazonaws.com MARK or 0x1000
Code:
skynet@RT-AX88U-DC28:/tmp/home/root# ip rule
0: from all lookup local
9990: from all fwmark 0x8000/0x8000 lookup main
9991: from all fwmark 0x1000/0x1000 lookup ovpnc1
32766: from all lookup main
32767: from all lookup default