16 Apr
2018
16 Apr
'18
1:35 p.m.
On Apr 17, 2018, at 1:27 AM, Alan DeKok <aland@deployingradius.com> wrote:
On Apr 16, 2018, at 9:17 AM, Paul via Freeradius-Users <freeradius-users@lists.freeradius.org> wrote:
I have 2 Clients configured named "Cisco" and "Unifi" and want to assign different VLANs based on the requesting client for each User individually.
You can look at Packet-Src-IP-Address to see which client it is.
Or, you can look at the fields of "client" via an expansion:
if "%{client:shortname}" == "cisco") { ... }
But you do have to set the "shortname" field.
You can set your own fields too i.e. client { ... my_arbitrary_field = foo } %{client:my_arbitrary_field} -> foo -Arran