Ask Your Question
1

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

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

gwendal gravatar image

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

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
1

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

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

Question Tools

Stats

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

Seen: 56 times

Last updated: Oct 11 '17