Wireless Access

last person joined: 5 hours ago 

Access network design for branch, remote, outdoor, and campus locations with HPE Aruba Networking access points and mobility controllers.
Expand all | Collapse all

URL redirection

This thread has been viewed 30 times
  • 1.  URL redirection

    Posted Jul 25, 2013 06:43 AM

    Hi, 

    Is it possible to perform URL redirection at connection to SSID?
    I need to redirect clients to a website when they connecting to SSID, and after that I need to give full access to the network for them.



  • 2.  RE: URL redirection

    Posted Jul 25, 2013 07:07 AM

    Yes, we can do this when using captive portal for guest access.

    After user gets authenticated, system will redirect to a certain page of your liking entry of which should be added in the CP profile.



  • 3.  RE: URL redirection

    Posted Jul 25, 2013 07:27 AM

    Can I do this without captive portal splash page?
    I need just redirection to website, while client is starting using my network. After redirection client should have access to any website.



  • 4.  RE: URL redirection

    EMPLOYEE
    Posted Jul 25, 2013 07:53 AM

    You should be able to do this with a custom html.  Basically, the workflow goes like this

     

    1. Connect to SSID and get placed in the initial role.  That role has a captive portal profile pointing to the external webpage

    2. On that webpage, there is some action that sends an accept message back to the controller

    3. The controller then accepts this and places the user into the role specified in the captive portal profile or any role if the Aruba VSA role is sent back

     

    I know there are some examples out there of a terms only login page...do you have ClearPass?  If so, we can accomplish this using that as well.



  • 5.  RE: URL redirection

    Posted Jul 25, 2013 09:11 AM

    Hi

    You can do it working quite well - do some reading - and download html script to understand how to add a script to your login page - in your case your redirection page.

     

    Start Here:

    http://www.arubanetworks.com/techdocs/ArubaOS_60/UserGuide/Captive_Portal.php

    Then Go there here:

    http://community.arubanetworks.com/t5/Command-of-the-Day/COTD-How-to-customize-the-Captive-Portal/td...

     

     

    Here is a full HTML ready script for one time button (read all the post - and than download the needed files)

    http://community.arubanetworks.com/t5/ArubaOS-and-Mobility-Controllers/Captive-Portal-Login-page-quo...

     

     More reading info - and examples:

    http://community.arubanetworks.com/t5/ArubaOS-and-Mobility-Controllers/HTTP-Script/td-p/13483

     http://community.arubanetworks.com/aruba/attachments/aruba/arubaos-and-mobility-controllers/7800/1/cp_lang_custom_v11.pdf

    http://community.arubanetworks.com/aruba/attachments/aruba/arubaos-and-mobility-controllers/7800/2/customize-captive-portal.pdf

    http://community.arubanetworks.com/aruba/attachments/aruba/arubaos-and-mobility-controllers/7800/3/aos_guestacccess-appnote.pdf

     

    implement those scripts and make them auto run when someone logged into your redirect site - with the right script it will create a guest account auto for u.

     

    lets us know if u understood and accomplish your need.

     

    Me.

     



  • 6.  RE: URL redirection

    Posted Jul 25, 2013 09:16 AM

    I thought a bit and its quite easy-:robotindifferent:

    just build an HTML page - with a huge welcome - and the login script as guest in the background  {this will be your transpernt auto guest login page}- with the right script u can set that in 1 sec it will send the auth-guest to the controller - and then the controller will send the guest to your welcome page (redirection page) and the guest will have needed role to start browsing to where he wants!

     

    me



  • 7.  RE: URL redirection

    EMPLOYEE
    Posted Jul 25, 2013 09:18 AM

    yb@secnet.ua wrote:

    Can I do this without captive portal splash page?
    I need just redirection to website, while client is starting using my network. After redirection client should have access to any website.


    You need a Captive Portal Splash page to do this, because it has to log a user in with Javascript and that is what (1) redirects the user to the  "welcome" page in your Captive Portal authentication profile and (2) changes his role to something that is open.  Here is what happens:

     

    1.  Create a username and password in the controller's internal database for anonymous users

    2.  Create a Captive Portal with custom HTML where the Welcome Page parameter has the page you want users to be redirected to

    3.  User associates to SSID in "logon" role that redirects user to custom HTML, which logs user in, in the background

    4.  The Captive Portal authentication profile Welcome parameter will redirect user to desired URL and the javascript authenticates users to force him into an "open" role so that the user can start browsing.

     

    My co-worker forwarded  an HTML example where the username and password is "test" and "user123":

     

    <html>
    <head>
    </head>
    <form name="loadportal" FORM method="post" ACTION="/auth/index.html/u">
    <INPUT type="hidden" name="user" accesskey="u" SIZE="25" VALUE="test">
    <INPUT type="hidden" name="password" accesskey="p" SIZE="25" VALUE="user123">
    <input type="submit" name="inputme" value="Submit" style="visibility:hidden">
    </form>
    <script>
     window.onload = function()
    {
    document.loadportal.submit();
    };
    </script>
    </html>