Post date: Jul 4, 2011 2:37:46 PM
Modify the MeshAP Locustworld logon screen / Captive Portal Page
Is there anyway I can connect to the Meshbox from a windows system and edit these files.
You can copy the file to a windows machine using winscp or similar. The file is /htdocs/ splash.html.master
When editing these files, ensure that the html form remains intact or the page will cease to work. Making a backup is a good idea. Winscp the file back to its original location. You may need to restart the meshap to see the new screen.
Images can be copied in to the same directory and should be referenced locally.
November 25, 2004: I wanted to have fancy graphics on my splash pages, so this required moving several files to the / htdocs directory. To simplify this, I wrote this script, named it customsplash, and set the permissions to allow it to execute:
#!/bin/bash
# Script to ensure the captive portal is the most recent one available
#
#
PATH="/bin:/sbin:/usr/bin:/hj:/usr/sbin:/usr/local/bin"
#Download the master html file and copy it to the appropriate directory on the MeshAP
curl http://www.yourwebsite.com/customsplash/splash.html.master > /htdocs/ splash.html.master
#
#Download the guest html in case open access is granted and copy it to the appropriate directory on the MeshAP
curl http://www.yourwebsite.com/guest/splash.html.guest > /htdocs/ splash.html.guest
#
#Download the necessary custom gif's or jpg's
curl http://www.yourwebsite.com/splash/01.gif > /htdocs/01.gif
curl http://www.yourwebsite.com/splash/02.gif > /htdocs/02.gif
curl http://www.yourwebsite.com/splash/03.gif > /htdocs/03.gif
curl http://www.yourwebsite.com/splash/04.gif > /htdocs/04.gif
#
#Execute the script to rebuild the captive portal
/hj/rebuildsplashhtml
#
#Download the most recent initialize.fw and copy it to the appropriate location - this was patched after dev88 and is no longer needed
curl http://www.yourwebsite.com/customsplash/initialize.fw > /usr/local/lib/nocat/ iptables/ initialize.fw
#
#Download the captive portal configuration file and copy it to the appropriate directory
curl http://www.yourwebsite.com/customsplash/nocat.conf.master > /usr/local/etc/ nocat.conf.master
#
#The last line will reboot the MeshAP - this is not necessary on MeshAP Pro or OSS after dev88.
#reboot
Kenny Bain
See also SplashPageCustomization
To actually see the captive portal page that is being generated (without removing your computer from the realm), simply type the following url into your browser:
If you are accessing the mesh through one node and wish to view the captive portal page on another node elsewhere on the mesh, use the following syntax for the url:
http://1.xxx.xxx.xxx:5280 (The xxx's represent your Wiana certified IP address).