Automate Tasks On Network Change In Linux With This Program

(Approximately a 1 min read.)

You’re traveling for the holidays. You’re at a coffeeshop. And so on. You connect to different networks, and want to spin up (or down) various processes depending on what network you’ve connected to, and whether or not you trust them.

That’s what network-middle-manager does.

This is written in the spirit of Cuttlefish, which was an ambitious (and needed!) automation driver for linux…which hasn’t been updated for a decade and doesn’t currently run/compile on my system.

I had written a very kludgy, very awkward script that kind of handled that, but it was so bad and flaky that even I didn’t use it much. So I’ve rewritten it entirely. It’s in BASH so that it hopefully is more resistant to bitrot and is easily hackable by others.

network-middle-manager:

  • is focused on running tasks on network change
  • runs tasks in userspace, not as root
  • assumes all networks are untrusted unless explictly configured otherwise
  • works with both network-manager and wicd
  • uses a simple “plugin” style system for you to define what tasks to do where
  • uses YAD to provide an (optional) simple GUI to add tasks
  • has a cute octopus as a mascot

Dependencies, step by step installation, and so on are available on GitHub, GitLab, or my repository.

Featured Photo by Diane Picchiottino on Unsplash

blankWas this post helpful or insightful? Buy me a coffee here or here and share this post with others!

Popular posts:

  • The difference between boundaries and rules
  • Two Ways to get CMYK Separation Using GIMP Instead of Photoshop in 2022
  • If there's one Nazi (or a racist) at the table...
  • Weekend Project: Whole House and Streaming Audio for Free with MPD
  • Organizing and Tiling Your Windows on #Openbox Using Only... Openbox
  • Odds and Ends: Optimizing SSHFS, moving files into subdirectories, and getting placeholder images

Recent Posts