OpenWrt Forum Archive

Topic: iptables: No chain/target/match by that name (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.

I don't understand why iptables wan't log..

root@OpenWrt:~# iptables -A forwarding_rule -j LOG
iptables: No chain/target/match by that name

maybe i don't have right package installed?

root@OpenWrt:~# ipkg list_installed |grep iptables
iptables - 1.3.3-1 - The netfilter firewalling software for IPv4
iptables-mod-conntrack - 1.3.3-1 - Iptables (IPv4) extensions for connection tracking
iptables-mod-extra - 1.3.3-1 - Other extra Iptables (IPv4) extensions
iptables-mod-filter - 1.3.3-1 - Iptables (IPv4) extension for packet content inspection
iptables-mod-ulog - 1.3.3-1 - Iptables (IPv4) extension for user-space packet logging

or do i have to insmod some modules?

root@OpenWrt:~# lsmod
Module                  Size  Used by    Tainted: P
pppoe                   9384   1
pppox                   1372   1 [pppoe]
ppp_generic            21892   3 [pppoe pppox]
slhc                    6352   0 [ppp_generic]
wlcompat               14896   0 (unused)
wl                    423640   0 (unused)
et                     32064   0 (unused)
diag                    2560   0 (unused)

ipkg install kmod-ipt-extra
insmod ipt_LOG

thank you very much!

now logging works!

The discussion might have continued from here.