OpenWrt Forum Archive

Topic: iptables and -j LOG

The content of this topic has been archived on 30 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi all, first up thanks for all the excellent work with the WRT router software. I've just got a WRT54G working. I'd
like to log the incoming dropped WAN packets. I've installed the  ipt_LOG module as described in http://forum.openwrt.org/viewtopic.php?id=3643. However, here is what I see when I try to use it:

root@firewall:~# lsmod; iptables -A INPUT -j LOG
Module                  Size  Used by    Tainted: P  
tun                     4344   3
wlcompat               14896   0 (unused)
ipt_LOG                 3888   0 (unused)
wl                    423640   0 (unused)
et                     32064   0 (unused)
diag                    2560   0 (unused)
iptables v1.3.3: Couldn't load target `LOG':File not found

Any pointers on what I'm doing wrong are most appreciated.

I found the answer. Both of these packages must have been installed:
kmod-ipt-extra and iptables-mod-extra. I only had the former loaded.

DoctorWkt wrote:

I found the answer. Both of these packages must have been installed:
kmod-ipt-extra and iptables-mod-extra. I only had the former loaded.

In my experience, installing iptables-mod-extra will automatically install kmod-ipt-extra, as it's a dependancy.

Cheers,
Martin.

The discussion might have continued from here.