Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Custom Captive Portal maybe html code help?

    Scheduled Pinned Locked Moved Captive Portal
    2 Posts 2 Posters 2.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F Offline
      fattony418
      last edited by

      I have my Captive Portal up and running. Before i added the HTML file it worked just fine. Now when the user name and password are entered I am redirected to google without internet. When i am forced to refresh i am just given the captive portal page again. This may be a problem with my code but i am not sure. I am pretty new to pfsense and chose it specifically to run on a server for class. Here is the code just in case this may be what is holding mg back.

      
      <form method="post" action="https://www.google.com" onsubmit="return CheckBoxesValidations() ;">
      
      <center> 
      
      <center>
      			![logo](./index1_files/captiveportal-pokemon.gif)
      			</center>
      
      							 **CNS Captive Pokemon Portal** 
      						 | 				 					
      
      <center> 
      
      <center> 
      
      <center> 
      
      <center> 
      
      | 
      
      <center>Welcome to the one and only Captive Pokemon Portal Network!</center>
      
       | 
      | 
      
      <center>Use the pokemon you have Captured to gain access.</center>
      
       | 
      |   | 
      | Pokemon: | 
       | 
      | Password: | 
       | 											 
      |   | 										 
      |  |  |
      |  | 
      													  |
      |  |  |
      |  | 
      																					    |																					
      
      																		Accept
      
      																			</center>
      
      																	 | 			 															
      
      			</center>
      
      						</center>
      
      											 | 								 									
      
      								</center>
      
      						 | 					 
      
      			</center>
      
      		</form>
      
      

      here are the portal auth logs that i received

      Nov 14 18:34:29 logportalauth[40807]: Restarting captive portal.

      as well as the system logs

      Nov 14 18:34:22 syslogd: kernel boot file is /boot/kernel/kernel
      Nov 14 18:34:29 check_reload_status: Syncing firewall
      Nov 14 18:34:29 kernel: ipfw2 (+ipv6) initialized, divert loadable, nat loadable, rule-based forwarding enabled, default to accept, logging disabled
      Nov 14 18:34:31 check_reload_status: Reloading filter
      Nov 14 18:36:08 check_reload_status: Syncing firewall
      Nov 14 18:36:08 check_reload_status: Reloading filter
      Nov 14 18:36:08 kernel: IP firewall unloaded

      1 Reply Last reply Reply Quote 0
      • S Offline
        sherca
        last edited by

        Hi,

        already I think the action for the form is not correct. It should be : action="$PORTAL_ACTION$"

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.