[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> </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> </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> </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> </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> </DIV>
<DIV><FONT face=3DArial size=3D2>which 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> </DIV>
<DIV><FONT face=3DArial=20
size=3D2>Module &nbs=
p; =20
Size Used=20
by<BR>ebt_mark_m &nb=
sp; =20
1096 =20
-<BR>ebt_mark =
=20
1096 =20
-<BR>ebtables =
=20
17768 =20
-<BR>ipt_mark =
=20
1128 =20
-<BR>sch_wrr &=
nbsp; =20
11176 =20
-<BR>sch_teql =
=20
4168 =20
-<BR>sch_dsmark &nbs=
p; =20
5224 =20
-<BR>cls_route  =
; =20
4936 =20
-<BR>ipt_tcpmss &nbs=
p; =20
1640 =20
-<BR>cls_tcindex &nb=
sp; =20
5256 =20
-<BR>cls_u32 &=
nbsp; =20
5772 =20
-<BR>sch_ingress &nb=
sp; =20
2604 =20
-<BR>ipt_TCPMSS &nbs=
p; =20
3208 =20
-<BR>iptable_filter =
=20
1864 =20
-<BR>ipt_MARK =
=20
1512 =20
-<BR>cls_fw &n=
bsp; =20
3208 =20
-<BR>iptable_mangle =
=20
1832 =20
-<BR>ppp_async  =
; =20
7816 =20
-<BR>crc_ccitt  =
; =20
1512 =20
-<BR>ip_gre &n=
bsp; =20
8672 =20
-<BR>sch_esfq =
=20
4936 =20
-<BR>sch_netem  =
; =20
4808 =20
-<BR>ipt_connlimit &=
nbsp;=20
2248 =20
-<BR>ipt_connmark &n=
bsp; =20
1160 =20
-<BR>sch_gred =
=20
5704 =20
-<BR>sch_red &=
nbsp; =20
3368 =20
-<BR>sch_hfsc =
=20
16360 =20
-<BR>sch_cbq &=
nbsp; =20
13864 =20
-<BR>sch_prio =
=20
3528 =20
-<BR>sch_tbf &=
nbsp; =20
4168 =20
-<BR>iptable_nat &nb=
sp; =20
20264 =20
-<BR>ip_conntrack &n=
bsp;=20
37076 =20
-<BR>ip_tables  =
; =20
13440 =20
-<BR>ppp_mppe_mppc =
13384 =20
-<BR>ppp_generic &nb=
sp; =20
17788 =20
-<BR>slhc &nbs=
p; =20
6312 =20
-<BR>sch_sfq &=
nbsp; =20
4168 =20
-<BR>sch_htb &=
nbsp; =20
20488 =20
-<BR>rtc  =
; =20
8640 =20
-<BR>8139too &=
nbsp; =20
16936 =20
-<BR>mii  =
; =20
3464 =20
-<BR>crc32 &nb=
sp; =20
3688 -<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--