You are right. I think you need x3mRouting. It is sort of an extension to what VPN Director offers. Say I use VPN Director to route my phone to VPN1. All traffic from my phone will send out through VPN1. Traffic from my other devices will go through WAN. Then I use x3mRouting to create an ipset netflix to VPN2. What happen is all netflix traffic will go through VPN2. Regardless if I watch netflix on my phone or other devices, it will go through VPN2. Other traffic from my phone still go through VPN1. You cannot say VPN Director does not work.
From this link, Arlo uses Amazon Web Services (AWS) for data storage.
Recently, we announced a new Arlo data center in Canada. We have again added to our growing list of secure data storage centers around the world with a
www.arlo.co
One of the reason is the blanket amazon ipset not only covers amazon prime, but everything else by aws. I think this is why when you route amazon ipset to VPN2, it breaks Arlo because Arlo also use aws. If you can fine tune the amazon ipset to only covers amazon prime this will likely solves your issue.
By the way, I have never try setting up two x3mRouting rules with the same ipset. Perhaps you can also add source ip for another device for amazon prime and see how it goes?
I would suggest to run these commands and get the output with different x3mRouting rules to have a better view.
Code:
iptables -nvL PREROUTING -t mangle --line
ip rule
Dear Chongnt,
thanks for your reply.
I assume your idea is right with Arlo. But on the other hand, why it didn´t work, if I route everything (including Arlo) over VPN2 ? I tested that as well without success.
Where can I edit the iptables via nano ? I want to take a look, if there are routes left, which are not displayed in VPN director or the Nat-start file.
Here come the results of the commands, currently with Arlo over WAN:
/tmp/home/root# iptables -nvL PREROUTING -t mangle --line
Chain PREROUTING (policy ACCEPT 522K packets, 438M bytes)
num pkts bytes target prot opt in out source destination
1 0 0 MARK all -- wg21 * 0.0.0.0/0 0.0.0.0/0 /* WireGuard 'server' */ MARK xset 0x1/0x7
2 31545 37M MARK all -- br0 * 0.0.0.0/0 0.0.0.0/0 match-set AMAZON-EU dst MARK or 0x1000
3 1509 640K MARK all -- br0 * 0.0.0.0/0 0.0.0.0/0 match-set AMAZON-US dst MARK or 0x1000
4 9673 13M MARK all -- br0 * 192.168.1.131 0.0.0.0/0 match-set AMAZON-EU dst MARK or 0x1000
5 0 0 MARK all -- br0 * 192.168.1.131 0.0.0.0/0 match-set AMAZON-US dst MARK or 0x1000
6 9673 13M MARK all -- br0 * 192.168.1.131 0.0.0.0/0 match-set AMAZON-EU dst MARK or 0x8000
7 0 0 MARK all -- br0 * 192.168.1.131 0.0.0.0/0 match-set AMAZON-US dst MARK or 0x8000
8 26327 35M MARK all -- br0 * 0.0.0.0/0 0.0.0.0/0 source IP range 192.168.1.131-192.168.1.133 match-set AMAZON-EU dst MARK or 0x8000
9 0 0 MARK all -- br0 * 0.0.0.0/0 0.0.0.0/0 source IP range 192.168.1.131-192.168.1.133 match-set AMAZON-US dst MARK or 0x8000
10 0 0 MARK all -- br0 * 0.0.0.0/0 0.0.0.0/0 match-set ARLO dst MARK or 0x1000
11 29021 36M MARK all -- br0 * 0.0.0.0/0 0.0.0.0/0 source IP range 192.168.1.131-192.168.1.136 match-set AMAZON-EU dst MARK or 0x8000
12 578 67591 MARK all -- br0 * 0.0.0.0/0 0.0.0.0/0 source IP range 192.168.1.131-192.168.1.136 match-set AMAZON-US dst MARK or 0x8000
13 0 0 MARK all -- br0 * 0.0.0.0/0 0.0.0.0/0 source IP range 192.168.1.131-192.168.1.136 match-set AMAZON-CA dst MARK or 0x8000
14 0 0 MARK all -- br0 * 0.0.0.0/0 0.0.0.0/0 source IP range 192.168.1.131-192.168.1.136 match-set AMAZON-AP dst MARK or 0x8000
15 0 0 MARK all -- br0 * 0.0.0.0/0 0.0.0.0/0 source IP range 192.168.1.131-192.168.1.136 match-set AMAZON-CN dst MARK or 0x8000
16 6379 392K MARK all -- br0 * 0.0.0.0/0 0.0.0.0/0 source IP range 192.168.1.131-192.168.1.136 match-set AMAZON-GLOBAL dst MARK or 0x8000
17 31380 37M MARK all -- br0 * 0.0.0.0/0 0.0.0.0/0 match-set AMAZON-EU dst MARK or 0x2000
18 1460 624K MARK all -- br0 * 0.0.0.0/0 0.0.0.0/0 match-set AMAZON-US dst MARK or 0x2000
19 0 0 MARK all -- br0 * 0.0.0.0/0 0.0.0.0/0 match-set AMAZON-CA dst MARK or 0x2000
20 0 0 MARK all -- br0 * 0.0.0.0/0 0.0.0.0/0 match-set AMAZON-AP dst MARK or 0x2000
21 0 0 MARK all -- br0 * 0.0.0.0/0 0.0.0.0/0 match-set AMAZON-CN dst MARK or 0x2000
22 7581 563K MARK all -- br0 * 0.0.0.0/0 0.0.0.0/0 match-set AMAZON-GLOBAL dst MARK or 0x2000
23 0 0 MARK all -- br0 * 0.0.0.0/0 0.0.0.0/0 match-set AMAZON-SA dst MARK or 0x2000
24 0 0 MARK all -- br0 * 0.0.0.0/0 0.0.0.0/0 match-set NETFLIXdnsmasq dst MARK or 0x1000
/tmp/home/root# ip rule
0: from all lookup local
9810: from all fwmark 0xd2 lookup 210
9990: from all fwmark 0x8000/0x8000 lookup main
9994: from all fwmark 0x2000/0x2000 lookup ovpnc2
9995: from all fwmark 0x1000/0x1000 lookup ovpnc1
10010: from 192.168.1.1 lookup main
10011: from 192.168.1.0/24 to 192.168.0.1 lookup main
10012: from 192.168.1.0/24 to 192.168.2.1 lookup main
10013: from 192.168.1.0/24 to 192.168.0.114 lookup main
10014: from 192.168.1.0/24 to 192.168.0.112 lookup main
10015: from 192.168.0.112 to 192.168.1.0/24 lookup main
10016: from 192.168.0.114 to 192.168.1.0/24 lookup main
10017: from 192.168.10.0/24 to 192.168.1.77 lookup main
10018: from 192.168.1.77 to 192.168.10.0/24 lookup main
10019: from 192.168.1.88 to 192.168.10.0/24 lookup main
10020: from 192.168.10.0/24 to 192.168.1.88 lookup main
10021: from 192.168.10.0/24 to 192.168.1.0/24 lookup main
10022: from 192.168.1.0/24 to 192.168.10.0/24 lookup main
10023: from 192.168.99.0 lookup main
10024: from 192.168.1.77 to 192.168.99.0/24 lookup main
10025: from 192.168.1.88 to 192.168.9.0/24 lookup main
10026: from 192.168.1.0/24 to 192.168.99.0/24 lookup main
10027: from 192.168.99.0/24 to 192.168.1.0/24 lookup main
10028: from 192.168.1.88 to 192.168.98.0/24 lookup main
10029: from 192.168.1.77 to 192.168.98.0/24 lookup main
10030: from 192.168.98.0 lookup main
10031: from 192.168.98.0/24 to 192.168.1.77 lookup main
10032: from 192.168.98.0/24 to 192.168.1.88 lookup main
10033: from 192.168.0.1 to 192.168.1.0/24 lookup main
10034: from 192.168.1.91 to 192.168.98.0/24 lookup main
10035: from 192.168.98.0/24 to 192.168.1.91 lookup main
10036: from 192.168.1.91 to 192.168.99.0/24 lookup main
10037: from 192.168.99.0/24 to 192.168.1.91 lookup main
10038: from 192.168.1.1 lookup main
10039: from 192.168.1.0/24 to 192.168.0.1 lookup main
10040: from 192.168.1.0/24 to 192.168.2.1 lookup main
10041: from 192.168.1.0/24 to 192.168.0.114 lookup main
10042: from 192.168.1.0/24 to 192.168.0.112 lookup main
10043: from 192.168.10.0/24 lookup main
10044: from 192.168.1.55 to 192.168.10.0/24 lookup main
10045: from 192.168.10.0/24 to 192.168.1.55 lookup main
10046: from 192.168.0.112 to 192.168.1.0/24 lookup main
10047: from 192.168.0.114 to 192.168.1.0/24 lookup main
10048: from 192.168.0.1 to 192.168.1.0/24 lookup main
10049: from 192.168.1.88 to 192.168.10.0/24 lookup main
10050: from 192.168.1.77 to 192.168.10.0/24 lookup main
10051: from 192.168.10.0/24 to 192.168.1.0/24 lookup main
10052: from 192.168.1.0/24 to 192.168.10.0/24 lookup main
10053: from 192.168.99.0 lookup main
10054: from 192.168.1.77 to 192.168.99.0/24 lookup main
10055: from 192.168.1.88 to 192.168.99.0/24 lookup main
10056: from 192.168.1.0/24 to 192.168.99.0/24 lookup main
10057: from 192.168.99.0/24 to 192.168.1.0/24 lookup main
10058: from 192.168.1.1 lookup main
10059: from 192.168.1.0/24 to 192.168.0.1 lookup main
10060: from 192.168.1.0/24 to 192.168.2.1 lookup main
10061: from 192.168.1.77 to 192.168.98.0/24 lookup main
10062: from 192.168.98.0/24 to 192.168.1.77 lookup main
10063: from 192.168.98.0/24 to 192.168.1.88 lookup main
10064: from 192.168.1.88 to 192.168.98.0/24 lookup main
10065: from 192.168.1.134 lookup main
10210: from 192.168.1.66 lookup ovpnc1
10810: from 192.168.1.0/24 lookup ovpnc4
10811: from 192.168.98.0/24 lookup ovpnc4
11010: from 192.168.12.0/24 lookup ovpnc5
11011: from 192.168.12.0/24 lookup ovpnc5
11012: from 192.168.1.0/24 lookup ovpnc5
11013: from 192.168.33.0/24 lookup ovpnc5
32766: from all lookup main
32767: from all lookup default
the result of liststats:
AMAZON-AP - 1240
AMAZON-CA - 126
AMAZON-CN - 167
AMAZON-EU - 1197
AMAZON-GLOBAL - 190
AMAZON-SA - 209
AMAZON-US - 2496
ARLO - 0
NETFLIXdnsmasq - 0