Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Stephane Ouellette <ouellettes@videotron.ca>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] In what order are CBQ and iptables applied?
Date: Thu, 16 Jan 2003 15:29:36 +0000	[thread overview]
Message-ID: <marc-lartc-104273103225160@msgid-missing> (raw)
In-Reply-To: <marc-lartc-104272234212579@msgid-missing>

Masse, Tom wrote:

>
> Let's say I have two Ethernet interfaces (eth0 and eth1).  I am trying 
> to shape multiple TCP connections to 56K from one 100MBit pipe.
>
> CLIENT  ----------  ETH0  --------  ETH1  ----------  SERVER
> 192.168.1.1     192.168.1.254   172.16.1.254      172.16.1.1
>
> For example, I want the client to be able to make multiple TCP 
> connections (.1.1:80, .1.1:8081, .1.1:8082) all at 56K from the 
> server, which obviously has the ability to deliver 100MBit.
>
> My CBQ file looks like so:
>         DEVICE=eth0,100MBit,10Mbit
>         RATEVKbit
>         WEIGHT=5Kbit
>         PRIO=5
>         RULE\x192.168.1.1/24:80
>         RULE\x192.168.1.1/24:8081
>         RULE\x192.168.1.1/24:8082
>         RULE\x192.168.1.1/24:8083
>         RULE\x192.168.1.1/24:8084
>         RULE\x192.168.1.1/24:8085
>
> Is it possible to use iptables to make all the connections' 
> destination ports appear to be port 80?  How, and to which interface, 
> should I apply the rules?
>

Tom,

   it is not possible to do so, if I understand your question.  Take a 
look at http://www.netfilter.org/documentation to learn more about iptables.

> Also, when is CBQ applied?  Prerouting? Postrouting? Is it applied 
> pre- or post-routing specific to the interface, or to the kernel?
>

   I suggest that you take a look at http://www.docum.org as there is a 
good FAQ about traffic control.  You'll find a diagram that shows where 
traffic control applies.

Stephane

>
> *Tom Masse*
> Engineer, Network Operations
> Gómez, Inc.
>
> T 781.768.2134
> F 781.466.1434
>
> /Maximize Your Internet Channel Effectiveness/
> _http://www.gomez.com/_
>



_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

      reply	other threads:[~2003-01-16 15:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-16 12:42 [LARTC] In what order are CBQ and iptables applied? Masse, Tom
2003-01-16 15:29 ` Stephane Ouellette [this message]

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=marc-lartc-104273103225160@msgid-missing \
    --to=ouellettes@videotron.ca \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox