SQLIppool and multiple NAS IPs
Hello, I'm trying to implement Freeradius v2.1.10 to provide a different IP Pool depending on the IP address of the NAS (Mikrotik PPPoE) the request comes from. I'm using radgroupcheck in this way and it works: '300', 'grp_test', 'Pool-Name', ':=', 'pool_Test' '301', 'grp_test', 'NAS-IP-Address', '==', '192.168.1.1' '302', 'grp_test', 'Simultaneous-Use', ':=', '1' '303', 'grp_test2', 'Pool-Name', ':=', 'pool_Test2' '304', 'grp_test2', 'NAS-IP-Address', '==', '192.168.1.2' '302', 'grp_test2', 'Simultaneous-Use', ':=', '1' (username belongs to both groups) The problem is that I would like to group some NAS and provide the same IP Pool: '310', 'grp_test3', 'Pool-Name', ':=', 'pool_Test2' '311', 'grp_test3', 'NAS-IP-Address', '==', '192.168.1.1' '312', 'grp_test3', 'NAS-IP-Address', '==', '192.168.1.2' '313', 'grp_test3', 'Simultaneous-Use', ':=', '1' This doesn't work, FR doesn't get an IP pool when checking radgroupcheck and so the client doesn't get an IP. Am I missing something? Do I a need to implement huntgroups in SQL? Thanks!
Victor Rodriguez wrote:
The problem is that I would like to group some NAS and provide the same IP Pool:
'310', 'grp_test3', 'Pool-Name', ':=', 'pool_Test2' '311', 'grp_test3', 'NAS-IP-Address', '==', '192.168.1.1' '312', 'grp_test3', 'NAS-IP-Address', '==', '192.168.1.2' '313', 'grp_test3', 'Simultaneous-Use', ':=', '1'
This doesn't work, FR doesn't get an IP pool when checking radgroupcheck and so the client doesn't get an IP.
The checks are all ANDed together. You're trying to do NAS1 OR NAS2. That's impossible with the current SQL module.
Am I missing something? Do I a need to implement huntgroups in SQL?
No. You just need to implement huntgroups elsewhere, and then do huntgroup checking in SQL. Alan DeKok.
participants (2)
-
Alan DeKok -
Victor Rodriguez