rlm_ippool and assigning IP from different pools, depending on NAS attr.

Konstantin Chekushin koch2 at inbox.lv
Wed Sep 1 10:21:17 CEST 2010


 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 at 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?
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20100901/0cf3352a/attachment.html>


More information about the Freeradius-Users mailing list