I
I
IvanN7772021-12-04 23:38:48
linux
IvanN777, 2021-12-04 23:38:48

How to set up VPN PPTP (LINUX) so that the Internet is not cut off?

In Windowse, I simply unchecked the "Use the default gateway of the remote network"
Given:
vpn server address (Gateway)
Login
Password
61abd1503f558104966406.png

Admin did not reset my network mask and it looks like DNS is not a gateway?
How can I just do it like in Windows and remove the remote network gateway.
What can be done?

Yes, there are a lot of records on the Internet, but I have not figured it out yet (

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AlexVWill, 2021-12-04
@IvanN777

configure routing manually so that default with a higher priority when the VPN is connected is not the network interface of the VPN, but of the router ...
connect the VPN and show
ip route
and then the same, but without vpn

I
IvanN777, 2021-12-05
@IvanN777

Default:
ip route

default via 192.168.0.1 dev enp2s0f2 proto dhcp metric 100 
192.168.0.0/24 dev enp2s0f2 proto kernel scope link src 192.168.0.102 metric 100

C vpn
default dev ppp0 proto static scope link metric 50 
default via 192.168.0.1 dev enp2s0f2 proto dhcp metric 100 
81.88.81.131 via 192.168.0.1 dev enp2s0f2 src 192.168.0.102 
81.88.81.131 dev ppp0 proto kernel scope link src 192.168.51.83 metric 50 
81.88.81.131 via 192.168.0.1 dev enp2s0f2 proto static metric 100 
192.168.0.0/24 dev enp2s0f2 proto kernel scope link src 192.168.0.102 metric 100 
192.168.0.1 dev enp2s0f2 proto static scope link metric 100

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question