Skip to contentSkip to conversation

problem in iptables!!!

DISCUSSION varun 2 participants 2 messages Apr 10, 2006 – Apr 11, 2006 netfilter

lore
Share & tools
lore

varun

author
#0 lore raw

Hi all,

I have a small problem with iptables. Iam trying to use
iptables in an Cyberton Board (ARM). I compiled it with ucLibc. and i also put the images on the board. Then when board comes up i manually insmoded the following modules.

ip_conntrack.ko    ipt_REJECT.ko      ipt_state.ko
ip_tables.ko       ipt_conntrack.ko   iptable_filter.ko

Then i tried to add a policy
iptables -t filter -A OUTPUT -j REJECT
This works well in my PC with the 2.6 kernel but gives this error on the same kernel arm compiled.
The error i get is
iptables v1.2.11: Couldn't find target `REJECT'

Try `iptables -h' or 'iptables --help' for more
information.

Can someone tell me what is wrong?

Varun

#1 lore raw

From: varun <[email protected]>
Date: Mon, 10 Apr 2006 18:39:27 +0530

Quoted 17 lines

Hi all,

I have a small problem with iptables. Iam trying to use
iptables in an Cyberton Board (ARM). I compiled it with ucLibc. and i also put the images on the board. Then when board comes up i manually insmoded the following modules.

ip_conntrack.ko    ipt_REJECT.ko      ipt_state.ko
ip_tables.ko       ipt_conntrack.ko   iptable_filter.ko

Then i tried to add a policy
iptables -t filter -A OUTPUT -j REJECT
This works well in my PC with the 2.6 kernel but gives this error on
the same kernel arm compiled.
The error i get is
iptables v1.2.11: Couldn't find target `REJECT'

Quoted 2 lines

Try `iptables -h' or 'iptables --help' for more
information.

This message means that shared library libipt_REJECT.so isn't not found.

Quoted 1 line

Can someone tell me what is wrong?

I think that you didn't install shared libraries for matches/targets to your image even though you build iptables without statically linking them.

If so, you have 2 options.
- You can install them to /usr/local/lib/iptables (or path you specified clearly when building iptables) on image.

- You can build iptables statically linking them by 'make NO_SHARED_LIBS=1' .

-- Yasuyuki Kozakai