I think we are both trying to do the same (or similar) thing - refer to my post above. To summarise what I understand we need to do:Hello there!
Been using x3mRouting successfully for about a week now, but I can't seem to be able to wrap my head around something.
Tunneling through two VPN clients pointing to PIA in the US and Spain I'm able to route different services through the respectively desired routes, but after either rebooting the router or seemingly by chance, the router's IP address will begin to report as if tunneling all traffic through either of the connected tunnels.
I was wondering if there would be a way to route everything to the WAN and just use the IPSET rules as exceptions (say, route all Amazon-owned addresses to the US OVPN Client, and leave everything else to be routed by the WAN).
So far I've attempted to set a Policy Rule to route both SRC 0.0.0.0 and DST 0.0.0.0 to WAN, then setting the IPSET rules as asnum and calling them from the OVPN client GUI, but sites still report being able to see my WAN's IP address when done this way.
Is the solution I'm looking for out of scope, or am I doing something wrong perhaps?
Thanks for the help!
1. install x3mRouting in option 3 mode: OpenVPN Event & x3mRouting.sh Script
2. setup a VPN client connection for a US server (UK server for me as I need to route BBC
3. I think (TBC) the VPN client connection needs to be setup for policy or policy strict for routing internet traffic through tunnel
4. dnsmasq needs to be configured to log dns requests. I think you need the following to switch this on from terminal: dnsmasq -q
5. finally - you need to add the asnum / policy routing and assign to the correct VPN connection - example below:
sh /jffs/scripts/x3mRouting/x3mRouting.sh ALL 2 BBC_ASN asnum=AS2818,AS31459
in bold above is '2' this denotes to apply this policy to VPN client connection 2
However - I have tried to get this working (for BBC iplayer) but currently it's not working