Custom fonts and css on Captive portal

  • 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

  • Netgate Administrator

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


  • 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.

  • 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.

  • 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
    -rw-r--r--  1 root  wheel   6.2K Dec 12  2011

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

    is this correct path to css and fonts folders?

Log in to reply