You are not logged in.

#1 2020-01-31 15:14:39

DonTrash
Member
Registered: 2018-04-06
Posts: 9

[SOLVED] Temporarily disable vpn-up dispatcher in NetworkManager

I used https://wiki.archlinux.org/index.php/Ne … stablished to setup a dispatcher which automatically connects to a vpn server.

Sometimes I want to use a different vpn server. When I try to disconnect the previously established connection via nm-applet, it constantly reconnects in a loop.

How can I terminate the dispatcher/service temporarily to manually select a different vpn connection?

Thanks

Last edited by DonTrash (2020-01-31 18:55:35)

Offline

#2 2020-01-31 16:02:09

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,978

Re: [SOLVED] Temporarily disable vpn-up dispatcher in NetworkManager

I'd just fix the dispatcher script to react accordingly to which VPN you are connecting to (and not hard code to retry on vpn-down, as "just" a vpn-down event was likely done voluntarily).

That said

systemctl mask --now NetworkManager-dispatcher.service
#do stuff
systemctl unmask NetworkManager-dispatcher.service

Offline

#3 2020-01-31 18:54:45

DonTrash
Member
Registered: 2018-04-06
Posts: 9

Re: [SOLVED] Temporarily disable vpn-up dispatcher in NetworkManager

Works fine.

Thanks!

Offline

Board footer

Powered by FluxBB