Community discussions

MikroTik App
 
spire2z
Long time Member
Long time Member
Topic Author
Posts: 516
Joined: Mon Feb 14, 2005 2:48 am

ssl encrypted buttons hotspot

Tue Feb 09, 2010 2:14 pm

Has anyone figured out a way to use SSL encrypted links in the hotspot pages?
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: ssl encrypted buttons hotspot

Tue Feb 09, 2010 2:56 pm

No problem with ssl pages. If you want to let your clients access them before they login, you will need to put the domain names in "/ip hotspot walled-garden". I use an earlier version (3.13) that requires the ip addresses entered in "/ip hotspot walled-garden ip" instead. This was just a version bug. If I upgraded, I probably would not need to do that.
 
spire2z
Long time Member
Long time Member
Topic Author
Posts: 516
Joined: Mon Feb 14, 2005 2:48 am

Re: ssl encrypted buttons hotspot

Wed Feb 10, 2010 2:27 am

I mean at the actual login button for the hotspot login. I don't want some information to be such as mac address revealed in the link if possible. I do it with a php page and open ssl on normal web servers so customers cant modify the http request with the links but I don't know a way to run that on the router OS.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: ssl encrypted buttons hotspot

Wed Feb 10, 2010 12:57 pm

During the setup for the hotspot, one of the questions is about the security certificate. If you selected "none", then the login page is plain text. If you want the login page SSL, then that needs to be done during the hotspot setup. I am not certain you can change that after the initial setup.

The instructions are in the "Hotspot How-To" near the bottom of this page in the docs:
http://www.mikrotik.com/testdocs/ros/2.9/ip/hotspot.php
The docs don't mention how to start tho. In the CLI it is
/certificate create-certificate-request
And the wiki
http://wiki.mikrotik.com/wiki/SSL_Certificate_setup
 
spire2z
Long time Member
Long time Member
Topic Author
Posts: 516
Joined: Mon Feb 14, 2005 2:48 am

Re: ssl encrypted buttons hotspot

Wed Feb 10, 2010 5:07 pm

Hi, I know how to use the SSL login page, but thats not what I mean!

A SSL link is different. It's when the link within the page code is an encrypted block of text so the user has no idea where the link sends to and what it contains. An SSl page does not offer this function as the user of the browser can see the links and possibly modify them. SSl pages only encrypt between the browser and the server not the links contained in the page.

Thanks for trying to be helpfull though ;-)
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: ssl encrypted buttons hotspot

Thu Feb 11, 2010 1:14 am

what is 'SSL' stands for in that case?..
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26378
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: ssl encrypted buttons hotspot

Thu Feb 11, 2010 10:13 am

Hi, I know how to use the SSL login page, but thats not what I mean!

A SSL link is different. It's when the link within the page code is an encrypted block of text so the user has no idea where the link sends to and what it contains. An SSl page does not offer this function as the user of the browser can see the links and possibly modify them. SSl pages only encrypt between the browser and the server not the links contained in the page.

Thanks for trying to be helpfull though ;-)
can you link to the description of this? I haven't heard anything like it. Give an example in some real webpage?
 
spire2z
Long time Member
Long time Member
Topic Author
Posts: 516
Joined: Mon Feb 14, 2005 2:48 am

Re: ssl encrypted buttons hotspot

Thu Feb 11, 2010 1:57 pm

Yes:

http://www.stellarwebsolutions.com/en/a ... on_php.php

I used it on paypal to stop anyone modifying the links to the shop. One problem is that a user can change the price value link and submit a link to paypal and change the price. Also i'm using mac addresses as usernames for my billing and it would be nice that the customer didn't ever know what it was. Basically if you look at the page source all you see is a block of text and no information.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: ssl encrypted buttons hotspot

Thu Feb 11, 2010 2:11 pm

You will have challenges using that code on Mikrotik routers. No php. :(
That script only encrypts one input of the form sent to PayPal, but I see your goal. In a way, the hotspot uses this on the password if you use "login-by=http-chap". It md5 encrypts the password with a challenge sent by the router so it is not sent clear text. I am not certain how you could implement your code on the MT routers. You might need to use a purchase page on an external server (I do for other reasons) to encypt the form input.
 
spire2z
Long time Member
Long time Member
Topic Author
Posts: 516
Joined: Mon Feb 14, 2005 2:48 am

Re: ssl encrypted buttons hotspot

Thu Feb 11, 2010 2:17 pm

Yeah but maybe there is another way, everything else is there apart from php. And it would be a nice feature to fully lock down the hotspot.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: ssl encrypted buttons hotspot

Thu Feb 11, 2010 2:23 pm

I think my hotspot routers are "fully locked down". The security happens on the external server. I allow access to the server pages in "/ip hotspot walled-garden". Do you see a security challenge with that?

ADD: And I presume you are not collecting $10 donations with PayPal. If you are selling internet access, how do you plan on activating the account? That is the reason I use an external RADIUS server with a custom php front end.

Maybe I have it wrong. Are you talking about the hotspot service, or User Manager?
 
spire2z
Long time Member
Long time Member
Topic Author
Posts: 516
Joined: Mon Feb 14, 2005 2:48 am

Re: ssl encrypted buttons hotspot

Thu Feb 11, 2010 8:33 pm

Yup I use a radius server with mysql and have developed my own php code for the signup and crediting part externally via walled garden. And freeradius module to count data usage. When the payment is made the paypal IPN script updates the mysql database. It's much the same as usermanager but simpler and works using gigs not time.

Are you saying it's possible for the login page to be hosted on an external server somehow?
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: ssl encrypted buttons hotspot

Thu Feb 11, 2010 9:10 pm

You can host the login page externally, but I use a modified version of the default login page on the router, with a link to the initial purchase page ("click here to purchase time"). I change the background and the text, but all else I leave like it is. I have only the purchase pages and the call-back page on the external server, with the URL of my RADIUS server (EDIT: and the URLs/IPs of Authorize.Net's secure purchase server) entered in the walled garden.

I use Authorize.net, so it does a call-back to my RADIUS server when the purchase is complete, as I think PayPal will do too. That activates the time purchased in my system. Once the purchase is complete, I have a link to both Google and Yahoo on the "Purchase Complete/Thank You" page, with instructions to click on one to login. That pulls up the hotspot login page.

Who is online

Users browsing this forum: dawdler, Google [Bot], katongo360, Philippe57 and 118 guests