From: Stef Coene Date: Fri, 23 Jul 2004 17:40:07 +0000 Subject: Re: [LARTC] marking and shaping outbound passive ftp traffic Message-Id: <200407231940.07242.stef.coene@docum.org> List-Id: References: <002701c2c278$ff75f5e0$0802a8c0@monster> In-Reply-To: <002701c2c278$ff75f5e0$0802a8c0@monster> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org On Friday 23 July 2004 02:08, nix4me wrote: > 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." See the lartc.org howto and docum.org for htb and filter examples. Stef --=20 stef.coene@docum.org =A0"Using Linux as bandwidth manager" =A0 =A0 =A0http://www.docum.org/ _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/