Hello!
I'm trying to set up a firewall that logs all dropped packets, but I can't get it working. For troubleshooting I installed a fresh ubuntu-9.04-i386-minimal image from my hoster and edited the syslog.conf, so that it logs everything into one logfile:
Code:
*.* /var/log/everything.log
After that I restartet sysklogd and added this rule to the iptables input chain:
Code:
iptables -A INPUT -j LOG
I now generate some incoming traffic by pinging from another computer (and also with the ssh connection with which I'm connected to the server), however this does not show up in the log file:
Code:
Sep 16 12:19:27 vs24029 syslogd 1.5.0#5ubuntu3: restart.
Iptables tells, that it has packets matching the rule:
Code:
Chain INPUT (policy ACCEPT 888 packets, 540K bytes)
pkts bytes target prot opt in out source destination
63 4476 LOG all -- any any anywhere anywhere LOG level warning
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 759 packets, 74938 bytes)
pkts bytes target prot opt in out source destination
And with dmesg I get the following:
Code:
[3542423.358689] IN=venet0 OUT=
Thanks for the help.
Psystorm