Community discussions

MikroTik App
 
ciphercore
Member Candidate
Member Candidate
Topic Author
Posts: 155
Joined: Fri Jan 29, 2010 5:48 pm

HotSpot / UserManager

Thu Feb 18, 2010 10:24 pm

So I am pretty new to the MikroTik hotspot/userman.

1.
Basically I want the owner of the hotspot to be able to add/remove users (this is for a marina hotspot, no paypal/auth.net, simple user/pass). Currently when I add users in the webif, they do not show in winbox under ip - hotspot - users. And the other way, users created in winbox do not show in webif. USers created in webif, do not work.

2.
Can someone also explain the difference between Custromers and users in the Userman webif ? Is users, users that can access the userman ?

3.
Also, I would like to be able to make remote backups of the hotspot user db. Is it possible for me to make/find a script to upload the user db to say a remote ftp server ? And where is the hotspot user db stored ?
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: HotSpot / UserManager

Fri Feb 19, 2010 12:00 am

1. there's a difference between users created via Winbox and User Manager users. Winbox creates local users, User Manager creates User Manager users. User Manager is essentially a basic RADIUS server. To make User Manager users work you need to configure the router to use RADIUS for Hotspot logins, and need to configure User Manager to recognize the router as a legitimate device (RADIUS NAS). The wiki has details, examples and howtos.

2. This is outlined on the wiki. http://wiki.mikrotik.com/wiki/User_Mana ... _explained

3. This is outlined on the wiki. http://wiki.mikrotik.com/wiki/User_Manager/Backup
 
ciphercore
Member Candidate
Member Candidate
Topic Author
Posts: 155
Joined: Fri Jan 29, 2010 5:48 pm

Re: HotSpot / UserManager

Fri Feb 19, 2010 12:02 am

That makes a bit more sense. I will have a full read and see if I can get it worked out.

Thanks fewi
 
ciphercore
Member Candidate
Member Candidate
Topic Author
Posts: 155
Joined: Fri Jan 29, 2010 5:48 pm

Re: HotSpot / UserManager

Tue Feb 23, 2010 6:32 pm

So I am still having some trouble.
Basically I have a PPPoE client for wan
I then use the hotspot wizard, setting int e2 as hotspot interface 192.168.0.1/24
I then do these steps :

http://wiki.mikrotik.com/wiki/User_Mana ... ame_router
As I want the radius and captive portal on the same box (simple hotspot), but I want them to be able to use the UserMan webif.

Here is what I get:
[admin@MikroTik] > /radius add service=hotspot address=127.0.0.1 secret=xxx
[admin@MikroTik] > /ip hotspot profile set hsprof1 use-radius=yes
[admin@MikroTik] > /tool user-manager   
credit  customer  database  history  log  payment  router  session  user  export
[admin@MikroTik] > /tool user-manager customer add login="mikrotik" password="xxx" permissions=owner 
[admin@MikroTik] > /tool user-manager router add subscriber=mikrotik 
comment  copy-from  disabled  log  name  shared-secret  ip-address
[admin@MikroTik] > /tool user-manager router add subscriber=mikrotik ip-address=127.0.0.1 shared-secret=xxx
[admin@MikroTik] > 

When I goto a website, I get the captive portal. I can log into it with the local user I have created.

When I goto : 192.168.0.1:81/user-man

I cannot log in. I get 501 not implemented.
 
ciphercore
Member Candidate
Member Candidate
Topic Author
Posts: 155
Joined: Fri Jan 29, 2010 5:48 pm

Re: HotSpot / UserManager

Wed Feb 24, 2010 6:01 pm

Well....

it seems going to the correct page helps, strange that it gave me the login.

Does not work: (but brings you to userman login)
http://router_IP/user-man

Works:
http://router_IP/userman

Who is online

Users browsing this forum: No registered users and 6 guests