Navigation

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

    Image path

    Captive Portal
    3
    12
    715
    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.
    • A
      alexssi last edited by

      Hi. The image on my customized captive portal doesn't want to be displayed. I renamed it correctly but the path to find it is bad I guess. What should be indicated?

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

        In pfsense CP portal settings , live preview your
        Page left click in Firefox or chrome to view
        Your source code and make sure it’s
        Something like captiveportal-image.jpg
        And not image.jpg or
        captiveportal-captiveportal-image.jpg

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

          It is well named. Firefox tells "Can't load the image".

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

            Post your html code here if possible

            Or just the href part

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

              
              	<title>Portail captif</title>
              
                      ![Logo](captiveportal-logo.png)
              
              Welcome!
              
              En cliquant sur Continuer, vous acceptez les conditions d'utilisations.
              
              
              1 Reply Last reply Reply Quote 0
              • J
                jaspras last edited by

                Great now go to cp config and click on file manager
                Tab and list all files regarding cp

                Is captiveportal-logo.png there?

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

                  Yes the file is there.
                  When I try http://<ip>:8002/captiveportal-logo.png. I fall on the portal.</ip>

                  1 Reply Last reply Reply Quote 0
                  • Gertjan
                    Gertjan last edited by

                    Two more tests :
                    Enter console, option 8 :

                    ls -al /var/db/cpelements
                    

                    You saw your uploaded file(s) ?

                    ls -al /usr/local/captiveportal
                    

                    You saw the links to your uploaded file(s) ?

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

                      
                      ls -al /var/db/cpelements
                      -rw-r--r--   1 root  wheel  39268 Apr  9 14:40 captiveportal-logo.png
                      
                      ls -al /usr/local/captiveportal
                      lrwxr-xr-x   1 root  wheel     52 Apr  9 12:48 captiveportal-logo.png -> /var/db/cpelements/captiveportal-logo.png
                      
                      

                      :-\

                      1 Reply Last reply Reply Quote 0
                      • Gertjan
                        Gertjan last edited by

                        Next test :

                        This one :
                        @alexssi:

                        It is well named. Firefox tells "Can't load the image".

                        this isn't something you post on a forum like forum.pfsense.org. We are not end-users here, but firewall admins  ;) so we have the power (to show more details).
                        Your browser supports a way to inspect the page it loaded, so you can see what is the URL that present in the html login page.

                        What is this URL ?

                        Btw :
                        When I use this

                        When I try http://<ip>:8002/captiveportal-logo.png. I fall on the portal.</ip>

                        on my setup with an existing image (an uploaded png file) I can see that image in my browser.

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

                          No matter what URL I type, I always come across the captive portal page.

                          1 Reply Last reply Reply Quote 0
                          • Gertjan
                            Gertjan last edited by

                            @alexssi:

                            No matter what URL I type, I always come across the captive portal page.

                            This is normal of course.
                            Any "http" access - when not authenticated - will be redirected to the captive portal login page : /usr/local/captiveportal/index.php - this is how the captive portal works.
                            But the "captiveportal-." are an exception.

                            Do you use http login or https login ?
                            Show us the correspond nginx setup files in /var/etc/ (not the names, what's in it).

                            These are mine :

                            [2.4.3-RELEASE][admin@pfsense.brit-hotel-fumel.net]/var/etc: ls -al nginx-*-CaptivePortal*.conf
                            -rw-r--r--  1 root  wheel  2596 Apr 10 11:17 nginx-cpzone1-CaptivePortal-SSL.conf
                            -rw-r--r--  1 root  wheel  2107 Apr 10 11:17 nginx-cpzone1-CaptivePortal.conf
                            

                            What is your captive portal IP (IP of the NIC used by pfSense)
                            What is the hostname of pfSense and domain (System => General Setup) ?

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post

                            Products

                            • Platform Overview
                            • TNSR
                            • pfSense
                            • Appliances

                            Services

                            • Training
                            • Professional Services

                            Support

                            • Subscription Plans
                            • Contact Support
                            • Product Lifecycle
                            • Documentation

                            News

                            • Media Coverage
                            • Press
                            • Events

                            Resources

                            • Blog
                            • FAQ
                            • Find a Partner
                            • Resource Library
                            • Security Information

                            Company

                            • About Us
                            • Careers
                            • Partners
                            • Contact Us
                            • Legal
                            Our Mission

                            We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

                            Subscribe to our Newsletter

                            Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

                            © 2021 Rubicon Communications, LLC | Privacy Policy