OpenWrt Forum Archive

Topic: ULOG doesn't work

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

Hello,

I'm trying to use the ULOG netfilter target.

I think I installed all the required packages:

root@OpenWrt:~# ipkg list_installed|grep ulog
iptables-mod-ulog - 1.3.3-1 - Iptables (IPv4) extension for user-space packet logging
kmod-ipt-ulog - 2.4.30-brcm-2 - Netfilter (IPv4) kernel module for user-space packet logging
ulogd - 1.23-2 - Netfilter userspace logging daemon
ulogd-mod-extra - 1.23-2 - Netfilter userspace logging daemon (extra plugins)

I also loaded the kernel module:

root@OpenWrt:~# lsmod
Module                  Size  Used by    Tainted: P 
ipt_ULOG                3760   0 (unused)
wlcompat               14688   0 (unused)
wl                    423640   0 (unused)
et                     32064   0 (unused)
diag                    2560   0 (unused)

But inserting such a rule doesn't work:

root@OpenWrt:~# iptables -L OUTPUT
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
root@OpenWrt:~# iptables -A OUTPUT -p icmp -j ULOG
iptables: target `ULOG' v1.3.3 (I'm v1.3.1).
root@OpenWrt:~# iptables -L OUTPUT
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
root@OpenWrt:~#

The LOG target f.e. works without problems.
Any idea, what i did wrong?

You're trying to use an iptables v1.3.3 extension with iptables v1.3.1.

Update iptables to v1.3.3, from the same place you got iptables-mod-ulog from.

Oh, thanks a lot. Now I understand the message.

I just did "ipkg update; ipkg upgrade". ULOG now works fine, but the upgrade has a problem with hotplug:

Collected errors:
Package base-files wants to install file /sbin/hotplug
        But that file is already provided by package hotplug

This means hotplug used to be in its own package, and is now contained in base-files, right?
(Removing the old hotplug-package should be the right way then.)

Are there any plans on "debian-like" dependencies to solve such problems?

PS: OpenWrt is really great. smile

michas wrote:

Oh, thanks a lot. Now I understand the message.

I just did "ipkg update; ipkg upgrade". ULOG now works fine, but the upgrade has a problem with hotplug:

Collected errors:
Package base-files wants to install file /sbin/hotplug
        But that file is already provided by package hotplug

This means hotplug used to be in its own package, and is now contained in base-files, right?
(Removing the old hotplug-package should be the right way then.)

Are there any plans on "debian-like" dependencies to solve such problems?

PS: OpenWrt is really great. smile

See http://forum.openwrt.org/viewtopic.php?id=3474, #7

The discussion might have continued from here.