Hi,
Could you provide a sample configuration?
Thanks
Main Topics
Browse All TopicsHi,
I have two sets of users Staff and Students. I want to dynamically assign different vlans to these users on our wired network with cisco switches. I've two radius servers. They are able to auth sets of users. Here is the line in the users file ...This all one the same line.
DEFAULT Huntgroup-Name == 1X, Autz-Type := Wireless_Student, Auth-Type := Wireless_Students, Autz-Type := Wireless_Staff, Auth-Type := Wireless_Staff, Freeradius-Proxied-To == 127.0.0.1
The problem I'm have is..how do I assign both Staff and Student on different vlans.. Is the users file able to do this?
I can assign one group(students) a vlan but not both. Without a SSID, I can direct traffic to one radius severs for student logins and the other for Staff logins.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
First What is the authorization section from radiusd.conf -- needed for the correct Autz-type & auth-types.
see also in
http://www.ibr.cs.tu-bs.de
Assuming you have a correct athorisation & athentication section....
My guess is you still need to differentia on staff & students somehow... f.e. john@staff is member of staff & mike or mike@student is a student, plain john would also be a student:
DEFAULT Huntgroup-Name == 1X, realm=="staff", Freeradius-Proxied-To == 127.0.0.1
Tunnel-Type:=VLAN
Tunnel-Medium-Type=IEEE-80
Tunnel-Private-Group-ID=ST
Autz-type =Wireless_staff
auth-type = Wireless_staff
DEFAULT Huntgroup-Name == 1X, Realm!="staff", Freeradius-Proxied-To == 127.0.0.1
Tunnel-Type:=VLAN
Tunnel-Medium-Type=IEEE-80
Tunnel-Private-Group-ID=ST
Autz-type =Wireless_student
auth-type = Wireless_student
# Then next line assumes that anybody that is proxied from localhost, in huntgroup 1X are staff....., your rule did the same. if authz & auth type were set before you can check on them (if the previous ones were fall through rules)
DEFAULT Huntgroup-Name == 1X, Autz-Type == Wireless_Staff, Auth-Type == Wireless_Staff , Freeradius-Proxied-To == 127.0.0.1
Tunnel-Type:=VLAN
Tunnel-Medium-Type=IEEE-80
Tunnel-Private-Group-ID=ST
DEFAULT Huntgroup-Name == 1X, Autz-Type == Wireless_Student, Auth-Type == Wireless_Students, Freeradius-Proxied-To == 127.0.0.1
Tunnel-Type=VLAN
Tunnel-Medium-Type=IEEE-80
Tunnel-Private-Group-ID=ST
Hi,
With this configuration in the users file.. It will allow both Staff and Student to Auth, but Staff gets the Student vlan assign to it.
I'm not sure why
DEFAULT Huntgroup-Name == 1X, Autz-Type == Wireless_Staff, Auth-Type == Wireless_Staff, Freeradius-Proxied-To == 127.0.0.1
Tunnel-Type := VLAN,
Tunnel-Medium-Type := IEEE-802,
Tunnel-Private-Group-Id := Berklee-Staff,
Fall-Through = yes
DEFAULT Autz-Type == Wireless_Student, Auth-Type == Wireless_Students, Freeradius-Proxied-To == 127.0.0.1
Tunnel-Type := VLAN,
Tunnel-Medium-Type := IEEE-802,
Tunnel-Private-Group-Id := Berklee-Student,
You probably dont want to fall through after staff. Then entry should be final....
If it doesn't match staff next entry will go; if it matches staff all info if known and it's done.
and == is a match check, Autz-type & Auth-type are never in a request by an entry system, they are freeradius specific and internal.
If I don't go with fall-through after staff how will the students be able to auth. When students login in I need radius to know there is another auth type. The students auth will fail on Staff but be successful on Student. How would I get radius to know there are two auth types without fall-through?
Many thanks
that was my question HOW DO YOU KNOWN what is computer is from a student.
in terms of MAC address, certificates, .... anything that can become included in a
radiusd request line...., autz-type and auth-type is a means of later processing the pasword check on some individual user.....
Maybe you need to setup up entirely different... At some place a system is in a database,
based on the check items you determin that it is a staff member then cyou immediately assign it a vlan on the spot. The DEFAULT entries are meant to scrape up a lot of info that is generic...
f.e. anybody coming from radius frontend X should use authorization mechanism Y and and database Z ->
DEFAULT Proxy-from==x.x.x.x, autz-type:=Y, auth-type:=Z
As the autz-type * auth-type are no match but more or less hidden assignment, the difference is that it now is part of the request and not the response... writing this down the earlier rules should have been: (with := not ==)
DEFAULT Huntgroup-Name == 1X, Autz-Type := Wireless_Staff, Auth-Type := Wireless_Staff , Freeradius-Proxied-To == 127.0.0.1
Tunnel-Type:=VLAN
Tunnel-Medium-Type=IEEE-80
Tunnel-Private-Group-ID=ST
DEFAULT Huntgroup-Name == 1X, Autz-Type := Wireless_Student, Auth-Type := Wireless_Students, Freeradius-Proxied-To == 127.0.0.1
Tunnel-Type=VLAN
Tunnel-Medium-Type=IEEE-80
Tunnel-Private-Group-ID=ST
Business Accounts
Answer for Membership
by: nociPosted on 2009-08-18 at 14:29:17ID: 25127866
Then there is too much in one rule...
Match for Staff if matched assign a staff VLAN and other settings
Match for students if matched assign a student VLAN and other settings.
Maybe the lat one doesn't need a match and can be the default vlan