Linux Netfilter development
 help / color / mirror / Atom feed
* Large packets received from the queue
@ 2008-05-13 12:56 james hough
  2008-05-14  1:15 ` David Miller
  0 siblings, 1 reply; 7+ messages in thread
From: james hough @ 2008-05-13 12:56 UTC (permalink / raw)
  To: netfilter-devel

Hi

I am developing an app on redhat el5 using the NFQUEUE  target. However i 
have hit a problem. first off the traffic i am queueing is TCP traffic only 
and use the following rules to insert these into iptables.

iptables -I INPUT 1 -p tcp -J NFQUEUE --queue-num 1
iptables -I OUTPUT 1 -p tcp -J NFQUEUE --queue-num 0

the problem I have is that my app is receiving larger than MTU packets off 
the queue, often in excess of 2000bytes. The MTU is set to 1500 and the 
problem only seems to occur on outbound traffic when doing file uploads. in 
this case I am doing an FTP put.

At first i thought that the packets were made up of a good packet followed 
by junk data but the ip header of the packet from the queue contains the 
correct size (2000+).

Since this problem became an issue I modified my app so that it simply 
received the packet off the queue, printed the size then set a verdict of 
accept. This showed the same issue that larger than MTU packets where 
entering the queue. This test application is pretty much the same as the 
test app provided with the source but with two queues.

I have installed the latest iptables v1.4.0 and have compiled the latest 
libnfnetlink and libnetfilter_queue but i still get this problem. My kernel 
is 2.6.18.

can anyone help or has experianced this problem before?

Thank you

James



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-05-14 10:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-13 12:56 Large packets received from the queue james hough
2008-05-14  1:15 ` David Miller
2008-05-14  8:48   ` Eric Leblond
2008-05-14  8:53     ` Patrick McHardy
2008-05-14 10:06       ` David Miller
2008-05-14 10:09         ` Patrick McHardy
2008-05-14  9:08   ` james hough

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox