Vlan Assignement depending on Ip source adress
Kristofer Hallin
kristofer at sunet.se
Thu Mar 10 12:34:01 UTC 2022
Why don’t you just send it as plain text? It’s generally a _bad_ idea to share passwords etc even if it’s not a production system.
> On 10 Mar 2022, at 13:16, mehboob.k at cyber.net.pk wrote:
>
> Hi,
> we have upgraded our freeradius from FreeRADIUS Version 3.0.4 to FreeRADIUS Version 3.0.25
>
>
> We are using mysql at the backend, Currently we are facing this issue while authenticating.
>
The lines which contains the word “error” should give you plenty of information about your issue.
>
> Please refer to below logs.
> https://pastebin.com/aDJx5Mav
>>
>
>>
>
>>
> Regards,
>
>>
> Mehboob Khan
> Cyber Internet Services (Pvt) Ltd
>
>>
>
>>
>> On Thu, 03/10/2022 01:39 PM, Benoit RAYNIER <benoit.raynier at flex-o.fr> wrote:
>>>
> Thanks for your help,
>>
>> in which file should I use this code ?
>>
>>
>> Benoit RAYNIER
>>
>>
>> -----Message d'origine-----
>> De : Freeradius-Users <freeradius-users-bounces+benoit.raynier=">flex-o.fr at lists.freeradius.org> De la part de Alan DeKok
>> Envoyé : mercredi 9 mars 2022 20:51
>> À : FreeRadius users mailing list "><freeradius-users at lists.freeradius.org>
>> Objet : Re: Vlan Assignement depending on Ip source adress
>>
>> On Mar 9, 2022, at 8:01 AM, Benoit RAYNIER "><benoit.raynier at flex-o.fr> wrote:
>>> I have configured a freeradius V3 with automatic VLAN assignement, all work fine.
>>
>> That's good.
>>
>>>
>>> I want to know how it is possible to assign a VLAN depending on the IP source Adress.
>>>
>>> For Exemple :
>>>
>>> If user A connect freeradius from 18.18.18.18 (public ip) ==> Assign
>>> VLAN 1 If user A connect freeradius from 22.22.22.22 (public ip) ==>
>>> Assign VLAN 3 If user A connect freeradius from 34.34.32.12 (public
>>> ip) ==> Assign VLAN 22
>>
>> Use the "switch" statement:
>>
>> switch "%(Packet-Src-IP-Address}" {
>> case 18.18.18.18 {
>> ... assign VLAN1
>> }
>>
>> ... other case ...
>>
>> case {
>> .... doesn't match anything else.
>> }
>>
>> }
>>
>> Alan DeKok.
>>
>> -
>> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>> -
>> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>>
>
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
More information about the Freeradius-Users
mailing list