Does it correct solution? server allauth { listen { type = auth ipaddr = * port = 1812 } authorize { auth_log update control { Auth-Type = 'Accept' } } post-auth { if (control:NAS-IP-Address == '222.22.22.125') { update control { Pool-Name = 'pool_125' } redundant { mysqlippool1 mysqlippool2 pool_125 } } else { update control { Pool-Name = 'pool_126' } redundant { mysqlippool1 mysqlippool2 pool_126 } } reply_log } } Quoting *Konstantin Chekushin <koch2@inbox.lv>*:
Hi all. I have radius server, which assign ip-addresses to users. I use rlm_ippool, but I need to assign ip-address only from the pool, which is linked with radius packet parameter - NAS. If user comes with nas=xxx.xxx.xxx.xxx - it takes ip from pool1, if with nas=yyy.yyy.yyy.yyy - then from pool2. Is it possible?