From: Marek Kierdelewicz Date: Tue, 15 Aug 2006 22:09:11 +0000 Subject: Re: [LARTC] howto reduce the ping? Message-Id: <20060816000911.6e466722@localhost.localdomain> List-Id: References: <200608151717.17048.julius.junghans@gmx.de> In-Reply-To: <200608151717.17048.julius.junghans@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org > #port range 27020:27039, protocol tcp >=20 > #iptables -t mangle -A POSTROUTING -p tcp --dport 27020:27039 -j=20 > CLASSIFY --set-class 1:10 > tc filter add dev ppp0 protocol ip parent 1: prio 1 u32 match ip > dport 27020 0x13 match ip protocol 6 0xff flowid 1:10 >=20 My choice would be fw filter: iptables -t mangle -A POSTROUTING -p tcp --dport 27020:27039 -j MARK --set-mark 0x10 tc filter add dev ppp0 protocol ip parent 1:0 prio 1 handle 0x10 fw classid 1:10 > #port range 27000:27015, protocol udp >=20 > #iptables -t mangle -A POSTROUTING -p udp --dport 27000:27015 -j=20 > CLASSIFY --set-class 1:10 > tc filter add dev ppp0 protocol ip parent 1: prio 1 u32 match ip > dport 27000 0x21 match ip protocol 17 0xff flowid 1:10 iptables -t mangle -A POSTROUTING -p udp --dport 27000:27015 -j MARK --set-mark 0x10 (filter same as above...only one needed) tc filter add dev ppp0 protocol ip parent 1:0 prio 1 handle 0x10 fw classid 1:10 Hope that helps. cheers --=20 Marek Kierdelewicz Kierownik Dzia?u System=F3w Sieciowych, KoBa Manager of Network Systems Department, KoBa tel. (85) 7406466; fax. (85) 7406467 e-mail: admin@koba.pl _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc