Hi, I guess I just need a RTFM reminder here, but I failed to find something on first glance: I would like to set up a rule in 1.1.7 that matches a subnet of Client-IP-Addresses. I did DEFAULT Client-IP-Address == 158.64.14.224/28, Proxy-To-Realm := NULL in acct_users. I used to think it matches 158.64.14.236 and sets proxying accordingly. BTW, the same problem shows up when trying to make a similar match in hints. The line isn't matched in -X though. Anything special to think about when trying to match an IP address range? Stefan -- Stefan WINTER Stiftung RESTENA - Réseau Téléinformatique de l'Education Nationale et de la Recherche Ingenieur Forschung & Entwicklung 6, rue Richard Coudenhove-Kalergi L-1359 Luxembourg E-Mail: stefan.winter@restena.lu Tel.: +352 424409-1 http://www.restena.lu Fax: +352 422473
Stefan Winter wrote:
I would like to set up a rule in 1.1.7 that matches a subnet of Client-IP-Addresses. I did
DEFAULT Client-IP-Address == 158.64.14.224/28, Proxy-To-Realm := NULL
Nope. There's no "ip/mask" data type. You've got to use a regular expression to do the matching. Maybe this can be fixed in "unlang" in 2.0. Alan DeKok.
DEFAULT Client-IP-Address == 158.64.14.224/28, Proxy-To-Realm := NULL
Nope. There's no "ip/mask" data type. You've got to use a regular expression to do the matching.
Ok, using regex matching fixed it. Thanks!
Maybe this can be fixed in "unlang" in 2.0.
IMHO that would be a good thing. Stefan -- Stefan WINTER Stiftung RESTENA - Réseau Téléinformatique de l'Education Nationale et de la Recherche Ingenieur Forschung & Entwicklung 6, rue Richard Coudenhove-Kalergi L-1359 Luxembourg E-Mail: stefan.winter@restena.lu Tel.: +352 424409-1 http://www.restena.lu Fax: +352 422473
Hi,
Ok, using regex matching fixed it. Thanks!
you might also add those client IP addresses to a huntgroup and use the huntgroup name in your hints...
Hm... thinking of it... is shortname from clients.conf available as an attribute? Then you could treat all IP addresses equal by their shortname... Stefan -- Stefan WINTER Stiftung RESTENA - Réseau Téléinformatique de l'Education Nationale et de la Recherche Ingenieur Forschung & Entwicklung 6, rue Richard Coudenhove-Kalergi L-1359 Luxembourg E-Mail: stefan.winter@restena.lu Tel.: +352 424409-1 http://www.restena.lu Fax: +352 422473
Hi,
Ok, using regex matching fixed it. Thanks!
you might also add those client IP addresses to a huntgroup and use the huntgroup name in your hints...
Hm... thinking of it... is shortname from clients.conf available as an attribute? Then you could treat all IP addresses equal by their shortname...
or 'Type' if that was available too...... then you could apply the peculiar replies that certain NASs need only if it was that NAS type much easier. alan
participants (3)
-
A.L.M.Buxey@lboro.ac.uk -
Alan DeKok -
Stefan Winter