[LARTC] tc and iptables trouble

Lluís Gili tictac@awacat.com
Wed, 24 Nov 2004 15:15:03 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0007_01C4D238.5F7BFFE0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all
I have a trouble configuring the qdiscs, when I indicate the "perturb =
10" option to tc, i gives me this error:

tc qdisc add dev eth0 parent 5:1323 handle 1323 sfq perturb 10
RTNETLINK answers: Invalid argument

if I don't put the "perturb 10" option, it works.

another question is about iptables, when I indicate the " --set-mark" =
option:

iptables -t mangle -A egress -s 10.0.0.124 -j MARK --set-mark 1323
iptables: Invalid argument

which will be the problem?
I'm using Debian testing, with kernel 2.6.9 compiled with netfilter =
patches, iptables 1.2.11, iproute2 2.6.9-1, and I have these modules =
loaded:=20

Module                  Size  Used by
ebt_mark_m              1096  -
ebt_mark                1096  -
ebtables               17768  -
ipt_mark                1128  -
sch_wrr                11176  -
sch_teql                4168  -
sch_dsmark              5224  -
cls_route               4936  -
ipt_tcpmss              1640  -
cls_tcindex             5256  -
cls_u32                 5772  -
sch_ingress             2604  -
ipt_TCPMSS              3208  -
iptable_filter          1864  -
ipt_MARK                1512  -
cls_fw                  3208  -
iptable_mangle          1832  -
ppp_async               7816  -
crc_ccitt               1512  -
ip_gre                  8672  -
sch_esfq                4936  -
sch_netem               4808  -
ipt_connlimit           2248  -
ipt_connmark            1160  -
sch_gred                5704  -
sch_red                 3368  -
sch_hfsc               16360  -
sch_cbq                13864  -
sch_prio                3528  -
sch_tbf                 4168  -
iptable_nat            20264  -
ip_conntrack           37076  -
ip_tables              13440  -
ppp_mppe_mppc          13384  -
ppp_generic            17788  -
slhc                    6312  -
sch_sfq                 4168  -
sch_htb                20488  -
rtc                     8640  -
8139too                16936  -
mii                     3464  -
crc32                   3688  -

Thank you for your time, and sorry my BAD english !!!
------=_NextPart_000_0007_01C4D238.5F7BFFE0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1476" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi all</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I have a trouble configuring the =
qdiscs, when I=20
indicate the "perturb 10" option to tc, i gives me this =
error:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>tc qdisc add dev eth0 parent 5:1323 =
handle 1323 sfq=20
perturb 10<BR>RTNETLINK answers: Invalid argument</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>if I don't put the "perturb 10" option, =
it=20
works.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>another question is about iptables, =
when I indicate=20
the " --set-mark" option:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>iptables -t mangle -A egress -s =
10.0.0.124 -j MARK=20
--set-mark 1323</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>iptables: Invalid argument</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>which&nbsp;will be the =
problem?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I'm using Debian testing, with kernel =
2.6.9=20
compiled with netfilter patches, iptables 1.2.11, iproute2 2.6.9-1, and =
I have=20
these modules loaded: </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>Module&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb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sp;=20
4168&nbsp;=20
-<BR>sch_htb&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
20488&nbsp;=20
-<BR>rtc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
8640&nbsp;=20
-<BR>8139too&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
16936&nbsp;=20
-<BR>mii&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
3464&nbsp;=20
-<BR>crc32&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
3688&nbsp; -<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Thank you for your time, and sorry my =
BAD english=20
!!!</DIV></FONT></BODY></HTML>

------=_NextPart_000_0007_01C4D238.5F7BFFE0--