How is it not working? Error messages in the log files? Any other error indicators?Show screenshots of your VPN settings.
A few people on this thread have asked how to get this just to route traffic from particular computers to the VPN... and I think I've figured out how to do that! At least, it seems to work for me. Immediately after the two lines which read:
echo "#!/bin/shiptables -t nat -I POSTROUTING -o tun0 -j MASQUERADE" > route-up.shadd the following lines:echo "ip route del 0.0.0.0/1" >> route-up.shecho "ip route del 22.214.171.124/1" >> route-up.shecho "ip rule add from 192.168.7.89 table 200" >> route-up.shecho "ip route add default dev tun0 table 200" >> route-up.shecho "ip route flush cache" >> route-up.shThis does three important things:- removes the default routes via the VPN (now, although you're still connected to the VPN, no traffic is sent through it)- adds a rule that anything from source address 192.168.7.89 is part of "table 200"- adds a default route for everything on table 200 to be sent via the tun0 interface (i.e. the VPN)I've tested this by adding and removing my laptop's IP address to table 200 via telnet, and when it was on that table I saw a VPN IP address at whatismyipaddress.com, but otherwise I saw my home internet connection's address.
My network environment:
DHCP is a two way street. Once anything changes for router 1, router 2 will not function anymore since it cannot get the correct details of how router 1 is working.*Edit* I am not getting something about this. You say router 2 is a simple 4 port switch. How then can it handle the mathematical overhead of encryption? Am I just misunderstanding?