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

    Captive Portal Page Images

    Captive Portal
    8
    17
    21.9k
    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.
    • M
      MTP3687
      last edited by

      Thanks.  Turned out to be one of those tiny things I overlook and causes me grief.  :)  Thanks again for the input!

      1 Reply Last reply Reply Quote 0
      • M
        manas
        last edited by

        I have the same problem.
        I can connect via this page but my logo "captiveportal-visuel-wifi.jpg"  does not appears.
        Where is the bug ?

        <form method="post" action="$PORTAL_ACTION$">
        Identifiant
        Mot de Passe

        </form>

        1 Reply Last reply Reply Quote 0
        • D
          danswartz
          last edited by

          @dotdash:

          It appends 'captiveportal-' to your file. Check the file manager to confirm the file name and make sure your html is correct.
          e.g- you have a file named companylogo.jpg and you upload this. It becomes captiveportal-companylogo.jpg. Your html must reference 'captiveportal-companylogo.jpg'

          Not to nitpick, I think you meant 'prepend', not 'append'?

          1 Reply Last reply Reply Quote 0
          • M
            MTP3687
            last edited by

            Manas

            Try capitalizing .JPG in your coding. That did the trick for my page.

            1 Reply Last reply Reply Quote 0
            • dotdashD
              dotdash
              last edited by

              danswartz
              Yeah, I meant prepend. I'm gramato-dyslexic.

              MTP3687
              The underlying system is case-sensitive, so it's probably helpful to make sure the code matches the case-sensitive filename. I always make the files all lower case to avoid any (real or imagined) issues.

              1 Reply Last reply Reply Quote 0
              • M
                manas
                last edited by

                Hello,
                This is my tag :   

                In  "Services:Captive portal:File Manager"    I can see the file "captiveportal-visuel-wifi.jpg" all in lowercase.

                I don't understand what is happening, I've never had this problem with monowall.
                Where can I see the error.log of httpd ?
                I still listen to any idea.
                Thanks

                1 Reply Last reply Reply Quote 0
                • P
                  ptcheezer
                  last edited by

                  This is a real problem for me too.  I have prepended captiveportal- to everything I uploaded.  I have tried all lowercase and tried to make the file extension uppercase as well.  It will not work.  I had zero issues with this feature in m0n0wall.  The file is in /var/db/cpelements/ in all lowercase.  Please don't brush this off as a non-issue or user error.  Thanks!

                  My issue with m0n0wall's captive portal was that DHCP relay requests were not granted by the firewall's DHCP server.  Does anyone know if this is still an issue here as well?  Basically we have a bunch of access points which feed into a security server and I need DHCP relay to work.  I currently use ZoneCD and it works, but I'd like to use pfSense.

                  1 Reply Last reply Reply Quote 0
                  • dotdashD
                    dotdash
                    last edited by

                    Verify the link in /usr/local/captiveportal/ is pointing to the correct place.
                    Mine looks something like this:
                    _pfsense:/usr/local/captiveportal#  ls -l
                    lrwxr-xr-x  1 root  wheel    40 Oct  8 23:33 captiveportal-logo.jpg -> /var/db/cpelements/captiveportal-logo.jpg
                    -rwxr-xr-x  1 root  wheel  16282 Oct  7 07:45 index.php
                    -rw-r–r--  1 root  wheel  10114 Oct  7 07:45 radius_accounting.inc
                    -rw-r--r--  1 root  wheel  5459 Oct  7 07:45 radius_authentication.inc

                    pfsense:/var/db/cpelements#  ls -l
                    -rw-r--r--  1 root  wheel  31294 Oct  8 23:33 captiveportal-logo.jpg_

                    1 Reply Last reply Reply Quote 0
                    • J
                      Jaimie
                      last edited by

                      I have exact the same problem like ptcheezer and don´t know, what to do…

                      1 Reply Last reply Reply Quote 0
                      • S
                        storkus
                        last edited by

                        DotDash has it on the head: the link from /usr/local/captiveportal to /var/db/cpelements is missing on mine as well.

                        HOWEVER when I try to create it, it complains that it's a read-only filesystem (I'm running a live-cd environment).

                        What do we do next?

                        Mike

                        1 Reply Last reply Reply Quote 0
                        • dotdashD
                          dotdash
                          last edited by

                          If you're running on nano, you need to run:
                          /etc/rc.conf_mount_rw
                          then make the changes.
                          when done, set it back to read only:
                          /etc/rc.conf_mount_ro

                          1 Reply Last reply Reply Quote 0
                          • S
                            storkus
                            last edited by

                            Ah, no, as I said I'm running on the live-CD, but your post IS helpful in that it's convinced me that I need to find an old hard drive to put into this old white-box computer and do a full install–I'm sure that will fix the problem.

                            1 Reply Last reply Reply Quote 0
                            • dotdashD
                              dotdash
                              last edited by

                              Oh, I guess I should have actually read that before responding…

                              1 Reply Last reply Reply Quote 0
                              • S
                                storkus
                                last edited by

                                My idea worked: installing to a hard drive made the directory read-write and the problem automagically fixed itself.

                                Bottom line for future readers: if you want to use the image/file upload feature, you MUST be running with a R/W environment–no Live-CD and no embedded automounted read-only (for that directory, anyway).

                                Mike

                                1 Reply Last reply Reply Quote 0
                                • jahonixJ
                                  jahonix
                                  last edited by

                                  Embedded does automount r/w when doing stuff like uploading a CP file.
                                  Other than that, mounting a CD for read & WRITE is sub optimal.

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