OpenWrt Forum Archive

Topic: Logging Iptables on Kamikaze

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

I read many forum thread about it on WhiteRussian. But I'm not able to let it run.

root@OpenWrt:~# ipkg list_installed | grep ipt
iptables - 1.3.7-1 -
kmod-ipt-extra - 2.6.21.5-atheros-1 -
root@OpenWrt:~# lsmod | grep ipt
iptable_raw              608  0
ipt_owner                800  0
ipt_LOG                 4608  0
root@OpenWrt:~# cat /etc/modules.d/40-ipt-extra
ipt_LOG
ipt_owner
xt_pkttype
xt_DELUDE
xt_CHAOS
xt_portscan
iptable_raw
root@OpenWrt:~# iptables -t nat -A prerouting_wan -p tcp --dport 8080 -j LOG --log-prefix "IN http:"
iptables v1.3.7: Unknown arg `--log-prefix'
Try `iptables -h' or 'iptables --help' for more information.

sad

Any help is appreciated.
Thanks very much

You need to install the iptables extension (iptables-mod-extra).
Always install the extension first, it will automatically install the particular kernel dependency.

It works!
Thanks very much smile

The discussion might have continued from here.