From mboxrd@z Thu Jan 1 00:00:00 1970 From: nix4me Date: Fri, 23 Jul 2004 00:08:03 +0000 Subject: [LARTC] marking and shaping outbound passive ftp traffic Message-Id: <410056E3.1040107@cfl.rr.com> List-Id: References: <002701c2c278$ff75f5e0$0802a8c0@monster> In-Reply-To: <002701c2c278$ff75f5e0$0802a8c0@monster> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Will the following rules work to mark and shape OUTBOUND ftp speed (passive ftp ports 50000-60000) on my linux server? I want to be able to run these commands on the actual computer that is running the ftp server. iptables -t mangle -N MYSHAPER-OUT iptables -t mangle -I POSTROUTING -o eth0 -j MYSHAPER-OUT iptables -t mangle -A MYSHAPER-OUT -p tcp --dport 50000:60000 -j MARK --set-mark 1 tc class add dev eth0 mark 1 htb rate 10 kbit I tried it but the tc line fails with "Error: Qdisc "mark" is classless." Any help would be greatly appreciated. Mark _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/