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

Here you can post your feature requests and suggestions
Post Reply
hugleo
Posts: 59
Joined: 13 Apr 2016, 14:28

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

Post 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.
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

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

Post 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
Post Reply