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

    Custom fonts and css on Captive portal

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 3 Posters 3.2k 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.
    • M
      mynickhere
      last edited by

      hi all.
      Does anyone know how i can to use custom css and fonts on Captive portal page?
      Total size of fonts & css  folders and files is more than 1mb - therefore i can't use File Manager option via GUI.

      Thank you.

      p.s. pfsense 2.0.2

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        You mean you just need to upload the files?
        You can use SCP. Use Winscp if you're using a Windows machine.

        Steve

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

          hi, Stive.

          thank you for your reply, but i'm really know how to copy files to pfsense server :)
          I mean that my new Captive Portal contain different directories (css , fonts) and single html file.
          What is the correct path for Captive portal page? is this /var/etc/ or /usr/local/captiveportal ?

          I have try to put my main.html file  and directories in /var/etc/  - but it's doesn't work: i see html page but i can't see css and custom fonts.
          Also i have try to put directories to /usr/local/captiveportal and add html-file via GUI - it's also doesn't work.

          thank you for your help.

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

            The files for the CP lighty instance are in /usr/local/captiveportal. You can upload whatever you want there, though we recommend using the portal's built-in file manager where possible since it retains all those files in its config file so restoration is an easy 1 file process rather than having to restore the config and then scp over files too.

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

              hi, cmd.
              ok, i have placed my directories(css,fonts,i,js) to /usr/local/captiveportal like there:

              
              [2.0.2-RELEASE][root@pfsense.localdomain]/root(3): ls -lh /usr/local/captiveportal/
              total 58
              drwxrwxr-x  2 root  wheel   512B Dec 25 06:35 css
              drwxrwxr-x  2 root  wheel   1.0K Dec 25 06:36 fonts
              drwxrwxr-x  2 root  wheel   512B Dec 25 06:36 i
              -rwxr-xr-x  1 root  wheel   8.5K Dec 12  2011 index.php
              drwxrwxr-x  2 root  wheel   512B Dec 25 06:36 js
              -rw-r--r--  1 root  wheel    11K Dec 12  2011 radius_accounting.inc
              -rw-r--r--  1 root  wheel   6.2K Dec 12  2011 radius_authentication.inc
              
              

              How can i use this directories in html file?
              some rows from main.html:

              is this correct path to css and fonts folders?

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