S
S
sgtpahomey2016-02-20 02:16:08
openvpn
sgtpahomey, 2016-02-20 02:16:08

How to cut off traffic when the connection to the openVPN server is lost on Windows?

Hello. There is a dedicated winserver 2012, the OpenVPN client is installed on it, there is a VPS on Debian 7, the openVPN server is raised on it. All Internet traffic is wrapped on VPN. The essence of the question is how to cut off traffic if the VPN connection has fallen off? At the same time, without losing access to the winserver via RDP.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konkase, 2016-02-20
@sgtpahomey

route delete -p 0.0.0.0
route add -p 0.0.0.0 mask 0.0.0.0 127.0.0.1
route add -p 1.1.1.1 mask 255.255.255.255 192.168.1.1
I don't remember the Windows syntax, but it seems so.
1.1.1.1 - VPN server
192.168.1.1 - gateway in the client's network

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question