My internet is connected via wi-fi. OS Ubuntu 20.04
I set up a pptp connection. Connected to him. But my internet is down.
In the pptp settings it is written that you need to disable Internet access for the pptp connection.
But in the settings in ubuntu there is no such checkbox.
How can I specify that the Internet would not be used through this connection?
ip route
Working
default via 192.168.0.1 dev wlp3s0 proto dhcp metric 600
169.254.0.0/16 dev wlp3s0 scope link metric 1000
185.195.25.217 via 192.168.0.1 dev wlp3s0 src 192.168.0.156
192.168.0.0/24 dev wlp3s0 proto kernel scope link src 192.168.0.156 metric 600
Not Working
default dev ppp0 proto static scope link metric 50
default via 192.168.0.156 dev ppp0 proto static metric 50
default via 192.168.0.1 dev wlp3s0 proto dhcp metric 600
169.254.0.0/16 dev wlp3s0 scope link metric 1000
172.17.1.0/24 via 192.168.0.156 dev ppp0 proto static metric 50
185.195.25.217 via 192.168.0.1 dev wlp3s0 src 192.168.0.156
185.195.25.217 dev ppp0 proto kernel scope link src 172.17.1.14 metric 50
185.195.25.217 via 192.168.0.1 dev wlp3s0 proto static metric 600
192.168.0.0/24 dev wlp3s0 proto kernel scope link src 192.168.0.156 metric 600
192.168.0.1 dev wlp3s0 proto static scope link metric 600
sudo ip route del default dev ppp0
default via 192.168.0.156 dev ppp0 proto static metric 50
default via 192.168.0.1 dev wlp3s0 proto dhcp metric 600
169.254.0.0/16 dev wlp3s0 scope link metric 1000
172.17.1.0/24 via 192.168.0.156 dev ppp0 proto static metric 50
185.195.25.217 via 192.168.0.1 dev wlp3s0 src 192.168.0.156
185.195.25.217 dev ppp0 proto kernel scope link src 172.17.1.14 metric 50
185.195.25.217 via 192.168.0.1 dev wlp3s0 proto static metric 600
192.168.0.0/24 dev wlp3s0 proto kernel scope link src 192.168.0.156 metric 600
192.168.0.1 dev wlp3s0 proto static scope link metric 600
In documentation
This happened because our IP address blocked access to the Internet (more).
In the PPTP client settings, find and disable items like:
Use to access the Internet
Use default gateway
Use default gateway on remote network
When connecting via
pptp
, the following route becomes the default route:Because the remote network is not set up to access the Internet, this prevents you from accessing the Internet.
It seems that you are connecting to the
172.17.1.0/24
subnet and I am unsure why there is an additional route created. Also, it seems problematic:I would recommend deleting these two routes to see if Internet access is restored:
When I set up VPN, I prefer to prevent automated route changes, and set them up myself.
This would result in something such as:
However, it seems like it's possible that your home network (192.168.0.0/24) is conflicting with the remote network, and has a gateway in the same space (192.168.0.156).
For example, when connected via
pptp
, if...... shows
192.168.0.156
, you have this problem.You could change either your LAN subnet, or remote subnet, to something like 192.168.1.0/24, 192.168.69.0/24, etc.
Summary