Alan DeKok wrote:
if (proxy:NAS-IP-Address == 172.29.51.24) {
update proxy {
NAS-IP-Address := 172.26.64.100
}
}
It works, but instead of update proxy should be update proxy-request,
and instead of proxy:NAS-IP-Address
I have some rewrites like this (in pre-proxy):
attr_rewrite fixcboss6 {
attribute = NAS-IP-Address
searchin = proxy
searchfor = 172.29.51.24
replacewith = 172.26.64.100
new_attribute = no
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
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,
4 matches
Mail list logo