User Tools

Site Tools


unifi:freeradius

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
unifi:freeradius [2015/11/01 12:02] brielleunifi:freeradius [2017/09/25 10:05] (current) – [Set up the users file] brielle
Line 110: Line 110:
  
 You can use single IPs (''192.168.0.2'' or ''2001::beef'') or netblocks (''192.168.0.0/24'' or ''2001:beef::/64''), and the device with that single IP or devices within that netblock will use the password specified as 'CHANGEME'. You can use single IPs (''192.168.0.2'' or ''2001::beef'') or netblocks (''192.168.0.0/24'' or ''2001:beef::/64''), and the device with that single IP or devices within that netblock will use the password specified as 'CHANGEME'.
 +
 +===== Set up the users file =====
 +Users can be manually set up with entries in ''/etc/freeradius/users''.
 +
 +A basic user example is:
 +<code>  
 +joeuser Cleartext-Password := "passwordhere"
 +</code>
 +
 +A more complex one that also involves setting a VLAN that a user is part of:
 +<code>
 +joeuser Cleartext-Password := "passwordhere"
 + Tunnel-Type = 13,
 + Tunnel-Medium-Type = 6,
 + Tunnel-Private-Group-Id = 2
 +</code>
 +
 +''Tunnel-Private-Group-Id'' is set to the VLAN ID you wish the user to be assigned when they connect.
 +