Project



  • I am setting up a pfsense baox for a demo for a potential customer.  Does any one have a instructions on modifying the Captive Protal home page?

    I would like to modify it prior to going down to do our demo.
    Ron Carter



  • I have attached a very basic captive portal page. Rename the file to .htm and upload it under the Captive Portal Page at: Portal page contents using the browse button.

    You can also add the following anywhere in the html: $PORTAL_MESSAGE$, which will be replaced by the error or reply messages from the RADIUS server, if any.

    If you improve the look of the login page with images and external style sheets then upload the files under 'File Manager' tab. Prefix each filename with "captiveportal-" and it will then be available from the same directory as the page and will not require you to specifying a path.

    captiveportal.txt



  • At http://pfsense.org/~hoba/cp/captiveportal.zip you can download a modified version of what I use at our office as CP-Page (Loginpage and Errorpage). Upload all the images via the filemanager and upload the html pages at the CP settings screen. Feel free to use or modify this in your installations. It's all yours.



  • Hi,

    I have problems with the images not showing up in the customized captive portal page. I've already posted it (http://forum.pfsense.org/index.php?topic=9551) but failed to get a concrete response. What I failed to mention though in that post was the fact that I am using the CD-ROM setup as I have no extra hard drive for this old machine I used as the captive portal gateway. I also learned from the forums that installing in a USB flash drive is not a good idea.

    I've downloaded the zip file of hoba, extracted the contents and saved the images to the file manager and changed the cp page and error page in the captive portal screen. All failed too. I am suspecting that the reason the files could not be found was there are no links/file whatsoever of the images under the /usr/local/captiveportal directory but all uploaded files are in /var/db/cpelements directory. A direct input of http://192.168.1.1:8000/captiveportal-wifinobg.gif to the browser's address bar would yield a 404-Not Found error.

    
    wifigw:/usr/local/captiveportal#  ls -la
    total 38
    drwxr-xr-x   2 root  wheel    512 Feb 25 06:05 .
    drwxr-xr-x  15 root  wheel    512 Feb 25 06:05 ..
    -rwxr-xr-x   1 root  wheel  16770 Jul 17  2007 index.php
    -rw-r--r--   1 root  wheel  10185 Aug 28  2007 radius_accounting.inc
    -rw-r--r--   1 root  wheel   5531 Mar 22  2007 radius_authentication.inc
    
    
    
    wifigw:/var/db/cpelements#  ls -la
    total 126
    drwxr-xr-x   2 root  wheel    512 May 24 15:48 .
    drwxr-xr-x  13 root  wheel    512 May 23 00:48 ..
    -rw-r--r--   1 root  wheel  62537 May 24 15:48 captiveportal-background.png
    -rw-r--r--   1 root  wheel  57030 May 24 15:48 captiveportal-bgerror.png
    -rw-r--r--   1 root  wheel   3741 May 24 15:48 captiveportal-citywifinobg.gif
    
    

    I tried to create a soft link to the images from /usr/local/captiveportal directory to the /var/db/cpelements but the system won't let me and reported that the FS is read-only (of course, I'm using a CD-ROM setup). I have no available hard drive at the moment, in fact I set up pfSense on a very old  P3 machine. If there other workaround for this, please let me know.


Log in to reply