dustinrue/ControlPlane — Issue #117: Feature: for IP rules, allow specification of network interface
Author: drfrogsplat
Created: 2012-01-12 02:17:57+00:00
State: open

I think a useful addition to the IP rule would be to allow you to specify which interface the IP is detected on.

For example, my work wifi & wired ethernet networks both provide IPs in the same range, but it'd be useful to know how I received that IP.

This is kind of like an "AND" operation (suggested in another issue) for rules (i.e. an IP rule AND a NetworkLink rule), but is more specific in that the IP from the IP rule comes from the specified NetworkLink.

I don't think it should be done as an "AND" rule, just an option to let you specify an interface when setting up an IP rule (but still allowing "any" interface). Interfaces might be the hardware ones (en0,en1,fw0,ppp0,...) or match against those listed in the Network preference pane in System Preferences.