instead Google certificate it received Hotspot certificate). With this option disabled, if the unlogged user tries to open HTTPS website (Google as homepage), it will be redirected to hotspot login with a different HTTPS certificate and the browser will show a certificate warning (ex.
If you get certificate error, please turn off HTTPS Redirection (if your Router OS has this option). This should reenable access to the router. If you get disconnected and get login screen in your browser, create a user in the Hotspot platform and login with this user. Note: add your computer IP into the Walled Garden to prevent disconnecting during Hotspot configuration.
#Mikrotik hotspot mac
Under RADIUS tab select option Use RADIUS, change MAC format to Under the Login tab select to use only HTTP PAP. IMPORTANT: Usually there is written hotspot1, change it to WAN MAC in Change the hotspot server Name to the MAC address of your Mikrotik WAN interface and press OK. Login again using Winbox and go to IP – Hotspot – Servers tab.ĭouble click on the created hotspot. Name of Local HotSpot User and Password: configure user and pass Then it will change DNS entries so that all DNS requests are forwarded to non working IP but that is then captured and the Splash page is displayed.Hotspot Interface: Select bridge-local interface that guests will connect through Now when your internet goes down, the down script will take effect and firstly change the Hotspot default HTML folder. You can instead show a banner stating “Internet is Down, we are working on it.”. On the other hand it forces existing user to log in again too.
Consequently do remember to populate “flash/maintenancePage” with necessary page (or changes with same content) to make sure that it does not show the usual page. The script also changes the default folder for HTML page when internet goes down to “flash/maintenancePage” so that it is able to show different content when intenet is down. This approach forwards all queries to a non working IP and still maintains access to Hotspot IP. Since Mikrotik DNS by default gives priority to Static Entries over Dynamic ones, which basically causes issues because when ISP is down as DNS redirects only to Hotspot Server IP which causes all pages to not redirect when Internet is down. Do Note that you need to replace 10.0.0.1 with IP of your HOTSPOT Address as shown in IP > Hotspot > Server Profiles.
:log warning "Internet down, showing maintenance page"Īdd the following entries with corresponding comments in IP > DNS > Static using REGEX. ip hotspot profile set html-directory="flash/maintenancePage" \ And this to Tools > Netwatch > Down script.:log warning "Internet up, showing normal hotspot page" ip hotspot profile set dns-name="YOUR ACTUAL PROFILE NAME HERE" \ ip hotspot profile set dns-name="www.YOUR ACTUAL PROFILE NAME HERE" \ ip hotspot profile set html-directory="flash/hotspot" \
#Mikrotik hotspot code
Add this code to Tools > Netwatch > Up script.Script For Mikrotik RouterOS Hotspot when Internet is Down.