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:
Windows computer with OpenVPN client: 192.168.0.3
Windows computer whose traffic 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 entering the following into windows shell(on computer without VPN), 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.3
Should I also setup the computer that has OpenVPN client running?
Does it have anything to do with windows tcp forwarding?
Thanks!