rlm_attr_rewrite question
Alan DeKok
aland at deployingradius.com
Thu Jul 17 12:17:23 CEST 2008
Evgeniy Kozhuhovskiy wrote:
...
> fixcboss6: Does not match: NAS-IP-Address = ╛?3?
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:
...
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.
More information about the Freeradius-Users
mailing list