From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Seamans Subject: Re: internet gateway bandwidth control Date: Fri, 21 Mar 2003 10:51:30 -0600 Sender: netfilter-admin@lists.netfilter.org Message-ID: <200303211051.30308.marks@crvinc.com> References: <20030321161829.9918.qmail@web80402.mail.yahoo.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20030321161829.9918.qmail@web80402.mail.yahoo.com> Content-Disposition: inline Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" To: realsite internetcafe , netfilter@lists.netfilter.org http://tldp.org/HOWTO/Adv-Routing-HOWTO/lartc.ratelimit.single.html This seems to work very well.. Mark -----Original Message----- hi all. need help in formulating an iptables rule. i need suggestion on a gnu/linux solution for my internet gateway server sharing a adsl connection via iptables_nat. i got client that uses kazaa too much, but i dont want to block kazaa i only need to retune it and give him slow connection. problem is, i dont want to limit his connection to the server coz the server is a samba server also. only need to limit his kazaa connection. heres the design: if client bandwidth > 35kbps then limit only to 35kbps where kazaa dport and sport are 80 and 1214. where -s 192.168.0.0/255.255.255.255.0 except 192.168.0.1 and 192.168.0.15 (.1 is the server and .15 is my box in my room, i believe i would be needing the "!", but how do i make it for two ip address?) where eth0 is 192.168.0.1 (LAN) and eth1 is 203.204.250.206 (DSL) of course i know thats not the rule. but im having a hard time formulating it. ive read all the netfilet how-to's but i need to incorporate and thats the problem. or i need better suggestion. __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com