Search:  

 
 
   All FAQsSite FAQDSL FAQCable TechAbout DSLDistanceCLECSDSL Hurdles»»






how-to block ads



Search for: in all FAQs
You can setup logging with 3rd party firmware:

HyperWRT
SveaSoft Satori
SveaSoft Alchemy

Here is a solution for those that want to turn on the logging capabilities of the WRT54G. This will send logs (syslog) to the destination set in the syslog command (change to suit your needs).

I use Wallwatcher but KIWI syslog or any other syslog based viewer works fine.

The current busybox .60 implementation used in the Linksys 3.x.x code (and hyperWRT2.0x) has some funny behavior with klogd and with cron so this solution does not use cron and kills and restarts klogd every 15 minutes. If you dont run much traffic you can change this to a greater number. Gamers and bit torrent uses should be fine with the 15 minute (960 seconds) setting.

Be sure to remember to 'enable' logging in the web interface!!

ALSO be sure to put the address of your logging PC in place of my address on the 'syslogd' line - Mine is 192.168.1.99 - your address may be different!!!!

In the Startup script:

sleep 2
/sbin/klogd
/sbin/syslogd -R 192.168.1.99
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 &

Firewall Script:

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

Thanks to dellsweig See Profile for instructions, full thread: /forum/remark,11974955

feedback form

by Lanik See Profile edited by jazzman916 See Profile
last modified: 2005-06-22 21:36:23



Sunday, 29-Nov 06:30:22 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.