How can I set Ubuntu to run a bash when network changes. Like changing local IP, connecting VPNs, disconnect one interface and connect to another.


1 Answer 1


See my net-o-matic script at https://github.com/waltinator/net-o-matic . It watches for connection going down and does a user- specified Thing.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .