Hi all,
I'm running OpenWRT 10.3 and trying to track an issue with my firewall using the TRACE target with iptables. However I am having a few troubles inserting the rules:
root@OpenWrt:~# iptables -t raw -I PREROUTING -p tcp -j TRACE
iptables v1.4.6: Couldn't load target `TRACE':File not found
If I run the same command with strace I can see I'm missing some libraries (this is just the relevant bit of the strace output):
en("\1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("", O_RDONLY) = -1 ENOENT (No such file or directory)
open("\260\260\312\177\352\6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libxt_TRACE.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(0x7fcaba70, 0x7fcab930) = -1 ENOENT (No such file or directory)
open("/usr/lib/iptables/libxt_TRACE.soo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/libxt_TRACE.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/lib/lib/libE.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libipt_TRACE.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(0x7fcaba70, 0x7fcab930) = -1 ENOENT (No such file or directory)
socket(PF_INET, SOCK_RAW, IPPROTO_RAW) = 3
getsockopt(3, SOL_IP, 0x40 /* IP_??? */, 0x7fcabb38, 0) = 0
getsockopt(3, SOL_IP, 0x41 /* IP_??? */, "raw\0ew protocols will be added o"..., [84]) = 0
open("\3", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/libipt_TRACE.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("\260\260\312\177/lib/lib/libxt_TRACE.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("\260\260\312\177/libxt_TRACE.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(0x7fcaba70, 0x7fcab930) = -1 ENOENT (No such file or directory)
open("/usr/lib/iptables/libxt_TRACE.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/libxt_TRACE.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("\260\260\312\177/lib/lib/libipt_TRACE.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libipt_TRACE.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(0x7fcaba70, 0x7fcab930) = -1 ENOENT (No such file or directory)
I tried looking through the packages to see what provides libxt_TRACE.so or libipt_TRACE.so but couldn't see anything. Am I overlooking some package that provides this or is the iptables TRACE target not supported at the moment on openwrt?
Thanks in advance.