From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alexandru Coseru" Date: Sun, 11 May 2003 14:47:07 +0000 Subject: [LARTC] what's wrong with the last line ? MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0005_01C317E5.57048710" Message-Id: List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C317E5.57048710 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable tc qdisc del dev eth1 root tc qdisc add dev eth1 root handle 10: prio bands 6 tc qdisc add dev eth1 parent 10:1 handle 20: bfifo tc qdisc add dev eth1 parent 10:2 handle 30: bfifo tc qdisc add dev eth1 parent 10:3 handle 40: bfifo tc qdisc add dev eth1 parent 10:4 handle 50: bfifo tc qdisc add dev eth1 parent 10:5 handle 60: bfifo tc qdisc add dev eth1 parent 10:6 handle 70: bfifo # www traffic tc filter add dev eth1 parent 10: protocol ip prio 1 u32 match ip dport = 80 0xff flowid 10:1 # pop3 traffic tc filter add dev eth1 parent 10: protocol ip prio 1 u32 match ip dport = 110 0xff flowid 10:1 # smtp traffic tc filter add dev eth1 parent 10: protocol ip prio 1 u32 match ip dport = 25 0xff flowid 10:1 # BANDA 2 # 2234 , 5534 -slsk tc filter add dev eth1 parent 10: protocol ip prio 2 u32 match ip dport = 2234 0xff flowid 10:2 tc filter add dev eth1 parent 10: protocol ip prio 2 u32 match ip dport = 5534 0xff flowid 10:2 tc filter add dev eth1 parent 10: protocol ip prio 2 u32 match ip sport = 2234 0xff flowid 10:2 tc filter add dev eth1 parent 10: protocol ip prio 2 u32 match ip sport = 5534 0xff flowid 10:2 # BANDA 3 # yahoo messanger tc filter add dev eth1 parent 10: protocol ip prio 3 u32 match ip dst = 216.136.224.0/24 flowid 10:3 # msn tc filter add dev eth1 parent 10: protocol ip prio 3 u32 match ip dst = 207.46.104.20 flowid 10:3 tc filter add dev eth1 parent 10: protocol ip prio 3 u32 match ip dst = 207.46.106.0/24 flowid 10:3 # irc tc filter add dev eth1 parent 10: protocol ip prio 3 u32 match ip dport = 6666 0xff flowid 10:3 tc filter add dev eth1 parent 10: protocol ip prio 3 u32 match ip dport = 6667 0xff flowid 10:3 # BANDA 4 - dcc , kazza , etc... # unused yet , because I have to dig a little to find out KAZZA's ports # BANDA 5 - cs tc filter add dev eth1 parent 10: protocol ip prio 5 u32 match ip dport = 27015 0xff flowid 10:5 # the rest of the traffic , not matched by any rule tc filter add dev eth1 parent 10: protocol ip prio 6 flowid 10:6 when executing the script , it's all ok , until the last line , when = it's says: "Unknown filter "flowid", hence option "10:6" is unparsable" what's wrong ? I've looked on how-to and seems to be ok.. ------=_NextPart_000_0005_01C317E5.57048710 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
tc qdisc del dev eth1 root
tc qdisc = add dev eth1=20 root handle 10: prio bands 6
tc qdisc add dev eth1 parent 10:1 handle = 20:=20 bfifo
tc qdisc add dev eth1 parent 10:2 handle 30: bfifo
tc qdisc = add dev=20 eth1 parent 10:3 handle 40: bfifo
tc qdisc add dev eth1 parent 10:4 = handle=20 50: bfifo
tc qdisc add dev eth1 parent 10:5 handle 60: bfifo
tc = qdisc add=20 dev eth1 parent 10:6 handle 70: bfifo
 
#  www traffic
tc filter add = dev eth1=20 parent 10: protocol ip prio 1 u32 match ip dport 80  0xff flowid = 10:1
#=20 pop3 traffic
tc filter add dev eth1 parent 10: protocol ip prio 1 u32 = match=20 ip dport 110  0xff flowid 10:1
# smtp traffic
tc filter add = dev eth1=20 parent 10: protocol ip prio 1 u32 match ip dport 25  0xff flowid=20 10:1
#       = BANDA=20 2
 
# 2234 , 5534  -slsk
tc filter = add dev eth1=20 parent 10: protocol ip prio 2 u32 match ip dport 2234  0xff flowid=20 10:2
tc filter add dev eth1 parent 10: protocol ip prio 2 u32 match = ip dport=20 5534  0xff flowid 10:2
tc filter add dev eth1 parent 10: = protocol ip=20 prio 2 u32 match ip sport 2234  0xff flowid 10:2
tc filter add = dev eth1=20 parent 10: protocol ip prio 2 u32 match ip sport 5534  0xff flowid=20 10:2
 
#   BANDA  = 3
# yahoo messanger
tc filter add dev = eth1 parent=20 10: protocol ip prio 3 u32 match ip dst 216.136.224.0/24 flowid = 10:3
#=20 msn
tc filter add dev eth1 parent 10: protocol ip prio 3 u32 match ip = dst=20 207.46.104.20 flowid 10:3
tc filter add dev eth1 parent 10: protocol = ip prio=20 3 u32 match ip dst 207.46.106.0/24 flowid 10:3
# irc
tc filter add = dev=20 eth1 parent 10: protocol ip prio 3 u32 match ip dport 6666 0xff flowid=20 10:3
tc filter add dev eth1 parent 10: protocol ip prio 3 u32 match = ip dport=20 6667 0xff flowid 10:3
 
 
 
# BANDA  4  -   dcc = , kazza ,=20 etc...
# unused yet , because I have to dig a = little to=20 find out KAZZA's ports
 
 
# BANDA 5  -  cs
tc filter add dev eth1 parent 10: = protocol ip prio=20 5 u32 match ip dport 27015  0xff flowid 10:5
 
 
# the rest of the traffic , not matched = by any=20 rule
tc filter add dev eth1 parent 10: protocol ip prio 6 flowid=20 10:6
 
 
 
 
 
when executing the script , it's all ok = , until the=20 last line , when it's says:
    "Unknown filter = "flowid", hence=20 option "10:6" is unparsable"
 
what's wrong ?  I've looked on = how-to and=20 seems to be ok..
 
 
------=_NextPart_000_0005_01C317E5.57048710-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/