AT-WR4500 Series - IEEE 802.11abgh Outdoor Wireless Routers

241

RouterOS v3 Configuration and User Guide

 

 

 

(you should correct the link to point to your server)

To erase the cookie on logoff, in the page containing link to the logout (for example, in status.html) change:

open('$(link-logout)', 'hotspot_logout', ...

to this:

open('$(link-logout)?erase-cookie=on', 'hotspot_logout', ...

or alternatively add this line:

<input type="hidden" name="erase-cookie" value="on">

before this one:

<input type="submit" value="log off">

An another example is making HotSpot to authenticate on a remote server (which may, for example, perform creditcard charging):

Allow direct access to the external server in walled-garden (either HTTP-based, or IP-based)

Modify login page of the HotSpot servlet to redirect to the external authentication server. The external server should modify RADIUS database as needed

Here is an example of such a login page to put on the HotSpot router (it is redirecting to https://auth.example.com/login.php, replace with the actual address of an external authentication server):

<html>

<title>...</title> <body>

<form name="redirect" action="https://auth.example.com/login.php" method="post"> <input type="hidden" name="mac" value="$(mac)">

<input type="hidden" name="ip" value="$(ip)">

<input type="hidden" name="user" value="$(username)">

<input type="hidden" name="link-login" value="$(link-login)"> <input type="hidden" name="link-orig" value="$(link-orig)"> <input type="hidden" name="error" value="$(error)"> </form>

<script language="JavaScript"> <!--

document.redirect.submit(); //-->

</script>

</body>

</html>

The external server can log in a HotSpot client by redirecting it back to the original HotSpot servlet login page, specifying the correct username and password

Here is an example of such a page (it is redirecting to https://hotspot.example.com/login, replace with the actual address of a HotSpot router; also, it is displaying www.alliedtelesis.com after successful login, replace with what needed):

<html>

<title>Hotspot login page</title> <body>

<form name="login" action="https://hotspot.example.com/login" method="post"> <input type="text" name="username" value="demo">

<input type="password" name="password" value="none"> <input type="hidden" name="domain" value="">

<input type="hidden" name="dst" value="http://www.alliedtelesis.com/"> <input type="submit" name="login" value="log in">

</form>

</body>

</html>

Page 241
Image 241
Allied Telesis AT-WR4500 manual To this, Or alternatively add this line, Before this one