Internal Captive Portal with automatic guest auth and redirect to welcome page - Jan 2014


Tutorial by 

In some cases, it is desirable to provide a guest network where the user is automatically logged in as a guest and redirected to the welcome page. This provides a user-friendly way of displaying a welcome page to the user when he connects even if you do not wish to have them do a manual log in to the guest network.


To accomplish this task, we will create a custom login page for the captive portal profile.

The following HTML code is saved to a file with the ".html" extension. This could be anything you like, for example: "autologin.html"

The HTML code will automatically login the user as a guest. If for some reason the automatic login fails, the page will provide a button for manual login.



<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!DOCTYPE HTML PUBLIC"-//W3C//DTD HTML 4.01 Transitional//EN">
<meta http-equiv="refresh" content="0; url=/auth/index.html/u?cmd=authenticate&">
<form name="form1" method="post" action="/auth/index.html/u">
<span class="bodytext">
<input type="hidden" id="email" name="email" type="text" value="" class="text" accesskey="e" />
<input type="hidden" name="cmd" value="authenticate" />
<input type="submit" name="Login" value="Click here if you are not automatically logged in to the network" class="button" />


Upload this file in "Management > Captive Portal > Upload Login Pages". Choose page type: Captive Portal Login (top-level).

Remember to choose the correct Captive portal profile before uploading!


When this file is uploaded, edit the Captive Portal Authentication Profile to at least contain the following parameters:

login-page "/upload/custom/cp-profile-name/autologin.html"
welcome-page ""

 Edit the login-page parameter to contain your profile instead of "cp-profile-name" in the example.

Edit the welcome-page parameter to contain your welcome-page URL instead of "" in the example.


Enjoy your  auto-login Captive Portal Smiley Happy

Version history
Revision #:
1 of 1
Last update:
‎02-26-2014 08:13 AM
Updated by:

Hi Nesvik,


I have a friend that is looking to implement the above with one wrinkle, is there a way that guest users would have unique credentials? For instance, could the underlying guest username be incremented by a digit each time?


The person is not interested in Clearpass right now, which would also do the trick.


Thanks for your help!



Search Airheads
Showing results for 
Search instead for 
Did you mean: