vlan assigment on called-station-id

A.L.M.Buxey at lboro.ac.uk A.L.M.Buxey at lboro.ac.uk
Thu Jul 14 15:21:34 CEST 2016


Hi,

> How can I assign VLAN depending on location AP??
> Maybe someone tried to do like that

I would advise that you use unlang int he server....with either IP wildcard matching or
(poor performance) huntgroups.

if (%{NAS-IP-Address ~= "/192\.168\.0\./" && %{LDAP-Group == "workers}) {
	update reply {	
         Tunnel-Type = VLAN,
         Tunnel-Medium-Type = IEEE-802,
         Tunnel-Private-Group-Id := 200
	}
}


etc etc


alan


More information about the Freeradius-Users mailing list