Situation:
Your VPN does not automatically set split tunnel for your connection to some host, maybe the ipaddress of the host changes over time, like an AWS ELB, and network admins can't set split tunnel rules on changing addresses.
Requirements:
User must be able to run:
sudo route add -host "$dst" "$tunnel"
How to use:
-
Download tunnelme.sh
-
chmod +x tunnelme.sh
-
Run script
./tunnelme.sh <host|ipaddress>
1 133 x.y.z.f utun1
2 3 link#16 utun1
What is your tunnel, (use number): 1
add host host|ipaddress.: gateway x.y.z.f
add host ipaddress: gateway x.y.z.f
TODO: add support for Linux.