Community discussions

MikroTik App
 
andreaswe
just joined
Topic Author
Posts: 10
Joined: Mon Oct 09, 2017 2:30 pm

HotSpot maintenance page / or disable at specific time

Thu Apr 26, 2018 1:21 pm

Hi,

is there any script available that can disable a hotspot at a specific time? I have multiple hotspots on one ccr1036 and need to disable
some of them outside the business hours. I tried something with nat redirect and web proxy but without success.

Thanks in advance for any hints.

best regards
 
2frogs
Forum Veteran
Forum Veteran
Posts: 713
Joined: Fri Dec 03, 2010 1:38 am

Re: HotSpot maintenance page / or disable at specific time

Thu Apr 26, 2018 2:14 pm

Without knowing how your hotspot is setup, the best option I can think of is to modify a copy of the hotspot files to (or create a simple login.html) "This site down for maintenance" or whatever you want it to say. Then upload to a different folder than your normal hotspot files. Now create a new server profile that has the same IP & DNS Name, but set HTML Directory to the new file location and disable all login by & radius. Now, set a scheduler that sets your server profile to the new one and clears all active users. And you would need a second scheduler to reactivate the normal server profile.

You could also just create and upload the files and then schedule to change HTML Directory Override to your new file location, but if your are using cookies for login then the clients would still be able to login.

Who is online

Users browsing this forum: Bing [Bot], homerouter, ianjay06 and 107 guests