Linux Netfilter discussions
 help / color / mirror / Atom feed
* iptables - Couldn't load target error
@ 2007-12-19 11:21 Saravanan Chanemouganandam
  2007-12-19 11:56 ` Alexander Griesser
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Saravanan Chanemouganandam @ 2007-12-19 11:21 UTC (permalink / raw)
  To: netfilter; +Cc: busybox, linux-arm

Hi all,

I have some problem with iptables (v1.3.8) and extension supports libraries 
installed to the buildroot's root filesystem (/lib/iptables) running on 
Xscale pxa270. 

iptables with MASQUERADE support throws Couldn't load target error. The 
following strace shows that it tries to open libraries in the /lib and in 
the /usr/lib instead of /lib/iptables.

Can anybody precise me, why it is not looking into /lib/iptables for the 
dynamic libraries?

#strace iptables -t nat -A POSTROUTING -o br_wan -j MASQUERADE shows 
....

open("/home/sara/BuildRoot/buildroot/project_build_arm/uclibc/root/lib/iptables/libipt_MASQUERADE.so",)
open("/lib/libipt_MASQUERADE.so", O_RDONLY) = -1 ENOENT (No such file or 
directory)
open("/lib/libipt_MASQUERADE.so", O_RDONLY) = -1 ENOENT (No such file or 
directory)
open("/usr/lib/libipt_MASQUERADE.so", O_RDONLY) = -1 ENOENT (No such file or 
directory)
munmap(0x40006000, 698)                 = 0
write(2, "iptables", 8iptables)                 = 8
write(2, " v", 2 v)                       = 2
write(2, "1.3.8", 51.3.8)                    = 5
write(2, ": ", 2: )                       = 2
write(2, "Couldn\'t load target `", 22Couldn't load target `) = 22
write(2, "MASQUERADE", 10MASQUERADE)              = 10
write(2, "\':", 2':)                      = 2
write(2, "File not found", 14File not found)          = 14

thanks
Sara

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-12-20 17:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-19 11:21 iptables - Couldn't load target error Saravanan Chanemouganandam
2007-12-19 11:56 ` Alexander Griesser
2007-12-19 12:48 ` Mike Frysinger
2007-12-20 10:03 ` Denys Vlasenko
2007-12-20 13:49   ` Saravanan Chanemouganandam
2007-12-20 17:26     ` Denys Vlasenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox