Connect to public free WIFi, using mikrotik device?

I need to connect to a public free wireless network, using a mikrotik device.

The problem is, when i connect the mikrotik router, to the public network, there is no internet connection. Because, to use the free wifi, you first need to open the browser, and then it redirects you to the login page, and then you need to click accept.
Is there a script, that i can use so that the mikrotik router can do the same?
(go to the login page, and then click accept, in order to be able to use the internet)


Thank you for your help

First, remove the default settings.

Try this

http://www.wirelessinfo.be/index.php/mikrotik/pages/station
reset.jpg

2 choices.

\

  1. Create a bridge and add the wlan + all ethernet ports to the bridge that way the PC’s will be able to go through the hotspot process and click accept.

2)alternatively if the hotspot provider is using mikrotik AND allow PAP login you can connect MT to the wifi open terminal and telnet to the hotspots IP type
GET HTTP/1.0

for example

GET login.hotspot.com?username=myusername&password=password HTTP/1.0

It should be easy enough to find the address, just go to the page in your browser and view the source, find out where the button is and that should be wrapped in a form. find the “action” (that is the address) and find the username and password predifined in the HTML.

Thats how most of them work that I’ve seen.

Thanks for your help, i cannot use the 1st option, becuse the clients connected to mikrotik router are devices that cannot open browser (and click accept), thats why i need the mikrotik router to do the job for them.

The 2nd option would be good, but i think it is not a mikrotik device that they (the public wifi) are using.
I will check tomorrow, but is there any other solution in case the public wifi is not a mikrotik AP ?


Thank you very much

thank you for your help,

Only in this scenario the client devices would still be redirected to the login page, where they would need to click on the “Accept” button in order to use internet.
I am trying to find a solution, where the mikrotik router could do that job, so that the client devices can go directly to the internet , without being forwarded to the Public WIFI login page.

Thanks

It doesn’t have to be a Mikrotik, its just that some other systems work in strange was.


Just view the source of the page, if its method is “GET” and the username & password are in the HTML it shouldn’t matter what device its using

I tried to launch the “get” command from terminal, but i get an error (bad command name “get”).
Can you explain from where do i write the command, do i need first go to /tool or /system?
And do i first need to write “telnet” router ip and then “get…”?

Thanks

Try the config that i said.

I think that this works.

Let me know