From: richard lucassen Date: Wed, 22 Feb 2006 10:35:15 +0000 Subject: Re: [LARTC] invert u32 match selector Message-Id: <20060222113515.0dce15d2.mailinglists@lucassen.org> List-Id: References: <20060221172517.6e5a433c.mailinglists@lucassen.org> In-Reply-To: <20060221172517.6e5a433c.mailinglists@lucassen.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org On Wed, 22 Feb 2006 11:43:40 +0200 "Vaidas" wrote: > With u32 you cannot negate, that's why it is lame... And why doesn't this work? (I send all port 80 to 1.2.3.4 to class 14 /before/ I send the rest to classid 13): $TC filter add dev ${DEV_IFB} parent 1:0 prio 2 protocol ip u32 \ match ip protocol 0x6 0xff \ match ip dport 80 0xffff \ match ip dst 1.2.3.4/32 \ classid 1:14 $TC filter add dev ${DEV_IFB} parent 1:0 prio 2 protocol ip u32 \ match ip protocol 0x6 0xff \ match ip dport 80 0xffff \ classid 1:13 Any ideas? > Use iptables for marking packets > > $TC filter add dev ${DEV_IFB} parent 1:0 prio 2 protocol ip handle 14 > fw classid 1:14 > > Iptables -t mangle -A PREROUTING -p TCP --dport 80 -d ! 1.2.3.4 -j > MARK --set-mark 14 Ok, thnx. That's of course a solution, but I just wondered if this were possible with u32... R. -- ___________________________________________________________________ It is better to remain silent and be thought a fool, than to speak aloud and remove all doubt. +------------------------------------------------------------------+ | Richard Lucassen, Utrecht | | Public key and email address: | | http://www.lucassen.org/mail-pubkey.html | +------------------------------------------------------------------+ _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc