LARTC
[Top] [All Lists]

[LARTC] Re: LARTC Digest, Vol 26, Issue 24

To: lartc@mailman.ds9a.nl
Subject: [LARTC] Re: LARTC Digest, Vol 26, Issue 24
From: terraja-based <drumlesson@gmail.com>
Date: Sat, 28 Apr 2007 16:33:16 -0300
Delivered-to: sp-com-lists@consult.net
Delivered-to: lartc-list@securepoint.com
Delivered-to: lartc@outpost.ds9a.nl
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=X5WWngtAKJkOOurb/6MGFErfQwy0Qzw2oPCHP+HlM94L4hIGWEnmPSa9ODQ3UaJyZUCRe72fQqtHEkSecft+G1G5HRyickftZvDzc4Cc+iTtfRqwX9b6zVAn1I0w69ickk3k2Sk4bRmFVy6Hd+8jv3n4EExquIMtqtjDhhDmMuw=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Lt7Md969HbKSv4yStFzAwAr3K263dT8drziuR8OilqdA96vyWA37GSQtgUQZJctoOfLtnPVWp2ycGUvCTX/F78JAvExPDCZZI55sT47s5TG1xH3P2jtNHplTM/x+096jijRppf610lOiRsQejG8i5Y1Ax9DrAx1icLxVuLsieR0=
In-reply-to: <20070428100006.2C6AE410C@outpost.ds9a.nl>
List-archive: <http://mailman.ds9a.nl/pipermail/lartc>
List-help: <mailto:lartc-request@mailman.ds9a.nl?subject=help>
List-id: "Mailinglist of the Linux Advanced Routing &amp; Traffic Control project" <lartc.mailman.ds9a.nl>
List-post: <mailto:lartc@mailman.ds9a.nl>
List-subscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=subscribe>
List-unsubscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=unsubscribe>
References: <20070428100006.2C6AE410C@outpost.ds9a.nl>
Sender: lartc-bounces@mailman.ds9a.nl

Alejandro,
 
 
 
 
So, i did try the script that you give to me, and the problems its continues.-
Maybe the problem was in the IPTABLES rules, i attach the complete script below:
 
#####################
ifconfig imq0 up

tc qdisc add dev imq0 handle 1: root htb default 30
tc class add dev imq0 parent 1: classid 1:1 htb rate 500kbit ceil 2000kbit

tc class add dev imq0 parent 1:1 classid 1:10 htb rate 100kbit ceil 2000kbit
tc class add dev imq0 parent 1:1 classid 1:20 htb rate 100kbit ceil 2000kbit
tc class add dev imq0 parent 1:1 classid 1:30 htb rate 100kbit ceil 2000kbit


tc qdisc add dev imq0 parent 1:10 handle 2 sfq
tc qdisc add dev imq0 parent 1:20 handle 3 sfq

iptables -t mangle -A PREROUTING -i eth1 -j IMQ --todev 0

tc filter add dev imq0 parent 1: prio 0 protocol ip handle 2 fw flowid 1:10
tc filter add dev imq0 parent 1: prio 1 protocol ip handle 3 fw flowid 1:20

iptables -t mangle -A PREROUTING -i eth1 -p tcp --dport 80 -j MARK --set-mark 2
iptables -t mangle -A PREROUTING -i eth1 -p tcp --dport 20 -j MARK --set-mark 3
iptables -t mangle -A PREROUTING -i eth1 -p tcp --dport 21 -j MARK --set-mark 3
#####################
 
 
The traffic it continues goes out by the "default" qdisc (1:30), and it was not clasified by the correct qdisc.
I did try a ftp transfererence using the 20 and 21 TCP ports, this should to use the 1:20 qdisc asociated with the "handle 3"...BUT DID NOT WORK...!!!
PLease, help me...!!!
 

--
terraja-based
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
<Prev in Thread] Current Thread [Next in Thread>