rlm_attr_rewrite question

Evgeniy Kozhuhovskiy ugenk at mgts.by
Thu Jul 17 16:05:54 CEST 2008


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.



More information about the Freeradius-Users mailing list