Skip to contentSkip to conversation

iptables match u32

LARTC gerald HUET 2 participants 2 messages Jun 22, 2006

lore
Share & tools
lore
#0 lore raw

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

the problem I encounter is that i can't have the match u32 for iptables. Could someone help me ?

___________________________________________________________________________
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
http://fr.mail.yahoo.com
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#1 lore raw
Quoted 6 lines · gerald HUET

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.

Quoted 2 lines

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
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc