Community discussions

MikroTik App
 
ImaginaryGuru
just joined
Topic Author
Posts: 8
Joined: Tue May 20, 2008 7:04 pm

Can't access Signup without login?

Fri Jul 30, 2010 6:01 am

I've been preparing to deploy my first hotspot system using the User-Manager package and it's been going well. However, I'm running into one issue that I can't seem to solve.

From the internal network, I can't access the signup page without first logging in!

In fact, if I point my browser to my internal IP address (10.10.10.1) the only hotspot/user-manager page I can get is the login page, everything else 404's. However, if I use my routers external IP, I can access the signup page/userman/etc after logging in.

I've read through all the wiki articles and manual pages and can't find my mistake. The only thing I haven't done is to enable the use of SSH. What am I missing?

I have tried using both ROS 4.11 w/4.11 User-Manager, and ROS 4.10 w/ 4.10-test User-Manager and get the same results.
 
imaljko4
Member Candidate
Member Candidate
Posts: 250
Joined: Fri Apr 25, 2008 6:52 pm

Re: Can't access Signup without login?

Fri Jul 30, 2010 1:10 pm

if I use my routers external IP, I can access the signup page/userman/etc after logging in.
I think you need to add your external IP address to walled garden:
/ip hotspot walled-garden ip add action=accept comment="" disabled=no dst-address="your external IP"
Input your IP address under "your external IP"
 
ImaginaryGuru
just joined
Topic Author
Posts: 8
Joined: Tue May 20, 2008 7:04 pm

Re: Can't access Signup without login?

Sat Jul 31, 2010 6:18 am

Thanks for that suggestion, it got me thinking in the right direction.

If my understanding is incorrect, anyone can feel free to jump in, but this is how I see things at this point.
  • 1. The hotspot web server is completely independent from the User Manager web server.
    2. If the hotspot and User Manager are configured to run on the same internal hotspot gateway IP then the User Manager pages WILL NOT be accessible without login from the hotspot network.
    3. The User Manager pages (Signup, userman, etc) can only be accessed from the hotspot network given the following conditions are true:
    • 3a. The User Manager router (/tool user-manager router) and the Radius client (/radius) are set on any IP other than the one the hotspot is using (i.e. random private IP on loopback [IP on portless bridge] or external router IP).
      3b. A walled garden IP entry is added to the hotspot to allow access to the User Manager IP without login (/ip hotspot walled-garden ip)
In my case, I changed my User Manager to another IP, added a walled garden entry to that new IP, and added a link to the signup page to the hotspot login page, which got me up and running.
/interface bridge
add
/ip address
add address=10.10.11.1/32 interface=bridge1
/radius
add address=10.10.11.1 secret=123456 service=hotspot
/tool user-manager router
add customer=admin ip-address=10.10.11.1 name=router1 shared-secret=123456
/ip hotspot walled-garden ip
add action=accept comment="" disabled=no dst-address=10.10.11.1

Added to login.html page:

<a style="color: #FF8080" href="http://10.10.11.1/user/signup/mikrotik">   Sign-up!</a>
 
ulink
Member Candidate
Member Candidate
Posts: 128
Joined: Fri Mar 05, 2010 5:07 am

Re: Can't access Signup without login?

Tue Aug 17, 2010 6:25 am

Hello
I am working on this as well. Signup is eluding me. I followed your lead and can get the login page with signup. After accepting the SSL cert, I am directed to https://192.168.1.1/user/signup/mikrotik. Address would seem correct however, it is the standard user manager login page. Not a new user sign up (set user/pass and pay for access).
 
User avatar
neandero
Member Candidate
Member Candidate
Posts: 243
Joined: Fri Jul 17, 2009 11:43 am
Location: Inside Mind

Re: Can't access Signup without login?

Fri Dec 10, 2010 8:47 pm

I get the same page requesting to login with user/pass instead of a page to create new user.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Can't access Signup without login?

Fri Dec 10, 2010 10:07 pm

You can't use the hotspot ip to get to the payment page. You should use the ip on you wan interface (ether1?). But before that will work, you need to let requests to that ip through the hotspot.
/ip hotspot walled-garden ip
add dst-address=x.x.x.x action=accept
Replace x.x.x.x with your wan ip.
 
User avatar
neandero
Member Candidate
Member Candidate
Posts: 243
Joined: Fri Jul 17, 2009 11:43 am
Location: Inside Mind

Re: Can't access Signup without login?

Fri Dec 10, 2010 10:24 pm

yes, i do get pass the hotspot login page through the walled-garden ip, but the radius use manager page (blue) displayed to login instead of a page to fill data for a new user!
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Can't access Signup without login?

Fri Dec 10, 2010 11:22 pm

The link should be
http://routerIP/user?signup=PublicID
The PublicID should be replaced with the customer public id setting.
You need to set up some type of payment method in my version anyway.
 
User avatar
neandero
Member Candidate
Member Candidate
Posts: 243
Joined: Fri Jul 17, 2009 11:43 am
Location: Inside Mind

Re: Can't access Signup without login?

Fri Dec 10, 2010 11:42 pm

thanks a lot for your kind support - the subject is getting more brighter :)

the intention is "prepaid voucher" but the terminal output dose not include it:
[admin@MikroTik] /tool user-manager customer> print
Flags: X - disabled 
 0   subscriber=owner login="owner" password="owner" time-zone=+00:00 permissions=owner parent=owner signup-allowed=no paypal-allowed=no 
     paypal-secure-response=no paypal-accept-pending=no 
[admin@MikroTik] /tool user-manager customer>
it has paypal instead, but for my case using voucher is so vital.

I would so appreciate if you can get me pass this level.... thank you,
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Can't access Signup without login?

Fri Dec 10, 2010 11:52 pm

I don't understand "prepaid voucher". If the user is prepaying, all user data like username and password, should be entered in the user database when he/she prepays. How are you intending to handle it?
 
User avatar
neandero
Member Candidate
Member Candidate
Posts: 243
Joined: Fri Jul 17, 2009 11:43 am
Location: Inside Mind

Re: Can't access Signup without login?

Sat Dec 11, 2010 12:02 am

it's like this:

i will have printed prepaid voucher cards with some type of serial number.
a user connects to my network and creates his/her account... but inactive.
the user adds the serial code of the card "secret code", the user is active.
after the period of the card expires, the user is again inactive..

think of it like a mobile "prepaid card". you have a line, but you can't make a call till you recharge your phone with credit. (scratch card).
 
robertfranz
newbie
Posts: 37
Joined: Tue Apr 21, 2009 3:30 am

Re: Can't access Signup without login?

Sun Dec 12, 2010 3:17 am

You should probably be using RadiusManager instead.

It's not without it's issues, but the developer does provide direct technical support, rather than foisting it off on 3rd parties.

I was told that UM in 5.x would support signup for free access, but this does not appear to be the case.

Given that they haven't fixed what's broken, and have not implemented basic features requested by a lot of users, I doubt there will be any new features any time soon.

More Mikrotik vaporware.
 
User avatar
neandero
Member Candidate
Member Candidate
Posts: 243
Joined: Fri Jul 17, 2009 11:43 am
Location: Inside Mind

Re: Can't access Signup without login?

Sun Dec 12, 2010 6:12 pm

You should probably be using RadiusManager instead.

It's not without it's issues, but the developer does provide direct technical support, rather than foisting it off on 3rd parties.

I was told that UM in 5.x would support signup for free access, but this does not appear to be the case.

Given that they haven't fixed what's broken, and have not implemented basic features requested by a lot of users, I doubt there will be any new features any time soon.

More Mikrotik vaporware.

Not everything is perfect in this world ... Routers are meant to route traffic - but nicely Mikrotik adds many features to their
devices to lessen the needs of extra hardware and 3rd party software. When you mentioned Radius Manager, this means
I must set a pc for one job alone, buy the 3rd party software at its full price, and at times of downtime or technical issue
i will have to dig through the root of problem either the routers or the pc or the software... with mikrotik, it's all in one...

if you step on a seed of pine tree while in the development stage, you will break it, but when its fully developed, you will need a saw to break it.... so we hope for the better :)
 
madhav
just joined
Posts: 2
Joined: Tue Aug 30, 2016 5:21 pm

Re: Can't access Signup without login?

Tue Aug 30, 2016 5:27 pm

it's like this:

i will have printed prepaid voucher cards with some type of serial number.
a user connects to my network and creates his/her account... but inactive.
the user adds the serial code of the card "secret code", the user is active.
after the period of the card expires, the user is again inactive..

think of it like a mobile "prepaid card". you have a line, but you can't make a call till you recharge your phone with credit. (scratch card).

Hi neandero

have you got the solution regarding above ?

as i want to self register the user and admin should have to approve his/her profile so how can i do that ?

Thanks & warm regards

Who is online

Users browsing this forum: No registered users and 14 guests