CP block internet in LAN
-
there are only the basic rules, and i didnt add or remove any rules from the factory defaults
-
Is your IP and MAC being added to the CP logins? (Status->Captive Portal) ??
How about reverting to the stock CP login page? I don't think I have the desire right now to debug your html/javascript. You have to either delete the captive portal and recreate it or upload an empty file.
-
the ip and mac are not added in the cp.. i have already upload a few types of file which consist of php, html and javascript, but it still doesnt work..
how about the rules, are they ok ?? -
Yes. If you're clicking login and the IP/MAC aren't being added it's your login page html most likely.
-
really??, however, if i run the html file directly(not enabling in the captive portal service), the login portal will work and redirect me to google.com
-
Go back to defaults, get it working, and then modify your login page.
I don't think your page is calling what needs to be called in index.php to process the login and add your MAC/IP pair to the portal pass through tables.
-
derelict, thank you very much, at last after a week struggling,i figure out the problem, the login page html that i make doesnt work because it didnt have this
<form method="post" action="http://192.168.30.1:8000/">.. i put the dafault page too campare the default and my login page.. my bad bro :P
</form> -
Glad you found it. Happy pfSensing.
-
Also, check out the variables in the html file:
<form method="post" action="$PORTAL_ACTION$">
You were missing the backslashes so the proper substitutions weren't being made. You can save yourself some future grief (and easier reusability of your login html/php) if you get those working. When you start adding more portals or https logins, the port number changes.
If you want to grab a copy of the actual default HTML, it's in /etc/inc/captiveportal.inc starting at line 56 on 2.1.5-RELEASE.</form>
-
thank you very much, i still need to modified my html page.. haha, and thanks for the link, i will check it out later ;)