Skip to contentSkip to conversation

tc ipt action bug

DISCUSSION Yawhen Kasarzhewski 2 participants 2 messages Jan 3, 2009 – Jan 4, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

iproute is still using old iptables so failing to work with new xt_tables:

warp:~# tc filter add dev ppp0 parent ffff: protocol ip prio 10 u32 \
Quoted 3 lines
  match u32 0 0 flowid 1:1 \
  action ipt -j MARK --set-mark 1 \
  action mirred egress redirect dev ifb0

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

warp:~# find /lib -name "*mark.so"
/lib/ebtables/libebt_mark.so
/lib/xtables/libxt_connmark.so
/lib/xtables/libxt_mark.so
warp:~# iptables -V
iptables v1.4.1.1
warp:~# tc -V
tc utility, iproute2-ss080725
warp:~# uname -a
Linux warp 2.6.26 #2 Sun Jul 27 21:06:55 EEST 2008 i686 GNU/Linux
#1 lore raw

Upgrade to latest iproute2 - probably from git tree which should fix this in the following commit:
-----

commit 53c017880b311d7d68926109d4248c900286f6b7

Author: Denys Fedoryshchenko <[email protected]>
Date:   Mon Dec 24 11:51:11 2007 -0500

iptables compatiablity

New iptables 1.4.0 has some library names changed from libipt to
libxt.
It is prefferable also to open libxt_ first, as newer "style".

-------

cheers,
jamal

Quoted 24 lines · Yawhen Kasarzhewski

iproute is still using old iptables so failing to work with new xt_tables:

warp:~# tc filter add dev ppp0 parent ffff: protocol ip prio 10 u32 \
Quoted 3 lines
  match u32 0 0 flowid 1:1 \
  action ipt -j MARK --set-mark 1 \
  action mirred egress redirect dev ifb0

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

warp:~# find /lib -name "*mark.so"
/lib/ebtables/libebt_mark.so
/lib/xtables/libxt_connmark.so
/lib/xtables/libxt_mark.so
warp:~# iptables -V
iptables v1.4.1.1
warp:~# tc -V
tc utility, iproute2-ss080725
warp:~# uname -a
Linux warp 2.6.26 #2 Sun Jul 27 21:06:55 EEST 2008 i686 GNU/Linux

--
To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html