Thursday, August 1, 2013

set up Mikrotik Hotspot authentication with local Radius, userman

To use local Radius in Mikrotik, you have to install user-manager package. After install the package already, follow the steps below:

1. configure local Radius with secret 123456

  [admin@MikroTik] > tool user-manager router add subscriber=admin shared-secret=123456 ip-address=127.0.0.1

2. configure mikrotik to use the local Radius

[admin@MikroTik] > tool user-manager router add ip-address=127.0.0.1 shared-secret=123456 subscriber=online


3. enable hotpot using the radius
[admin@MikroTik] > ip hotspot profile print
Flags: * - default
 0 * name="default" hotspot-address=0.0.0.0 dns-name="" html-directory=hotspot
     rate-limit="" http-proxy=0.0.0.0:0 smtp-server=0.0.0.0
     login-by=cookie,http-chap http-cookie-lifetime=3d split-user-domain=no
     use-radius=no

 1   name="hsprof1" hotspot-address=192.168.4.241 dns-name="a.hot"
     html-directory=hotspot rate-limit="" http-proxy=0.0.0.0:0
     smtp-server=0.0.0.0 login-by=http-chap split-user-domain=no
     use-radius=no

[admin@MikroTik] > ip hotspot profile set 1 use-radius=yes

4. create admin for login the user manager

[admin@MikroTik] > tool user-manager customer add login=online password=admin permissions=owner

5. Login to User manager to create hotspot account. ip to login is http://192.168.24.241/userman
username: online  (created in step 4)
password: admin  (created in step 4)

No comments:

Post a Comment