Admin Logon Page

Could someone please point me to where I can find information on how to customise the administration logon page? I am unable to find where the images and html files used to render the page are stored and would like to know how to alter and upload them. Using RouterOS 4.5

Thanks

You need to contact support and ask for your account to have reseller and rebranding features enabled.

OK - thanks

I’m looking for an alternative solution. I would like to redirect the www port from displaying the ‘Web-box’ logon page to a page located in the Hotspot directory. I can redirect to a local webserver, but would prefer the page to be stored internally in a subdirectory of the /hotpot directory. Is this possible?

thanks

You can access other URLs on the router (including Hotspot ones), but I can’t think of any way to write a redirect from http://router/ to http://router/hotspot/index.html (for example, could be any router hosted URL) than to use NAT to redirect to the internal web proxy, and to have a web proxy access rule for the redirected URL accepting it and another one for the base URL with an action of deny and a redirect-to targeting the desired rewrite:

/ip firewall nat
add chain=dstnat action=redirect to-ports=8080 protocol=tcp dst-address=[router IP] dst-port=80
/ip proxy set enabled=yes
/ip proxy access
add action=accept disabled=no dst-address=[router IP] dst-port=80 path=/hotspot/*
add action=deny disabled=no dst-address=[router IP] dst-port=80 redirect-to=[router IP]/hotspot/login.html

Make sure you don’t use any files outside the /hotspot/ directory for the page as it would trigger infinite loops within the web proxy. There’s no reason to use the hotspot directory, though, this could be any directory you create in the filesystem. Hotspots themselves run via servlets on different ports (just enable a Hotspot on an interface and look at the resulting NAT rules via “/ip firewall print all”) but those are only accessible from interfaces that Hotspots are enabled on, as far as I know. Quick testing confirms that. So you cannot use any of the variable interpolation possible in Hotspot pages as those are done by the servlets, and not by the web server.

Other people may have more elegant solutions.

Thanks fewi - I’ll give that a try

Unfortunately this doesn’t appear to work completely. The redirect operates, going to [RouterIP]/hotspot/login.html instead of the Admin page correctly, but doesn’t render the login page at [RouterIP]/hotspot/login.html The Hotspot uses this page correctly, but the redirect in the proxy shows the original unmodified Hotspot page - where it is coming from I don’t know, as it no longer exists in the /hotspot directory and it isn’t cached on my workstation. Creating a new directory in / and redirecting to a login.html there doesn’t work either - I get a 404 not found message

I can try .thanks!