Freeradius proxy: rewriting response messages
Alan DeKok
aland at deployingradius.com
Wed May 7 22:19:12 CEST 2008
Simone Vendemia wrote:
> Unfortunately we need to rewrite the response returned to freeradius
> by the other server, in order to change the framed-ip-address and
> framed-route given by the proprietary radius with the data inserted
> previously in our freeradius sql database (mysql) through dialupadmin.
> Both the proxy and the proprietary server have the same usernames in
> their local db.
> Is that a possible setup? We've already searched online without much luck.
> Thank you in advance.
See the "rewrite" module in radiusd.conf.
In 2.0, you can update any attribute using "unlang".
post-proxy {
...
if (proxy-reply:Framed-IP-Address) {
update proxy-reply {
Framed-IP-Address := 1.2.3.4
...
}
}
}
Alan DeKok.
More information about the Freeradius-Users
mailing list