Internet very slow after disconnecting from a VPN with NetworkManager, fixed by restarting it
I'm using NetworkManager to connect to a PPTP vpn, and it works without any issues.
However, after disconnecting from a vpn, networking becomes very slow, and only goes back to normal after restarting the NetworkManager systemd service.
For example, how much time "pacman -Syyu" takes (i know i shouldn't use -Syyu, but it's just to check network speed):
Normally:
sudo pacman -Syyu 0.51s user 0.08s system 17% cpu 3.264 total
When connected to a vpn:
sudo pacman -Syyu 0.55s user 0.09s system 17% cpu 3.685 total
After disconnecting:
sudo pacman -Syyu 0.51s user 0.08s system 4% cpu 13.433 total
After restarting NetworkManager, the speed goes back to normal. Why does this happen?
Everything is latest versions from the repositories:
networkmanager 1.20.4-1
networkmanager-pptp 1.2.9dev+10+gb41b0d0-1
About this post
- Posted
- Archived
- Score
- 8 · 100% up
- Kind
- Text
- ID
- dd35dd
4 comments
Deleted before we saved it.
Yup, was that. After disconnecting from a vpn it had both my real local ip address, and my local ip address inside the vpn. Apparently, the default configuration doesn't allow for several applications to access the resolv file at the same time. The solution was to make networkmanager use openresolv instead as said on archwiki. Thank you for the hint.
I saw this:
and remember reading this:
From darkreading.com as referred to in the great book Unix and Linux System Administration
It wasn't your immediate issue but just wanted to mention it.
Glad you got your problem fixed though.
May not even be up to him.
For instance, I am forced to connect to my company's pptp vpn when I am working from home even though I've emailed the sys admin department about this very issue. Meanwhile, that is what I have to live with. Companies take a long time to adapt as old habits die hard...