keycloak-radius-plugin

Mikrotik Keycloak Radius Plugin

Mikrotik Login Example (Radius Server)

  1. create ${KEYCLOAK_PATH}/config/radius.config
{
  {
   "sharedSecret":"TEST",
   "authPort":1812,
   "accountPort":1813,
   "useUdpRadius":true,
   "radsec":{
      "privateKey":"config/private.key",
      "certificate":"config/public.crt",
      "useRadSec":false
   }
}
  1. create “mikrotik_login” RealmcreateRealm
  2. create “radius” client radiusClient
  3. create role “MIKROTIK-ADMIN” createAdminRole
  4. assign radius attribute “Mikrotik-Group”=”full” to Role “MIKROTIK-ADMIN” addAttribute
  5. create “testUser” User addTestUser
  6. set Password “test” for User. uncheck “Temporary” SetPassword
  7. assign Role “MIKROTIK-ADMIN” to “testUser” AssignRole
  8. set Action “Update Radius Password” (or send this event to user be email) updateRadiusPassword
  9. Impersonate user Impersonate
  10. Sign-out SignOut
  11. Login with testUser:test loginNewUser
  12. Set Radius User Password RadiusUserPassword
  13. open Mikrotik Radius configuration Page RadiusSetting
  14. enable Radius AAA AAA useRadiusUsers
  15. try to login with a new User loginMikrotik webActive
  16. try to login by ssh(the same for telnet and winbox) sshAccesssshActive

Mikrotik Rad-sec Example

Mikrotik RadSec Example

Hotspot Example (with Facebook login)

Hotspot Example (with Facebook login)

Example CoA Configuration

Radius Disconnect Message

Radius Proxy

Radius Proxy Module