I've been searching the net and reading the man pages for an easy wasy
to log all DROPed packets in iptables. I found a bunch of articles that
say to create a logging target that combines a LOG and DROP then jump to
that target. I used:
iptables -N LOGDROP
iptables -A LOGDROP -j LOG --log-level info
iptables -A LOGDROP -j DROP
Then on each chain I want to log and drop I use:
iptables -A INPUT -i $EXTERNAL_INTERFACE -p udp \
--destination-port $NFS_PORT -j LOGDROP
But I started up my machine with this system and I get this error in my
logs:
Jun 16 16:15:21 serengeti firewall: Couldn't load target
`LOGDROP':/lib/iptables/libipt_LOGDROP.so: cannot open shared object
file: No such file or directory
Jun 16 16:15:21 serengeti firewall:
Jun 16 16:15:21 serengeti firewall: Try `iptables -h' or 'iptables
--help' for more information.
Any ideas what I'm doing wrong?