Captive portal issues



  • I setup a custom portal page and it’s not working as intended and I’m struggling to figure out why. The inital redirect happens when I try to access a website (i.e. google) and this the URL that is displayed in the browser bar:

    192.168.1.1:8000/index.php?rediurl=http%3A%2F%2Fwww.google.com%2F
    

    My custom page is displayed, but if I enter my predefined user or a voucher, I get redirected right back to it (instead of to google.com as my example):

    192.168.1.1:8000
    

    Here’s the relevant form from my custom page, which is named index.php:

    
    <form method="post" action="$PORTAL_ACTION$">
    
    # STEPHENNET NETWORKS
    
    Please authenticate with username/password given
    
    username:
    password:
    voucher code:
    
    My end goal is to be able to use vouchers and username/passwords, and neither are working. Don't know if there's a mistake in my HTML or not, but I can't seem to put a finger on it…..
    </form>
    
    


  • What browser are you using?

    What happens if you give an invalid voucher code?

    If you give a valid voucher code is this accepted and registered as “in use”? (See Status -> Captive Portal, click on Active Vouchers tab)

    My knowledge of HTML is small. Why are using class=“form-login” in the input fields? My captive portal greeting page doesn’t include the class element in the input tags.



  • @wallabybob:

    What browser are you using?

    What happens if you give an invalid voucher code?

    If you give a valid voucher code is this accepted and registered as “in use”? (See Status -> Captive Portal, click on Active Vouchers tab)

    My knowledge of HTML is small. Why are using class=“form-login” in the input fields? My captive portal greeting page doesn’t include the class element in the input tags.

    I use Chrome 95% of the time, but Internet Explorer and Firefox also produce the same results. I don’t get an error page if I submit an invalid voucher code, nor do I show a voucher code in use if I submit a valid one. The class is just used for styling, it’s being referenced from a CSS file….



  • In Firefox 3.6.24 I connected to my pfSense 2.0.1 Captive Portal. In the Firefox View menu I selected Page Source and it displayed

    <center>

    Caleb’s Internet Cafe

    </center>

    <form method=“post” action=“http://192.168.51.211:8000/”>
    Please enter your authorisation information:

    Username: and
      Password:

    OR

    Voucher Code:

    Then click the Continue button below:

    </form>

    in a new window. I went back to the CP home page, entered a valid voucher code and went straight to http://www.google.com.au/advanced_search.

    I think the basic CP mechanism works. Maybe some of the “fancy” HTML in your page is getting in the way. Your document appears to have a closing tag ("") without a matching opening tag ("<a>") and the “
    ” tags seem an unusual construct.</a>



  • I mentioned problems when I enter on CP page as redirection URL jus:
    www.google.com

    I need to enter:
    http://www.google.de

    Then the redirection is working - if without http:// I got a loop.

    Not sure, if this is related to your problem.


Locked
 

© Copyright 2002 - 2018 Rubicon Communications, LLC | Privacy Policy