Route all traffic via OpenVPN client
Posted
by
Ilya
on Server Fault
See other posts from Server Fault
or by Ilya
Published on 2012-03-26T12:17:35Z
Indexed on
2012/03/26
17:32 UTC
Read the original article
Hit count: 387
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!
© Server Fault or respective owner