Page 1 of 1

EAP, Radius and VLAN assignment based on user

Posted: Thu Apr 02, 2015 7:57 pm
by timd93
I'm planning a new wireless setup in a building.
There needs to be just 1 SSID with WPA(2)-EAP, where a user logs in with a username and password.

A RADIUS server is used, which should give back the Attribute MIKROTIK_WIRELESS_VLANID = 20, this should put the user in VLAN 20 and he will get an address from the VLAN20-DHCP.

I understand that this does not work in RouterOS? When will it finally be implemented? If it takes another year I'll just have to buy Cisco instead of MikroTik.
Or does anyone have a solution to make this work?

Re: EAP, Radius and VLAN assignment based on user

Posted: Thu Apr 02, 2015 8:05 pm
by baggar11
You may look into the PacketFence project. It supports what you are asking with MikroTik devices.

Re: EAP, Radius and VLAN assignment based on user

Posted: Fri Apr 03, 2015 5:06 pm
by timd93
You may look into the PacketFence project. It supports what you are asking with MikroTik devices.
Are you sure? If I look at the documentation of PacketFence, it says only MAC authentication is available for Mikrotik at the moment.
http://www.packetfence.org/downloads/Pa ... -4.7.0.pdf

Re: EAP, Radius and VLAN assignment based on user

Posted: Fri Apr 03, 2015 6:53 pm
by baggar11
You may ask for support on the PacketFence forums. I don't have a MikroTik + PacketFence setup running yet, so I really can't help. But it believe it should be able to do what you want.

Re: EAP, Radius and VLAN assignment based on user

Posted: Sat Apr 04, 2015 2:03 am
by ditonet
@timd93
What wireless package do you use? AFAIK 'wireless-fp' package is necessary to use 'Mikrotik_Wireless_VLANID' and 'Mikrotik_Wireless_VLANIDtype' attributes.

HTH,

Re: EAP, Radius and VLAN assignment based on user

Posted: Mon Apr 13, 2015 6:25 pm
by timd93
I'm using a hAP Lite and there is only a wireless-cm2 package for that device.
Also, packetfence does not do what I want.

Re: EAP, Radius and VLAN assignment based on user

Posted: Sun May 03, 2015 1:35 am
by chechito
I have not tested on EAP wpa enterprise mode

I have tested WPA PSK with RADIUS mac authentication

Using freeradius for windows and can assign VID successfully on Ros 6.27 on rb951Ui. wireless-fp package

Just update attribute dictionary for mikrotik devices on freeradius.

users.conf like this for every user:

aa:aa:aa:aa:aa:aa User-Password == "aa:aa:aa:aa:aa:a"
Mikrotik_Wireless_VLANID = "47",
Mikrotik_Wireless_VLANIDtype = "0",