Installing HyperWRT firmware in Linksys WRT Routers

Get the HyperWRT firmware from http://www.hyperwrt.org/" Follow their installation instructions

Go to the router's administration interface. The default address for this is http://192.168.1.1 You can leave the "User" field blank. The default password is "admin"

Logging screen

Make sure that Enable is checked.

Then, you must add some start up scripts to enable exporting the logs. (This is why you had to install HyperWRT--the Linksys firmware is incapable of exporting the logs.)

Administration screen

1. First add a startup script by clicking on the Startup button. Copy and paste

sleep 2
/sbin/klogd
/sbin/syslogd -R 192.168.1.100
echo "#!/bin/sh" > /tmp/loggit.sh
echo "while true" >> /tmp/loggit.sh
echo "/usr/bin/killall -9 klogd" >> /tmp/loggit.sh
echo "sleep 1" >> /tmp/loggit.sh
echo "/sbin/klogd" >> /tmp/loggit.sh
echo "sleep 960" >> /tmp/loggit.sh
echo "done" >> /tmp/loggit.sh
chmod 700 /tmp/loggit.sh
/tmp/loggit.sh &
into the Startup form. Change the IP address to the IP address of your machine (192.168.1.100, above). The IP of your machine must stay the same, so if your machine uses DHCP, change it to have a static IP.

2.Click on the Firewall button and Copy and paste this into the Firewall form

/usr/sbin/iptables -R INPUT 7 -j logdrop
/usr/sbin/iptables -R INPUT 1 -j logdrop -m state --state INVALID

3. Reboot the router by clicking on the Reboot Router button. (So that the 'Startup' and 'Firewall' scripts you entered, above, will be run.)

Now you can install Kiwi Syslog Daemon.