From mboxrd@z Thu Jan 1 00:00:00 1970 From: Razvan Stranschi Date: Thu, 19 Feb 2004 14:16:38 +0000 Subject: [LARTC] redhat 9 and htb Message-Id: <4034C546.4000201@arvo.ro> List-Id: References: <40348FEB.4030203@arvo.ro> In-Reply-To: <40348FEB.4030203@arvo.ro> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org I want an advise, because I don't know much about lartc, I am using htb.init.
What I want to accomplish:
I have a RH9 as gateway in a network with 30 computers. RH9 make SNAT for them to go out on internet, and I want to be able to assign different bandwidth to different computer in local network.

                            ________                        ________________
    192.168.0.2     |               |                       |                                |
    192.168.0.3     |   switch   |  ------->eth0 |       RedHat 9          |   eth1 -> internet
        ......              |               |                       |                                |
                            |__ _____|                       |________________|


If I understand corectly I must:

1. include both eth0 and eth1 in traffic control: eth0 will limit download and eth1 will limit upload from lan host perspective
2. because on eth1 I make SNAT I cannot differentiate by source IP different classes, all packets will have the public IP as source after SNAT so I must MARK packets and different classes by this MARK

Are any other issue to take in account here?


Thank you.
-- 

Razvan Stranschi
razvan@arvo.ro
--------------------------------------- This e-mail was scanned for viruses by ARVO. _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/