Route all traffic via OpenVPN client
- by Ilya
I've got OpenVPN client running on 192.168.0.3. What I'd like to do is route all the traffic from the second computer with 192.168.0.100 via OpenVPN client that's running on the first computer.
My router ip is 192.168.0.1
Network topology:
Computer with OpenVPN client: 192.168.0.3
Computer that has to be rerouted: 192.168.0.100
Router: 192.168.0.1
I want it to work in the following way:
192.168.0.100 computer => 192.168.0.3 computer => OpenVPN => 192.168.0.1
How can I achieve that by only modifying windows' routing table?
I've tried the following, which didn't work (it just dropped my internet connection):
route delete 0.0.0.0 mask 255.255.255.255 192.168.0.1
route add 0.0.0.0 mask 255.255.255.255 192.168.0.100
Thanks!