Freeradiusd 3 and Realm help

Alan DeKok aland at
Fri Sep 30 13:14:32 UTC 2022

On Sep 30, 2022, at 5:04 AM, Olivier CALVANO <o.calvano at> wrote:
> but now i want same with all username and without check password
> sample:
> *@my.realm Cleartext-Password := "*"
>        Tunnel-Type:1 = L2TP,
>        Tunnel-Medium-Type:1 = IPv4,

  Why use the "files" module?  It isn't designed to do what you want.

  The documentation on the files module is very clear on how it works.  It doesn't do what you want, so you can't do it there.

> I don't know how to do this, does anyone have a tip?

$ man unlang

	if (User-Name =~ /@my.realm$/) {
		update reply {
			Tunnel-Type;1 = L2TP
			Tunnel-Medium-Type:1 = IPv4

  That will work.

  Alan DeKok.

More information about the Freeradius-Users mailing list