8 captive portal worksheet:
download and build
download nocat splash package from aitwsws.net/joel
tar -zxvf NoCatSplash-0.93pre2.tar.gz
cd NoCatSplash-0.93pre2
./configure
make
(as root)
make install
create a new interface
ifconfig eth0:1 192.168.1x.1/24 where x is your group number
enable nat and forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward
(nat translation example)
iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
iptables --append FORWARD --in-interface eth0:1 -j ACCEPT
configure nocat
edit /usr/local/etc/nocat.conf
locate the internel device stanza
add
InternalDevice eth0:1
add
LocalNetwork 192.168.1x.1/24
Start nocat
splashd -D
take a look in /var/log/messages to see if it worked
you can also go to 127.0.0.1:5280
to see the splash page
to see what it did to iptables, do:
iptables -L
to test, configure a client to have and address in 192.168.1x.0/24 and use .1 as the default route.