Networking Forums

Networking Forums > Computer Networking > Linux Networking > How to block fragmented UDP packets

Reply
Thread Tools Display Modes

How to block fragmented UDP packets

 
 
tomek@e-fekt.net
Guest
Posts: n/a

 
      01-24-2007, 07:55 AM
Thanks google i read that using u32 module i can stop fragmented udp
packets. I have router with nat and conntrack and I cannot manage
bandwidth of these packets so I decided to cut them.
I found the rule:
iptables -m u32 --u32 "3&0x20=0x20"
or
|iptables -m u32 --u32 "3&0x20>>5=1"
or
||"4&0x3FFF=1:0x3FFF"
but none works.
I have to add that these packets cannot be clasified using HTB rules
and filters.

 
Reply With Quote
 
 
 
 
Pascal Hambourg
Guest
Posts: n/a

 
      01-24-2007, 11:18 AM
Hello,

(E-Mail Removed) a écrit :
> Thanks google i read that using u32 module i can stop fragmented udp
> packets. I have router with nat and conntrack and I cannot manage
> bandwidth of these packets so I decided to cut them.


Conntrack does reassembly before the packet enters the PREROUTING
chains, so fragmentation should not be a problem. Packets may be
fragmented again after the FORWARD chains when the packet size is bigger
than the output interface MTU and reassembled again before the
nat/POSTROUTING chain (NAT needs to work on complete IP datagrams), so
you will see fragments only in the mangle/POSTROUTING chain.

> I found the rule:
> iptables -m u32 --u32 "3&0x20=0x20"
> or
> |iptables -m u32 --u32 "3&0x20>>5=1"
> or
> ||"4&0x3FFF=1:0x3FFF"
> but none works.


These are not valid iptables commands : no command, no chain.
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Do NAT-routers block UDP packets? Router Man Network Routers 10 09-04-2007 08:41 PM
Fragmented IP packages Johann Höchtl Linux Networking 1 07-17-2006 07:55 AM
block outgoing packets with iptables Peter Lowrie Linux Networking 2 05-05-2006 03:31 AM
detect tcp fragmented packets Giacomo Linux Networking 0 09-09-2005 12:03 PM
block broadcast packets from routing Dave Lister Linux Networking 1 09-16-2003 08:01 PM



1 2 3 4 5 6 7 8 9 10 11