7
7
7761662019-10-09 17:28:52
openvpn
776166, 2019-10-09 17:28:52

Why is OpenVPN cutting off all network connections?

When you turn on the OpenVPN client, all other connections are cut off, including you cannot get to the computer using its non-vpn-ip.
What's wrong, how to fix it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
SagePtr, 2019-10-09
@SagePtr

Because the route is prescribed, which drives all packets by default to the IP address of your VPN. If you need to send only certain destinations through the VPN, then change the default route to the address of your router, and wrap individual subnets through the VPN.

M
Mikhail Vasilyev, 2019-10-09
@vasilyevmn

The "redirect-gateway def1" parameter is responsible for this; when using it, the VPN server will take all the routes on itself.
You can comment it out and add only the subnets you need, like this:
route 192.168.1.0 255.255.255.0 10.10.10.1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question