From: Torsten Luettgert Date: Thu, 22 Jun 2006 13:50:28 +0000 Subject: Re: [LARTC] iptables match u32 Message-Id: <1150984228.2177.16.camel@murdegern.hindenburgdamm.example> List-Id: References: <20060622072115.99784.qmail@web26509.mail.ukl.yahoo.com> In-Reply-To: <20060622072115.99784.qmail@web26509.mail.ukl.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org On Thu, 2006-06-22 at 09:21 +0200, gerald HUET wrote: > hello, > > I try to use iptables rules to drop skype trafic. The > iptables rule is : > iptables -I FORWARD -p udp -m length --length 39 -m > u32 --u32 '27&0x8f=7' --u32 '31=0x01020304' -j ACCEPT Interesting match... but doesn't skype work on TCP, too, if UDP doesn't work? I've been told it even runs over http proxy, when there's no direct internet connection available. > the problem I encounter is that i can't have the match > u32 for iptables. Could someone help me ? Yes, the u32 match is in the netfilter patch-o-matic repository. You can get the new iptables and patch-o-matic code using subversion, like this: svn co http://svn.netfilter.org/netfilter/trunk/iptables svn co http://svn.netfilter.org/netfilter/trunk/patch-o-matic-ng After that, you need to prepare kernel sources and use the 'runme' script in patch-o-matic-ng to patch iptables and your kernel sources. Hth, Torsten _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc