Restrict certain users to certain clients
I have clients multiple clients on the following networks: 192.168.89.0/24 192.168.90.0/24 192.168.91.0/24 I have two users: test1 test2 I would like to grant test1 access to clients on 192.168.89.0/24 and 192.168.90.0/24 but not 192.168.91.0/24. I would like to grant test2 access to clients on 192.168.91.0/24 but not 192.168.89.0/24 nor 192.168.90.0/24. I've solved it with huntgroups with individual client IP's but I need to do it by subnet. I thought the following would work but it didn't. /etc/raddb/huntgroups hunt1 NAS-IP-Address =~ /^192\.168\.(89|90|91)\..*$/ Can anyone provide some direction? Thanks
I've solved it with huntgroups with individual client IP's but I need to do
it by subnet.
I thought the following would work but it didn't.
/etc/raddb/huntgroups hunt1 NAS-IP-Address =~ /^192\.168\.(89|90|91)\..*$/
This appears to have been fixed by putting quotes around the regex in place of the "/" hunt1 NAS-IP-Address =~ "^192\.168\.(89|90|91)\..*$"
participants (1)
-
inetjunkmail