You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It was be extremely useful to have a condition operator that can match (or not match) an IP address CIDR subnet mask. I would expect to be able to use this with the "header" or "remote-addr" condition types as follows:
Condition to only apply the rule when the value of the x-forwarded-for header is in the 10.1.2.0/24 subnet:
You can put up a pull request for the feature. You could potentially use the information in the documentation to extend the API to implement custom rules.
It was be extremely useful to have a condition operator that can match (or not match) an IP address CIDR subnet mask. I would expect to be able to use this with the "header" or "remote-addr" condition types as follows:
Condition to only apply the rule when the value of the x-forwarded-for header is in the 10.1.2.0/24 subnet:
<condition type="header" name="x-forwarded-for" operator="ipmatch">10.1.2.0/24</condition>
or
Condition to only apply the rule when the remote addr request attribute is NOT localhost:
<condition type="remote-addr" operator="notipmatch">127.0.0.1/32</condition>
There may be other condition types that the operator also applies to, but these are the most obvious and useful.
The text was updated successfully, but these errors were encountered: