router -> rsyslogd server

Mike.lifeguard mike.lifeguard at gmail.com
Tue Dec 15 22:03:46 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I have a router which can send to a syslog server, so I have tried to
set that up. I've set the server IP on the router, and set an iptables
rule to accept the packets:

# iptables -I INPUT -p udp -i eth0 -s 192.168.0.1 -d 192.168.0.5 --dport
514 -j ACCEPT
# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     udp  --  192.168.0.1          192.168.0.5 udp dpt:syslog
...

I've verified that /etc/default/syslogd has SYSLOGD="-r"

However no messages are making it into the file. My two ideas are
1) my iptables rule is wrong; and/or
2) even though /etc/default/syslogd has SYSLOGD="-r" it isn't actually
using that option:
root at binnie:~# ps aux | grep rsyslogd
syslog     650  0.0  0.0  34324  1332 ?        Sl   17:24   0:00
rsyslogd -c4

however looking in man rsyslogd, I don't see an -r option.

Any help figuring this out would be most welcome.

Thanks!
- -Mike
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAksoB78ACgkQst0AR/DaKHshXQCfQ8NZ9cqsBEyEllUwGqfaSNlP
JWUAoJ6cQ+oJjx/Jbxm2zU5BeZ0FfDbb
=WM1Z
-----END PGP SIGNATURE-----




More information about the ubuntu-server mailing list