17 Jul
2008
17 Jul
'08
6:17 a.m.
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.