Remote logging with Linksys WRT54G

Enabling remote syslog logging with Linksys WRT54G and OpenWRT White Russian RC3 is as simple as storing the IP of the remote syslog server into the log_ipaddr NVRAM variable:

nvram set log_ipaddr=A.B.C.D
nvram commit
reboot

log_ipaddr is used by /etc/init.d/rcS startup script to launch a local syslog daemon with option “-R “:

#!/bin/sh
syslog_ip=$(nvram get log_ipaddr)
ipcalc -s "$syslog_ip" || syslog_ip=""
syslogd -C 16 ${syslog_ip:+-L -R $syslog_ip}
klogd
...
Advertisements

3 thoughts on “Remote logging with Linksys WRT54G

  1. Social Bookmarks Demon is enormously powerful, 100% automatic social bookmarking software which will build UNLIMITED number of top quality backlinks, send first-class traffic in minutes, increase your affiliate sales, AdSense income and site revenue as much as never. Social Bookmarks Demon combines features of ALL social bookmarking tools available in the market for price of single tool.

  2. I’m impressed, I must say. Really rarely do I encounter a blog that’s both educative and entertaining, and let me inform you, you’ve gotten hit the nail on the head. Your idea is outstanding; the problem is one thing that not sufficient individuals are speaking intelligently about. I’m very happy that I stumbled across this in my search for something referring to this.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s