News: This forum is now permanently frozen.
Pages: [1]
Topic: Captive Portal Login Page and Redirect  (Read 6433 times)
« on: April 11, 2012, 02:43:31 »
hotelguy *
Posts: 7

I have had m0n0wall up and running for a couple of years now, and recently i have been getting complaints from users that after accessing the captive portal page they are redirected to a page filled 1/2 way with chinese characters and the URL that appears in the browser is http:192.168.1.1:8000/$PORTAL_ACTION$.

I personally saw this today on a users computer......not sure whats happening with the redirect or the login form code? anyone have any insight as to what is causing this?Huh

i will be building another m0n0wall device tonight to see if i can replicate the same problem on a different device with the same CP Page and login form. If i can replicate the page of chinese characters that appears for the redirect I will post it here.

BTW - the user had a macbook-air.
« Reply #1 on: April 12, 2012, 04:59:46 »
hotelguy *
Posts: 7

UPDATE*

I have not been able to replicate the error on the new device....still not sure what would cause this to happen, maybe i will reinstall m0n0wall on our other box to see if the problem goes away.....

I am still open for suggestions as to what the problem could be???

thanks!
« Reply #2 on: April 12, 2012, 22:25:13 »
hotelguy *
Posts: 7

*UPDATE*

it seems that indeed there is an issue with the CP redirect or the call to $PORTAL_ACTION$ Screen shot of Chinese Characters attached.

here is the html source for the screenshot:

<HTML>
<HEAD><TITLE>Redirecting...</TITLE></HEAD>
<BODY>
<SPAN STYLE="font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 11px;">
<B>Redirecting to <A HREF="http://www.google.com">http://www.google.com</A>...</B>
</SPAN>
<SCRIPT LANGUAGE="JavaScript">
<!--
LogoutWin = window.open('', 'Logout', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=256,height=64');
if (LogoutWin) {
    LogoutWin.document.write('<HTML>');
    LogoutWin.document.write('<HEAD><TITLE>Logout</TITLE></HEAD>') ;
    LogoutWin.document.write('<BODY BGCOLOR="#435370">');
    LogoutWin.document.write('<DIV ALIGN="center" STYLE="color: #ffffff; font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 11px;">') ;
    LogoutWin.document.write('<B>Click the button below to disconnect</B><P>');
    LogoutWin.document.write('<FORM METHOD="POST" ACTION="">');
    LogoutWin.document.write('<INPUT NAME="logout_id" TYPE="hidden" VALUE="1362cca963292217">');
    LogoutWin.document.write('<INPUT NAME="logout_popup" TYPE="submit" VALUE="Logout">');
    LogoutWin.document.write('</FORM>');
    LogoutWin.document.write('</DIV></BODY>');
    LogoutWin.document.write('</HTML>');
    LogoutWin.document.close();
}

document.location.href="http://www.google.com";
-->
</SCRIPT>
</BODY>
</HTML>


* screenCapture1 (800x450).jpg (189.17 KB, 800x450 - viewed 478 times.)
« Reply #3 on: April 13, 2012, 20:07:57 »
Lennart Grahl ***
Posts: 153

Could you post the source code of the HTML page (Ctrl+U) when the problem appears?

Edit: Which version of m0n0wall are you using by the way?
« Last Edit: April 13, 2012, 20:09:46 by Lennart Grahl »
« Reply #4 on: May 04, 2012, 20:53:13 »
hotelguy *
Posts: 7

I am using v1.33 and the source code is listed in the post above.

Thanks for the help!
« Reply #5 on: May 05, 2012, 00:06:00 »
Lennart Grahl ***
Posts: 153

I mean the source code of the page WHEN the problem appears.
 
Pages: [1]
 
 
Powered by SMF 1.1.20 | SMF © 2013, Simple Machines