<ipfilter name="filter1" type="restrictive"> <allow ip="192.0.2.0/255.255.0.0"/> <deny ip="198.51.100.0/255.255.255.0"/> <appliesto tagref="xyzzy"/> <appliesto tagref="shazam"/> </ipfilter>
where:
Term | Description |
---|---|
ipfilter name="filter1" | The unique name of an IP filter. |
type="restrictive" | The filter type. This term identifies whether the filter is a restrictive or permissive type, and indicates the order in which testing takes place when the filter evaluates an incoming IP address. |
<allow ip="192.0.2.0/255.255.0.0"/> | The allow element appears first in a restrictive filter. The allow element is divided into two segments, separated by a / :
You can use the allow element in a restrictive filter to specify a higher level in the network tree than what you use for the deny element.
|
<deny ip="198.51.100.0/255.255.255.0"/> | The deny element appears second in a restrictive filter. The deny element is divided into two segments, separated by a / :
You can use the deny element in a restrictive filter to specify a lower level in the network tree than you use for the allow element, to define exceptions to the IPs explicitly allowed in the allow element.
You can use multiple deny elements, if necessary. |
<appliesto tagref="xyzzy"/> | Identifies a user affected by this set of filter rules. The appliesto tagref values must correspond to tag attributes assigned to individual users listed in user elements of the XML IP restriction document. |
<appliesto tagref="shazam"/> | Identifies a second user affected by this set of filter rules. |