Linux SoftwareSystemNetworkingLinksys Syslog 1.0

Linksys Syslog 1.0

Linksys Syslog captures the snmp trap messages from a Linksys router and saves these to syslog
Developer:   Raymond Doetjes
      more software by author →
Price:  0.00
License:   BSD License
File size:   11K
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot

Linksys Syslog captures the snmp trap messages from a Linksys router and saves these to syslog. This daemon is very small robust and it does its job.

I've gotten this router from a customer/partner DH computers to look at the VPN capabilities. Eventhough these broadband routers are small and cheap their VPN cabalities are okay. It's certainly not a Cisco PIX, but then again the Linksys costs 4 times less. The Linksys is very usable for the SOHO market and with no effort at all you can configure this device as a xDSL/Cable router.

After having looked at the specs I wanted to return this device to our customer/partner he told me that he gave it to me and if I didn't find a use for it that the company I worked for IT=it could keep it. So I decided to use this device because it has a 4 ports 100Mb/sec switch and I was still working on a 16 port hub at home.

After having updated the firmware to properly support MXSTREAM/PPTP I configured the router. But I wanted to setup logging for all in and outgoing traffic the way that I also had with my FreeBSD ipfw and ipf firewall. So I switched on Logging to my FreeBSD box. It struck me that I couldn't set the syslog facility and warning level, so it didn't seem like syslog. A quick snif with tcpdump revealed that the Linksys uses snmptrap to send the log requests. I used Ethereal to look in the packet to determine the layout of the snmptrap packet. The first 73 bytes are control data telling how large the payload, snmp version, etc. So I decided to only focus on the data from char 73 to the rest of the packet.

The program is very simple and straight forward. A UDP socket is opened and bound to port 162, the snmptrap port. The program goes in a loop and waits for data to be read; the programming works blocking. When data is in the read buffer the data is parsed by setting the string pointer to the 73 character. It is then being send to the syslog using syslog(), for the BSD version I used the SECURITY facility, for the non-BSD I use the DAEMON facility. The server is not multi client, which is not necesarry for this application. The handling is done so fast that there's no need for forking new processes or spawning threads. And since it is UDP we will not have to handle an accepts asynchronously to the actual client handler any way, data is being send and stored in the receive buffer by the IP stack.
tags for the  this device  the linksys  packet the  the data  being send  the snmptrap  the program  the syslog  after having  that the  customer partner  the packet  

Download Linksys Syslog 1.0

Authors software

Linksys Syslog 1.0 (by Raymond Doetjes)
Linksys Syslog captures the snmp trap messages from a Linksys router and saves these to syslog

eProxy 1.0 (by Raymond Doetjes)
eProxy software is an SMTP proxy server framework specially designed for use in conjunction with Postfix version 2.1 and higher

Similar software

Linksys Syslog 1.0 (by Raymond Doetjes)
Linksys Syslog captures the snmp trap messages from a Linksys router and saves these to syslog

genlogstatcoll 0.1 (by Wolfgang Hottgenroth)

HyperWRT 2.0 (by Timothy Jans)
HyperWRT is a power boost firmware for the Linksys WRT54G and WRT54GS router

Linux on the WRT54G 0.6 (by Jim Buzbee)
Linux on the WRT54G is a mini-distribution for the router and access point Linksys wrt54g 802.11b/g

It includes basic tools such a

UPNPLib 1.0.4 (by SuperBonBon Industries)
UPNPLib is a Java library for the UPNP protocol.

UPNP is a protocol based on SSDP to discover UPNP compliant devices on a network

Msysklogd 0.6.1 (by Thomas Knop)
Msysklogd is a small and simple syslog and kernel log daemon

Cisco IP Accounting Fetcher 1.4.3 (by Anatoly Ivanov)
Cisco IP Accounting Fetcher is a set of Perl scripts that allows you to fetch IP accounting data from Cisco routers

PHPloghost 1.4 (by tuatha)
PHPloghost is a web based application meant to make your system logging more accesible.
On a single system this is not a problem, no

m0n0wall 1.23 Beta1 (by Manuel Kasper)
m0n0wall is a project aimed at creating a complete, embedded firewall software package that, when used together with an embedded PC,

DD-WRT 23 SP1 (by Sebastian Gottschall)
DD-WRT is an alternative firmware for the Linksys WRT54G/GS/GL and the Asus WL-500 deluxe 802.11g wireless routers.

DD-WRT was ori

Other software in this category

Nmap 4.20 (by Fyodor)
Nmap is a utility for network exploration or security auditing

iptables 1.3.7 (by Harald Welte)
iptables and netfilter are building blocks of a framework inside the Linux 2.4.x and 2.6.x kernel

Linux Bandwidth Arbitrator 9.62 (by astormchaser)
Linux Bandwidth Arbitrator allows beginning-to-advanced network administrators to control bandwidth

Ettercap 0.7.3 (by ALoR NaGA)
Ettercap is a network sniffer/interceptor/logger for ethernet LANs

rdesktop 1.5.0 (by matthewc)
rdesktop is an open source client for Windows NT Terminal Server and Windows 2000/2003 Terminal Services, capable of natively speakin


Featured Software

jEdit 4.3 pre8
jEdit is an Open Source text editor written in Java

Opera 9.02
Surf the Internet in a safer, faster, and easier way with Opera browser

GNU Aspell 0.60.4
GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell

Top tags