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

    Manually modifying the CP login page

    Scheduled Pinned Locked Moved Captive Portal
    5 Posts 5 Posters 4.0k 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.
    • L
      lightsareout
      last edited by

      Where exactly is the index.php file stored.  I'm working on a school project and have tried to upload a different file through the GUI and it messed up the whole box and had to re-install pfsense.  So where can i go and manually configure the login page?

      Thanks!

      1 Reply Last reply Reply Quote 0
      • T
        thekod
        last edited by

        its base64 encoded in the config file\array…

        1 Reply Last reply Reply Quote 0
        • C
          cybrsrfr
          last edited by

          A manual change would be harder than the standard method for changing the page.

          You might share your customized captive portal page as an text attachment then we can help you modify it into a correct captive portal page. I and other people on this forum have done it successfully many times.

          1 Reply Last reply Reply Quote 0
          • A
            azmihamzah
            last edited by

            just sharing mine. Please alter/modify as you wish. index1.html is a page with error message from $PORTAL_MESSSAGE
            Upload all files using Captive Portal>file manager including captiveportal-style.css excluding the 2 html file (which you need to add at portal page contents)

            At least this the only thing i can offer for this great project. Pfsense rocks!

            P/S: seems i cannot upload .rar file here. I will host the file temporary from my home.

            http://pdrnet.dyndns.org/login/login.rar

            1 Reply Last reply Reply Quote 0
            • B
              buraglio
              last edited by

              @lightsareout:

              Where exactly is the index.php file stored.  I'm working on a school project and have tried to upload a different file through the GUI and it messed up the whole box and had to re-install pfsense.  So where can i go and manually configure the login page?

              Thanks!

              I believe the files are stored (after being decoded from the XML) in /usr/local/captiveportal/  But you should use the web interface to change them or they will not be stored in the config.  I have successfully build several highly customized login pages using the supported method.

              https://www.forwardingplane.net/

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