From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephane Ouellette Date: Thu, 16 Jan 2003 15:29:36 +0000 Subject: Re: [LARTC] In what order are CBQ and iptables applied? Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Masse, Tom wrote: > > Let's say I have two Ethernet interfaces (eth0 and eth1). I am trying=20 > 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=20 > connections (.1.1:80, .1.1:8081, .1.1:8082) all at 56K from the=20 > server, which obviously has the ability to deliver 100MBit. > > My CBQ file looks like so: > DEVICE=3Deth0,100MBit,10Mbit > RATEVKbit > WEIGHT=3D5Kbit > PRIO=3D5 > RULE=192.168.1.1/24:80 > RULE=192.168.1.1/24:8081 > RULE=192.168.1.1/24:8082 > RULE=192.168.1.1/24:8083 > RULE=192.168.1.1/24:8084 > RULE=192.168.1.1/24:8085 > > Is it possible to use iptables to make all the connections'=20 > destination ports appear to be port 80? How, and to which interface,=20 > should I apply the rules? > Tom, it is not possible to do so, if I understand your question. Take a=20 look at http://www.netfilter.org/documentation to learn more about iptables. > Also, when is CBQ applied? Prerouting? Postrouting? Is it applied=20 > 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=20 good FAQ about traffic control. You'll find a diagram that shows where=20 traffic control applies. Stephane > > *Tom Masse* > Engineer, Network Operations > G=F3mez, 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/