The tags `down' and `down/ANYTHING' mean that no peer from the group
should be selected.
then no peers in the group are connected. Strange and unhelpful things
will happen if you put the same peer in several different groups.
.PP
+The tags
+.B down
+and
+.BI down/ anything
+are special and mean that no peer from the group should be active. This
+is useful for detecting a `home' network, where a VPN is unnecessary
+(or, worse, break routing completely).
+.PP
The notion of `current IP address' is somewhat vague. The
.B conntrack
service calculates it as the source address that the host would put on
if upness and ip is None and \
ipq is not None and (ipq & m) == a:
map[t] = 'up'
- want = t
+ if t == 'down' or t.startswith('down/'):
+ want = None
+ else:
+ want = t
ip = ipq
else:
map[t] = 'down'