Skip to content

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

8 points3 comments
Open on Reddit
About this post
Posted
Archived
Score
8 · 100% up
Kind
Text
ID
dd35dd

Author

6
posts
52
comments
4
media
View profile

4 comments

unknown author1 hidden

Deleted before we saved it.

4 points

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.

6 points

I saw this:

to connect to a PPTP vpn

and remember reading this:

PPTP (Point-to-Point Tunneling Protocol) was developed and placed into service in the mid-1990s. While reasonably fast, it is no longer considered reasonably secure.

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.

1 points

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...

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.