ControlPlane icon indicating copy to clipboard operation
ControlPlane copied to clipboard

Can "Changing Network Location" be added to the Evidence Sources?

Open Panja0 opened this issue 9 years ago • 3 comments

System Preferences --> Network --> Location(s)

Is that possible? For me it would be very handy.

I have setup multiple network locations with different DNS servers. When changing a network location, I manually run a script to flush my dns cache. It would be nice if this can be automated with ControlPlane. So when I change a network location, ControlPlane runs a shell script to flush the dns.

Cheers

Panja0 avatar Jul 01 '15 14:07 Panja0

I had a similar need. With 1.6.4,

  1. Setup a context for each network location
  2. Create a Shellscript action on arrival with each context to run a configuration shell script.
  3. Create a Network Location action to change to for each context.

The bonus is don't have to dig into the System Preferences to change location, and just use ControlPlane system applet to change network locations.

hyei avatar Apr 14 '16 01:04 hyei

Changing the network location, specifically, doesn't work very well if you're keying contexts off of any network based evidence sources. It causes ControlPlane to flop back and forth between contexts.

dustinrue avatar Apr 14 '16 13:04 dustinrue

That's why I change context manually, and it changes network location settings for me. I could not figure out have to change contexts based the location changing reliably (or at all).

hyei avatar Apr 19 '16 16:04 hyei