Hey everyone,
Just done some cool things with my linux box/wireless
To tell you a little bit about my setup, I have a debian linux box with 3 network cards, eth0 (internet) eth1 (connected to my AP on the roof) and eth2 (LAN)
I have the wireless part of my network firewalled off from everything else (for the time being), i thought it'd be a good idea to setup an http redirect on the wireless side if anyone tries to visit any site. So i setup a webserver to listen on 10.23.6.253 (my router) and added this to my iptables
iptables -t nat -A PREROUTING -d ! 10.23.6.0/255.255.255.0 -i eth1 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 80
Which tells my router that any traffic on port 80 coming in on eth1 (wireless) that's not for 10.23.6.0/24 to redirect it to my router's port 80, which i've put a page with information about my wireless setup.
I've also added remote logging on my AP (as the logs are wiped each time it is reset), my dlink 900+ supports logging to a log server, so i entered the ip of my router (10.23.6.253) and set it up to accept remote logs.
i edited /etc/rc2.d/S10sysklogd
changed SYSLOGD="" to SYSLOGD="-rm 0"
which tells syslogd to accept remote logs and to not add mark to the log files
then in /etc/syslog.conf i added a couple of lines like this:
#Wireless AP logging
10.23.6.254 /var/log/wireless
which tells my box to put anything that comes in from 10.23.6.254 into the file /var/log/wireless
did a touch /var/log/wireless to create the file, then chmod 777 /var/log/wireless to set the permissions (probably doesn't need to be 777 but i was in a hurry)
and bingo, remote logging
If anyone else has any nifty things that they've done, please share how you did them