Hello,

I was trying to setup ifb0 device on pure
LFS (current development LFS) + iptables-1.3.5 (blfs).

After setting up command from IFB Linux webpage:

tc qdisc add dev eth0 ingress
tc filter add dev eth0 parent ffff: protocol ip prio 10 u32 \
   match u32 0 0 flowid 1:1 \
   action ipt -j MARK --set-mark 10 \
   action mirred egress redirect dev ifb0

result is:
/usr/local/lib/iptables/libipt_mark.so: cannot open
shared object file: No such file or directory
failed to find target MARK

So, TC is unable to find shared iptables libs. Iptables actions
won't work.

As written in BLFS book iptables shared libs are installed
in directory /usr/lib/iptables  ( not /usr/local/lib/iptables )

I propose fix file:
/source/iproute2-2.6.16-060323/tc/m_ipt.c  at line 51
from hardcoded path
#define IPT_LIB_DIR "/usr/local/lib/iptables"
to
#define IPT_LIB_DIR "/usr/lib/iptables"

eg:
sed -i 's/\/usr/local/\/usr/g' tc/m_ipt.c

Lukasz Nierychlo
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to