Installing `conntrack` helper tool

I need to be able to programmatically kill tracked connection states in the nf_conntrack table. I believe the correct way to do this is using the conntrack tool. But, this is not part of the standard RutOS install.

I found that I can install it using

opkg -e /etc/opkg/openwrt/distfeeds.conf install conntrack

This generates some error output:

# opkg -e /etc/opkg/openwrt/distfeeds.conf install conntrack
Package conntrack (1.4.6-3) installed in root is up to date.
Collected errors:
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-nfnetlink
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-nf-reject
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-nf-ipt
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-ipt-core
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-nf-conntrack
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-ipt-conntrack
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.143-1-d04d8d4d6f3bad7588be7c9e49004fda) for kmod-nf-conntrack-netlink

…which I ignore. But then I do have the tool. Is this “correct” or is there a better way to get this tool? RutOS 7.10.2, thank you

Hello,

Kernel modules required by the conntrack utility aren’t present in the default firmware. You need to build your own using the SDK.

Regards,

Okay, well I probably won’t get into compiling my own- for my simple needs (just need to kill some NAT states) the utility does seem to work despite the errors. Thanks @flebourse