IP::addr and regex

is it possible to check against client IP using regex? basically trying to do an aflex ACL to limit IP’s for SMTP connections

something similar to this (this isn't working of course)

when CLIENT\_ACCEPTED \{
if \{ not [IP::addr [IP::client\_addr] matches regex "^192\\.168\\.2\\.(10[5-7])$"] \} \{

drop

\}
\}

Hi

You can find examples to match based on IP address over here:

There is also a matches_regex operator that tests whether one string matches a regular expression or another string. The aFleX Scripting Language Reference guide documents the following example:

when HTTP\_REQUEST \{
if \{ [HTTP::uri] matches\_regex "^/(static|images)/.\*" \} \{
pool static\_service\_group
\} else \{
pool dynamic\_service\_group
\}
\}

Regards.