Change Options based on Client

Tim Cheyne Tim.Cheyne at
Wed Apr 18 00:30:56 CEST 2018

ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAxHbOCJIxRMqQ3d81vtFXJyNC4I6qoBvj2Sfa7yqR8oZUjnncGznbBV6b4WcWoK/7CH+ytZK+xsg+16ObmisTuGXffMIrEPVFyjcYTHwvhvjjJTqQNSIsa8uj9mnvmxMlls3/un+hkaZS9cXsW9WyB+Lw5Sdy6v/YCbl3y/nt1UpXk2MSG29gC7Rv6FKlZFnUXCuEfAPglhKrnVzBIOxUUKQvU4xOahIpZo+fzBWWkkXJNWg35wKFXe2P8bI/9rl5jA64ZiW5gI6G9JPvABe4sDgKb7FFDz1e7s0LYBr/AQCkMI9IUevyh6ijmqbMQdFCJxsuHASnh2MjZiS3RODHEw== rsa-key-20180418


Tim Cheyne
Lead Designer
+64 9 363 5174 (extn 95174)
+64 27 298 7684
Tim.Cheyne at
Level 11, Mayoral Drive Building
31 Airedale Street
Private Bag 92028, Auckland 1142

This communication, including any attachments, is confidential. If you are not the intended recipient, you should not read it - please contact me immediately, destroy it, and do not copy or use any part of this communication or disclose anything about it. Thank you. Please note that this communication does not designate an information system for the purposes of the Electronic Transactions Act 2002. 

-----Original Message-----
From: Freeradius-Users < at> On Behalf Of Arran Cudbard-Bell
Sent: Tuesday, 17 April 2018 5:36 a.m.
To: FreeRadius users mailing list <freeradius-users at>
Cc: Paul <paul at>
Subject: Re: Change Options based on Client

> On Apr 17, 2018, at 1:27 AM, Alan DeKok <aland at> wrote:
> On Apr 16, 2018, at 9:17 AM, Paul via Freeradius-Users <freeradius-users at> 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

List info/subscribe/unsubscribe? See

More information about the Freeradius-Users mailing list