Sunday, December 4, 2011

How to set up Mikrotik Hotspot authenticate 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=

2. configure mikrotik to use the local Radius

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

3. enable hotpot using the radius

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

 1   name="hsprof1" hotspot-address= dns-name=""
     html-directory=hotspot rate-limit="" http-proxy=
     smtp-server= login-by=http-chap split-user-domain=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
username: online  (created in step 4)
password: admin  (created in step 4)

    - IP address is the WAN address

1 comment:

  1. Good sharing!

    Hi Dara!
    It is so proud to see you, Cambodian, post and share IT knowledge on web as I am checking on google. I have checked your post seem 2011, for mikrotik configuration as general configuration for using as router in our cambodia, but i dont found it, so if you dont mind, would you please help me to make a lesson how to config mikrotik router for the following purpose:
    - Mikrotik as internet router/gateway
    - LAN DHCP control
    - Speed limit
    - Record traffic of individual DHCP users.

    Thanks for your sharing and wish you a very nice weekend.
    Jat :