English
Ask Your Question
1

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

asked 2017-10-11 19:31:35 +0000

gwendal gravatar image

updated 2017-10-11 19:32:55 +0000

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-12 00:56:18 +0000

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

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Stats

Asked: 2017-10-11 19:31:35 +0000

Seen: 37 times

Last updated: Oct 12