Commands for configuring RADIUS authentication. Also see the corresponding article.
config security radius host
Set the IP address of the authentication server that Nginx will contact when a log-in is attempted.
config security radius host <IP address>
Example output:
[Wed Dec 18 07:00:51 2024] > config security radius host 192.168.255.255
[Wed Dec 18 07:00:52 2024] Changes made successfully.
Note:
Multiple addresses, separated by whitespace, can be given using double quotation marks, e.g.
config security radius host "192.168.255.254 192.168.255.255"
.
config security radius protocol
Set the value for the Framed-Protocol
attribute sent to the authentication server. Valid values for <protocol>
include PPP
and SLIP
.
config security radius protocol <protocol>
Example output:
[Wed Dec 18 07:01:08 2024] > config security radius protocol PPP
[Wed Dec 18 07:01:09 2024] Changes made successfully.
Note:
Use
config security radius protocol ""
to unset the protocol. Be aware that single quotation marks cannot be used in place of double quotation marks.
config security radius secret
Set the shared secret that gets sent to the authentication server.
config security radius secret <string>
Example output:
[Wed Dec 18 07:01:22 2024] > config security radius protocol "hello world"
[Wed Dec 18 07:01:23 2024] Changes made successfully.
Note:
Use
config security radius protocol ""
to unset the secret. Be aware that single quotation marks cannot be used in place of double quotation marks.
config security radius timeout
Set the RADIUS log-in session time-out period in minutes. The given argument can be a number, but it can also be an arbitrary Lua expression that evaluates to a number. Please note that if an expression has whitespace in it, it must be enclosed within double quotation marks.
config security radius timeout <expression>
Example output:
[Sat May 17 05:46:35 2025] > config security radius timeout 60
[Sat May 17 05:46:35 2025] Set RADIUS session time-out to 60 minute(s)
[Sat May 17 05:46:37 2025] > config security radius timeout 60*24
[Sat May 17 05:46:38 2025] Set RADIUS session time-out to 1440 minute(s)
[Sat May 17 05:46:47 2025] > config security radius timeout "60 * 12"
[Sat May 17 05:46:47 2025] Set RADIUS session time-out to 720 minute(s)