User Manager/Hotspot Example: Difference between revisions

From MikroTik Wiki
Jump to navigation Jump to search
m (User Manager Example Hotspot moved to User Manager Hotspot Example)
mNo edit summary
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Introduction ==  
== Introduction ==  
To make this setup, you should have running Hotspot server on the router.  
To make this setup, you should have running [[How to make a HotSpot gateway | Hotspot]] server on the router.  
Let's consider configuration steps for HotSpot and User Manager routers, in order to use User Manager for HotSpot users.
Let's consider configuration steps for HotSpot and User Manager routers, in order to use User Manager for HotSpot users.
== User Manager configuration ==
* First, you need to [[Upgrading RouterOS | install]] User Manager [http://www.mikrotik.com/download.html package];
* Create User Manager [[User Manager/Getting started #Create first subscriber | subscriber]];
* Add HotSpot router information to router list,
  / tool user-manager router add subscriber=MikroTik ip-address=x.x.x.x shared-secret=123456
'x.x.x.x' is the address of the HotSpot router, 'shared-secret' should match on both User Manager and HotSpot routers.
* Add HotSpot user information, it is equal to 'ip hotspot user' when local HotSpot is used for clients
  / tool user-manager user add username=demo password=demo subscriber=MikroTik
We discuss only basic configuration example, detailed information about [[User_Manager/Users | 'user']] menu configuration.
*You can use User Manager [[#Use_web_interface | web interface]] after first [[User Manager/Getting started #Create first subscriber |subscriber]] created.


== HotSpot configuration ==
== HotSpot configuration ==
Line 31: Line 16:
'y.y.y.y' is the User Manager router address.
'y.y.y.y' is the User Manager router address.
* Note, first local HotSpot database is consulted, then User Manager database.
* Note, first local HotSpot database is consulted, then User Manager database.
== User Manager configuration ==
* First, you need to [[User Manager/Getting started #Download | download]] and [[User Manager/Getting started #Install | install]] User Manager [http://www.mikrotik.com/download.html package];
* Create User Manager [[User Manager/Subscribers | subscriber]];
<pre>
/ tool user-manager customer add login="MikroTik" password="qwerty" permissions=owner
</pre>
* Add HotSpot router information to [[User Manager/Routers | router]] list,
  / tool user-manager router add subscriber=MikroTik ip-address=x.x.x.x shared-secret=123456
'x.x.x.x' is the address of the HotSpot router, 'shared-secret' should match on both User Manager and HotSpot routers.
* Add HotSpot user information, it is equal to 'ip hotspot user' when local HotSpot is used for clients
  / tool user-manager user add username=demo password=demo subscriber=MikroTik
We discuss only basic configuration example, detailed information about [[User_Manager/Users | 'user']] menu configuration.
*You can use User Manager [[User Manager/Customer page | web interface]] after first [[User Manager/Getting started #Create first subscriber |subscriber]] created.

Revision as of 05:47, 19 October 2006

Introduction

To make this setup, you should have running Hotspot server on the router. Let's consider configuration steps for HotSpot and User Manager routers, in order to use User Manager for HotSpot users.

HotSpot configuration

  • Set HotSpot to use User Manager for HotSpot server users,
 / ip hotspot profile set hsprof1 use-radius=yes
  • Add radius client to consult User Manager for HotSpot service. 'address=127.0.0.1' points RADIUS client to use local router as RADIUS server, 'secret' is shared secret used to access the RADIUS server.
 / radius add service=hotspot address=y.y.y.y secret=123456

'secret' is equal to User Manager router secret. 'y.y.y.y' is the User Manager router address.

  • Note, first local HotSpot database is consulted, then User Manager database.


User Manager configuration

/ tool user-manager customer add login="MikroTik" password="qwerty" permissions=owner
  • Add HotSpot router information to router list,
 / tool user-manager router add subscriber=MikroTik ip-address=x.x.x.x shared-secret=123456

'x.x.x.x' is the address of the HotSpot router, 'shared-secret' should match on both User Manager and HotSpot routers.

  • Add HotSpot user information, it is equal to 'ip hotspot user' when local HotSpot is used for clients
 / tool user-manager user add username=demo password=demo subscriber=MikroTik

We discuss only basic configuration example, detailed information about 'user' menu configuration.