Alan DeKok wrote:
It's trying to do a regex match against the packed (32-bit) IP address, not against the ASCII string describing the IP address. That can easily be fixed.
But in any case, you *don't* need to use attr_rewrite for this. Just put the following into the pre-proxy section, instead of the "fixcboss6" line:
Yeah, this is possible too. attr_rewrite left from 1.x version PS Thanks :)
... if (proxy:NAS-IP-Address == 172.29.51.24) { update proxy { NAS-IP-Address := 172.26.64.100 } } ... It's that easy. See "man unlang" for details. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- With best regards, Evgeniy Kozhuhovskiy, Leader of Services team, Minsk State Phony Network, RUE Beltelecom. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html