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=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)




NOTE
    - IP address 192.168.24.241 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 : jettaka7@gmail.com

    ReplyDelete