<p>To get captive portal working on openwrt you need to do the following:<br />
Get White Russian. from <a href="http://openwrt.org" target="_blank">openwrt.org</a></p>
<p>Set it up using the instructions on their site. <b>Warning do turn boot wait on</b> as per their instructions - they're not joking. Its a really good idea, without it I would have bricked my linksys.</p>
<p>Wait a bit, reboot it as per install instuctions, set you password, as per <a href="http://openwrt.org" target="_blank">openwrt.org</a>.</p>
<p><img src="content/pic/splash.png" align="right" alt="picture of Piertopier's splash screen">Ok now your ready for my bit.</p>
  type <div class="code">ipkg update</div><br />
  then <div class="code">ipkg install nocatsplash</div><br />
<p>this should download most of the appropriate bits.</p>
<p>Now you need to stop the default openwrt firewall rules from loading. They override the Captive Portal rules otherwise. To do this you need to remove the S from front of the script so its not run on boot:<br />
  type <div class="code">mv /etc/init.d/S45firewall /etc/init.d/K45firewall</div><br />
  Now if you've got a normal linksys wrt54g then you should find that the /etc/nocat.conf will work fine. However you may want to edit it to reflect your settings. NoCat will figure out the appropriate settings its self for the interfaces, or it does on mine. If you've mucked around with its normal routing, bridging and similar functions then you may have to check the interfaces in /etc/nocat.conf. Also if you have a version 1 wrtg or another manufacturers access point (mine worked its a WRT54G v2.2
  <p>
<p>There's a couple of fixes needed to get the actually package to work however, one thing you do need to do, the file /usr/lib/NoCatSplash/initialize.fw, loads some iptables modules needed by nocat. Unfortunately its missing ipt_REDIRECT which is kind of important as its the bit you need to get redirected to the splash. You need to locate the line:</p>

<div class="code">for module in ipt_TOS ipt_mac; do</div><br>
and replace it with:<br>
<div class="code">for module in ipt_TOS ipt_mac ipt_REDIRECT; do</div></p>

<p>You can test the function of no cat, by typing <strong>splashd</strong> at the prompt - this shouldn't give you any errors, and access the internet again you should be captive portaled by no cat splash and asked for a login!</p>
<p>The package doesn't start up on its own! So your going to need the init script. This appears to be missing from the ipkg here's one Dave from piertopier.net sent me, from another nocat package, pop it in /etc/init.d/S60nocat and make it bootable with 
<div class="code">chmod +x /etc/init.s/S60nocat</div>
<h3>Start Up Script Code</h3>
<blockquote><div class="code">
#!/bin/sh
#
# start/stop splashd super server.
case "$1" in
<blockquote>    start)<br>
        <blockquote>echo -n "Starting NoCat splash server:"<br>
        echo -n " splashd" ;<br>
        /usr/sbin/splashd -D &<br>
        echo "."<br>
        ;;<br></blockquote>
    stop)<br>
        <blockquote>echo -n "Stopping NoCat splash server:"<br>
        echo -n " splashd" ;<br>
        killall splashd<br>
        echo "."<br>
        ;;<br></blockquote>
    restart)<br>
        <blockquote>echo -n "Restarting NoCat splash server:"<br>
        echo -n " splashd"<br>
        $0 stop<br>
        $0 start<br>
        echo "."<br>
        ;;<br></blockquote>
    *)<br>
        <blockquote>echo "Usage: $0 {start|stop|restart}"<br>
        exit 1<br>
        ;;<br></blockquote></blockquote>
esac<br>
exit 0<br>
</div></blockquote>

<h3>Stability Warning</h3>
NoCat splash has some serious stability issues on OpenWRT. It falls over from time to time, no idea why, when it falls over it needs to be restarted. <a href="http:\\www.locustworld.com" target="_blank">MeshAP</a> seems to have a problem too. It uses a cronjob to restart it when it dies. I've not solved this problem, instead I switched to <a href="http://www.chillisport.org" target="_blank">Chillispot</a> instead. I assume using wget to retrieve the splash screen and running the startup script if it doesn't would work.</p>
<h3>Making the Splash look Pretty</h3>
<p>If you want to edit your splash page to make it fit your tastes then edit. /usr/share/NoCatSplash/htdocs/splash.html ours looks like <a href="temp/OpenWRTSplash/">This</a>. Remember its got to render on a PDA - or if a nut like me's around lynx.......</p>
<h3>Nocat Splash Compatibility Issues</h3>
<p>We've stopped using NoCat on OpenWRT in favour of Chillispot, however we still use it (or NoCat auth?) on <a href="http:\\www.locustworld.com" target="_blank">MeshAP</a>, PSP's don't like it but can be tweaked with a special option see <a href="http:\\www.piertopier.net/" target="_blank">piertopier.net forums</a>. Certain PDA's don't like it - might relate to windows update? New versions of Safari on a Mac don't like it either. In this case the only known solution is get Firefox.</p>
