Rejecting access by IP
Laura Steynes
laura.steynes72 at gmail.com
Sun Jun 26 05:52:37 CEST 2016
Hello,
I am trying to reject without trying access database, any one from an IP
range.
In this case it is 121.32.x.x
Google has shown some have success using a single IP use
Calling-Station_Id == 1.2.3.4 But I need to omit a range, however this
seems not to work, any ideas or suggestions muchly appreciated.
if (Calling-Station-Id =~ /^121.32/ {
reject
update reply {
Reply-Message = "GeoAccess Error"
}
}
Loz
More information about the Freeradius-Users
mailing list