Ask Your Question

How to call a script when a network interface is down?

asked 2017-10-11 14:31:35 -0500

gwendal gravatar image

updated 2017-10-11 14:32:55 -0500

I would like to call a script when one of my network interfaces is down. The network interface was configured using NetworkManager, and it is a VPN connection. Is that possible?

I am running Fedora 27 beta, but I'm also interested for Fedora 26 since it's probably the same answer.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-10-11 19:56:18 -0500

aeperezt gravatar image

You need to add a script in /etc/NetworkManager/dispatcher.d/ for vpn down you should name it vpn-down please read more here

Good luck.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2017-10-11 14:31:35 -0500

Seen: 49 times

Last updated: Oct 11 '17