Hello, I have to set up a radius server which must make a specific response to a realm and I can't find how to do it. So I configured a realm in proxy.conf: realm "~(my.realm)" { nostrip } Then I tried in the users file (./mods-config/files/authorize) to put: bob@my.realm Cleartext-Password := "hello" Tunnel-Type:1 = L2TP, Tunnel-Medium-Type:1 = IPv4, Tunnel-Server-Endpoint:1="192.168.1.100", Tunnel-Preference:1=1, Tunnel-Assignment-Id:1 = "\"Rt1\"", Tunnel-Type:2 = L2TP, Tunnel-Medium-Type:2 = IPv4, Tunnel-Server-Endpoint:2="192.168.2.100", Tunnel-Preference:2=1, Tunnel-Assignment-Id:2 = "\"Rt2\"", Service-Type = Framed-User, Framed-Protocol = PPP in radtest, it's good. 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, Tunnel-Server-Endpoint:1="192.168.1.100", Tunnel-Preference:1=1, Tunnel-Assignment-Id:1 = "\"Rt1\"", Tunnel-Type:2 = L2TP, Tunnel-Medium-Type:2 = IPv4, Tunnel-Server-Endpoint:2="192.168.2.100", Tunnel-Preference:2=1, Tunnel-Assignment-Id:2 = "\"Rt2\"", Service-Type = Framed-User, Framed-Protocol = PPP I don't know how to do this, does anyone have a tip? thank you in advance for your help
On Sep 30, 2022, at 5:04 AM, Olivier CALVANO <o.calvano@gmail.com> 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.
participants (2)
-
Alan DeKok -
Olivier CALVANO