All of lore.kernel.org
 help / color / mirror / Atom feed
From: nix4me <nix4me@cfl.rr.com>
To: lartc@vger.kernel.org
Subject: [LARTC] marking and shaping outbound passive ftp traffic
Date: Fri, 23 Jul 2004 00:08:03 +0000	[thread overview]
Message-ID: <410056E3.1040107@cfl.rr.com> (raw)
In-Reply-To: <002701c2c278$ff75f5e0$0802a8c0@monster>

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/

  reply	other threads:[~2004-07-23  0:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-23  0:47 [LARTC] marking and shaping outbound passive ftp traffic mjoachimiak
2004-07-23  0:08 ` nix4me [this message]
2004-07-23 17:40 ` Stef Coene

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=410056E3.1040107@cfl.rr.com \
    --to=nix4me@cfl.rr.com \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.