It is possible to create realms in NAI Routing based on a regular expression. When
the realm name starts with a /
, the name is treated as an regular expression and the value of the
entire Username attribute is matched. Optionally, you can end the regular expression
with a trailing /
.
For example, to match on the domain name example.com
, configure a
realm block named /@example\.com$/
, and to match all domains under
the .com top domain, configure the following name /@.*\.com$/
.
Because the matching is done on the entire attribute value, you can use rules to load balance users in a specific domain. For example, the following realm name directs some users to match on one realm block configured for one server, while other users will match another realm block configured for another server:
/^[a-k].*@example\.com$/
88
are sent to IP address 10.47.15.21
, while
devices with a MAC address that start with 44
are sent to IP
address 10.47.15.23
.