Skip to main content
Version: 7.26

radius


radius​

Type: Directory

RADIUS servers that the router services use for authentication and accounting. The entries are used in the order of the list. See RADIUS for the full guide.

FlagNameDescription
XdisabledThe entry is disabled and is not used.
ArgumentTypeDescription
serviceubit (ppp, login, hotspot, wireless, dhcp, ipsec, dot1x)

Router services that use this server. Each service also has its own setting that turns RADIUS on.

  • ppp - PPP servers.
  • login - Router users.
  • hotspot - HotSpot.
  • wireless - Wireless client authentication.
  • dhcp - DHCP server. The MAC address of the device is sent as User-Name.
  • ipsec - IPsec client authentication.
  • dot1x - Dot1X.
called-idstringThe entry is used only for requests with this Called-Station-Id. For PPPoE it is the service name, for PPTP and L2TP the IP address of the server. An empty value matches every request. Default: empty.
domainstringThe entry is used only for users with this domain in the login name (DOMAIN\name or name@domain). An empty value matches every user. Default: empty.
address ( mandatory )address (flags=46v)IPv4 or IPv6 address of the RADIUS server. With an IPv6 address the router sends NAS-IPv6-Address in place of NAS-IP-Address. To reach the server in a VRF, add the VRF name: address@vrf.
secretstringShared secret of the router and the server. Not used with protocol=radsec. This is a sensitive parameter.
authentication-portnumUDP port of the server for authentication requests. Not used with protocol=radsec. Range: 1..65535. Default: 1812.
accounting-portnumUDP port of the server for accounting requests. Not used with protocol=radsec. Range: 1..65535. Default: 1813.
timeouttimeTime to wait for an answer before the request is sent again. Default: 1100ms.
radsec-timeouttimeTime to wait for an answer before the request is sent again over RadSec. Default: 3300ms.
accounting-backupbool

Whether the server gets a copy of the accounting requests.

  • no (default) - The entry is used for authentication and accounting in the order of the list.
  • yes - The entry gets a copy of every accounting request of its services, in addition to the entry that answers. It gets no authentication requests.
realmstringValue of the Mikrotik-Realm attribute in the Access-Requests of the entry. Without it, the attribute has the domain of the user name, and it is not sent when the name has no domain. Default: empty.
src-addressalt { ip-address: ipAddr , ipv6-address: ip6Addr }Source IPv4 or IPv6 address of the packets sent to the server. The same address is sent as NAS-IP-Address. Default: not set, the router selects the address.
protocolenum (udp | radsec)

Transport of the requests.

  • udp (default) - RADIUS over UDP, to authentication-port and accounting-port.
  • radsec - RADIUS over TLS, to TCP port 2083. Needs certificate.
certificateenum (none) { none:0 }Client certificate, with its private key, for protocol=radsec. The certificate authority of the server must be a trusted certificate on the router, and the certificate of the server must contain the value of address. Default: none.
require-message-authenum (no | yes-for-request-resp)

Whether an answer to an Access-Request must have the Message-Authenticator attribute. The router adds the attribute to every Access-Request with either value.

  • yes-for-request-resp (default) - An answer without the attribute is dropped and counted in bad-replies.
  • no - An answer without the attribute is accepted.
Read-only ArgumentTypeDescription
statusstringLast connection error of the entry, for example error: Connection refused. With protocol=radsec, the state of the TLS connection: connecting, performing TLS handshake, TLS connected, or an error such as connect:Connection refused or client certificate required.