ControlPlane icon indicating copy to clipboard operation
ControlPlane copied to clipboard

Evidence Source: Internet connectivity

Open franciscolourenco opened this issue 12 years ago • 11 comments

In alternative, a wildcard ip address should be supported in the existing "Assigned IP Address" evidence source.

This is because dhcp server might assign a different ip everytime, but we still want to know when we got connectivity in order to mount network drives.

franciscolourenco avatar Nov 08 '12 15:11 franciscolourenco

Are you wanting an evidence source that is active if a given host is accessible?

dustinrue avatar Nov 13 '12 00:11 dustinrue

That would also be interesting. But more importantly, an evidence source which becomes active when any ip is assigned to a given interface.

franciscolourenco avatar Nov 13 '12 08:11 franciscolourenco

If you configure the IP evidence source rule correctly, it can match any IP in a range. You just need to set the subnet mask.

dustinrue avatar Nov 21 '12 18:11 dustinrue

So you are saying the rule will turn positive for the entire network range depending on the network mask?

On Wednesday, 21 November 2012 at 18:56 , Dustin Rue wrote:

If you configure the IP evidence source rule correctly, it can match any IP in a range. You just need to set the subnet mask.

— Reply to this email directly or view it on GitHub (https://github.com/dustinrue/ControlPlane/issues/193#issuecomment-10609686).

franciscolourenco avatar Nov 21 '12 23:11 franciscolourenco

Yes, the IP evidence source supports that.

dustinrue avatar Feb 03 '13 15:02 dustinrue

thanks

On Sunday, 3 February 2013 at 15:40 , Dustin Rue wrote:

Yes, the IP evidence source supports that.

— Reply to this email directly or view it on GitHub (https://github.com/dustinrue/ControlPlane/issues/193#issuecomment-13048601).

franciscolourenco avatar Feb 03 '13 17:02 franciscolourenco

Oh, that's great! I tried to use wildcards via "*" in the first place but it didn't work. Maybe it would be good to mention this feature somewhere in the form for creating the "Assigned IP" rule. :)

ColdDevil avatar Oct 07 '13 08:10 ColdDevil

Hi! I'm trying to create a rule that match with any IP assignation, but I didn't get it. Can anybody help me?

garciparedes avatar Sep 30 '17 15:09 garciparedes

What are you trying to achieve?

dustinrue avatar Oct 02 '17 21:10 dustinrue

I'm trying to create a rule to turns on a context when I have Internet.

garciparedes avatar Oct 03 '17 07:10 garciparedes

The IP evidence source is meant to detect if you're in a specific IP range and not any range. The Attached Network Link evidence source would be the closest to what you're looking for. This evidence source should only be "true" when a link is actually connected. For example, if you connect to a WiFi access point but you don't get an IP address it won't be "true."

dustinrue avatar Oct 03 '17 13:10 dustinrue