User Manager
User Manager
Introduction
First make sure that router has enough hardware resources to manage User Manager and HotSpot
on the same router. User manager requirements.
To accomplish HotSpot and User Manager on the same router scenario, we need to add the
following configuration:
HotSpot configuration
/ radius add service=hotspot address=127.0.0.1 secret=123456
We add radius client to consult User Manager server for appropriate service. 'address=127.0.0.1'
points RADIUS client to use local router as RADIUS server, 'secret' is shared secret to exchange
information between RADIUS server and client.
First subscriber must be added using Mikrotik terminal (console). All the configuration is done
under the /tool user-manager menu.
To create a subscriber you should go to /tool user-manager customer menu and execute add
command. It will ask for the username which you will use.
After that you can use print command to see what you have added and you can also set the
password.
To log on customer web interface type the following address in your web browser:
http://Router_IP_address/userman
Generally we are using external Radius servers for user authentication as MikroTik is not Radius
server. But here in this example we use the MikroTik User Manager which works as a Radius
server and does authentication and control of your Hotspot users.
[edit] Requirements
Network 192.168.1.0/24
R1-Hotspot Master
WAN IP- <Connected to Internet>
LAN IP – 192.168.1.1/24
R2-Hotspot IT Dept
WAN IP – 192.168.1.2/24
LAN IP – 10.10.10.1/24
We assume that all the setup is ready and the hotspot is configured on R2, R3, R4, and R5 with
local authentication.
First, we will configure R2, R3, R4 & R5 to use MikroTik user manager as a Radius server.
/radius add
service=hotspot address=192.168.1.1 secret=123456
The user name and password will work for all the remote hotspot router…a user can login from
any department of the company with same ID and password and we can have all the user data
centrally.
Now you can log into the User Manager web interface on the address http://192.168.1.1/userman
and start setting up your user accounts.