Re: Verify that the user belongs to a specific ipv4 network

Dzmitry Shykuts <[email protected]>
Newsgroups gmane.comp.freeradius.user
Message-ID <[email protected]>
04.09.2025 21:22, Alan DeKok via Freeradius-Users пишет:
> On Sep 4, 2025, at 2:23 AM, Dzmitry Shykuts<[email protected]> wrote:
>> 1. I'm tryingto dothisinthe usersfile:
>>
>> test         Cleartext-Password := "password", NAS-IP-Address == 10.1.1.0/24
>>                Cisco-AVPair = "shell:priv-lvl=1",
>>                Service-Type = Administrative-User
>   Unfortunately, this isn't supported in v3.  It is in v4, but...
>
>   You can do the same thing in unlang:
>
> 	if (NAS-IP-Address < 10.1.1.0/24) {
> 		update control {
> 			...
> 		}
>
> 		update reply {
> 		...
> 		}
> 	}
>
>   Alan DeKok.
> -
> List info/subscribe/unsubscribe? Seehttp://www.freeradius.org/list/users.html
WhereshouldIspecifythiscondition?Rightinthe usersfile?
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.