Task:
Enable selected users Auto login to mikrotik hotspot system without letting them seeing login page, using ‘mac login’ feature in mikrotik hotspot while applying selected user profile as well, or As assigned in radius manager billing system. [freeradius base]
Note: This is just a workaround. There are other perfect or more sophisticated solutions available too, just showing you this particular method. You may adopt other as depend on your network and skills. It was written for personnel reference. z@!b
Mikrotik Section:
Goto IP / Hotspot / Server Profile, select your HS server profile,
Goto LOGIN, and select LOGIN by MAC.
As showed in the image below …
.
Now goto FILES / and download login.html from hotspot folder to your desktop.
As showed in the image below …
Open this login.html it in any html editor or notepad, and add following text in start.
<span style="line-height: 1.5;"><html><head></span> <meta http-equiv="refresh" content="0; url=http://www.google.com"> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="expires" content="-1"> </head><body></body></html>
As showed in the image below …
Save and upload it back to the mikrotik hotspot folder.
Mikrotik Section Done. moving to Radius Manager Section
Radius Manager Section
Connect to Radius Manager by ssh/putty
Edit RM system_cfg.php configuration file by
(for centos you may change path to /var/www/html/radiusmanager/config)
nano /var/www/radiusmanager/config/system_cfg.php
search for “define(‘min_pswhsmac_len’, 4);”
and change it to
define(‘min_pswhsmac_len’, 0);
Save and exit.
As showed in the image below …
Create NEW USER in RM ACP >
Now create new user in RM users, and select MAC and enter mac address in 00:00:00 format and save.
As showed in the image below …
TESTING Section:
From test PC, try to browse any web site, User will auto login by hotspot and will be redirected to google.com ( or any site mentioned in login.thml , i choose status page)
As showed here in mikrotik log window …
Regard’s
Syed Jahanzaib
Dear sayed jahanzaib
I. Have problem with mikrotik BGP peering i have live ip range from my provider i don’t know how Do BGP peer with mikrotik
On Monday, 11 January 2016, Syed Jahanzaib Personal Blog to Share Knowledge ! wrote:
> Syed Jahanzaib / Pinochio~:) posted: ” Task: Enable selected users Auto > login to mikrotik hotspot system without letting them seeing login page, > using ‘mac login’ feature in mikrotik hotspot while applying selected user > profile as well, or As assigned in radius manager billing system. [fre” >
LikeLike
Comment by Ramin warasta — January 25, 2016 @ 12:22 PM
Sorry i dont have experience in BGP/Public ip protocols.
LikeLike
Comment by Syed Jahanzaib / Pinochio~:) — January 26, 2016 @ 10:35 AM
The way the client entry to the control panel without a user name and without a password
LikeLike
Comment by Mohamed Esmael — March 15, 2017 @ 7:44 PM
Dear sayed jahanzaib
I am developing my simple hotspot manager. I am using c# api. I could not do radius connection.I want to verify hotspot users via radius. is it possible for c# ?
LikeLike
Comment by Mesut — November 23, 2018 @ 10:36 PM
I applied this method, it works for users who wishes not to logging, But I’ve another issue I’ve others users who still uses username and password method for them the login page keeps flicking (auto refreshing) without giving them proper time to type their username and password. Can you assist in resolving?
Is it due to this line which we set on the login.html
meta http-equiv=”refresh” content=”0; url=http://www.google.com
….
Both login method is actually required. Auto login and username / password authentication as well.
LikeLike
Comment by zakluthfy — October 18, 2019 @ 9:17 AM
thx for the update.
LikeLike
Comment by Syed Jahanzaib / Pinochio~:) — November 11, 2019 @ 10:30 PM
[…] Task: Enable selected users Auto login to mikrotik hotspot system without letting them seeing login page, using 'mac login' feature in mikrotik hotspot while applying selected user profile as well, or As assigned in radius manager billing system. [freeradius base] Note: This is just a workaround. There are other perfect or more sophisticated solutions available too,… https://aacable.wordpress.com/2016/01/11/mikrotik-hotspot-user-auto-login-by-mac-with-redirection-us… […]
LikeLike
Pingback by Autologin Mac | Instans Login — April 4, 2020 @ 6:35 AM
[…] Mikrotik Hotspot User auto login-by MAC with redirection … […]
LikeLike
Pingback by Mikrotik Hotspot Auto Login – LoginManual.com — March 28, 2022 @ 2:36 PM
[…] » Visit Now Jan 11, 2016 · Task: Enable selected users Auto login to mikrotik hotspot system without letting them seeing login page, using ‘mac login’ feature in mikrotik hotspot while applying selected user profile as well, or As assigned in radius manager billing system. [freeradius base] Note: This is just a workaround. There are other perfect or more sophisticated solutions available too,… […]
LikeLike
Pingback by Auto Login Mikrotik Hotspot Account - logininfos.com — August 24, 2022 @ 6:11 AM
[…] » Visit Now Jan 11, 2016 · Task: Enable selected users Auto login to mikrotik hotspot system without letting them seeing login page, using ‘mac login’ feature in mikrotik hotspot while applying selected user profile as well, or As assigned in radius manager billing system. [freeradius base] Note: This is just a workaround. There are other perfect or more sophisticated solutions available too,… […]
LikeLike
Pingback by Auto Login Hotspot Mikrotik Login Thread - logininfos.com — September 4, 2022 @ 6:04 AM