From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Daniel Ditu" Date: Sat, 25 Jan 2003 10:36:38 +0000 Subject: Re: [LARTC] isolated works fine for me Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org > Can you post your script so I can take a look at it ? > > Stef > //mark the packets in iptables .. the ip 192.168.1.111 will have an isolated band of 5k enough to play cs iptables -t mangle -F iptables -t mangle -A FORWARD -s 0/0 -d 0/0 -j MARK --set-mark 100 iptables -t mangle -A FORWARD -s ! 192.168.1.0/24 -d 192.168.1.111 -j MARK --set-mark 111 iptables -t mangle -A FORWARD -d ! 192.168.1.0/24 -s 192.168.1.111 -j MARK --set-mark 111 tc qdisc add dev eth0 root handle 10: cbq bandwidth 10Mbit avpkt 1000 allot 1514 #total traffic.. 200/8%K.. tc class add dev eth0 parent 10:0 classid 10:1 cbq rate 200kbit avpkt 1000 prio 5 tc class add dev eth0 parent 10:1 classid 10:10 cbq rate 40kbit allot 1514 prio 5 isolated tc class add dev eth0 parent 10:1 classid 10:20 cbq rate 160kbit allot 1514 prio 4 bounded # filtre care clasifica traficu handle 1 e traficul de download tc filter add dev eth0 parent 10:0 protocol ip prio 5 handle 111 fw flowid 10:10 tc filter add dev eth0 parent 10:0 protocol ip prio 4 handle 100 fw flowid 10:20 _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/