From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin A. Brown" Date: Tue, 22 Jul 2003 02:41:19 +0000 Subject: Re: [LARTC] Shape both incoming and outgoing traffic with HTB ? Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Hello Rio Martin, : I want to shape both incoming and outgoing traffic with HTB. Since the : first time i applied HTB, i only limit incoming traffic from internet, : while the outgoing traffic is unlimited and now these days my outgoing : traffic really getting higher. : : INTERNET ----- eth0 | BW.MANAGER | eth1 --- LAN This is not an uncommon problem for masquerading or SNATting hosts. In short, your upload traffic has already been masqueraded/SNATted, so you no longer have a source IP of 192.168.0.0/19. The best thing to do is to use fwmark to mark the traffic with iptables/ipchains (whichever you are using) and classify the outbound traffic according to the fwmark. See the LARTC documentation on this topic [1]. -Martin [1] http://lartc.org/howto/lartc.qdisc.filters.html#LARTC.FILTERING.SIMPLE -- Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/