Page 1 of 1

Read a specific radius attribute and pass to ip-up/ip-down scripts

Posted: 01 May 2016, 13:01
by hugleo
Read a radius attribute like Accel-Access-List = 'my-list-name' and pass to ip-up/ip-down scripts.

I could do things like:

ip-up
ipset add Accel-Access-List Framed-IP-Address

ip-down
ipset del Accel-Access-List Framed-IP-Address

So I could work with my-list-name and iptables to redirect to a payment reminder page or block some sure of things.

Re: Read a specific radius attribute and pass to ip-up/ip-down scripts

Posted: 01 May 2016, 14:03
by Dmitry
you have radattr file with all passed radius attributes that you can use in ip/down scripts
by default its location is /var/run/radattr.$1