All of lore.kernel.org
 help / color / mirror / Atom feed
From: "james hough" <jameshough@bemac.com>
To: <netfilter-devel@vger.kernel.org>
Subject: Large packets received from the queue
Date: Tue, 13 May 2008 13:56:23 +0100	[thread overview]
Message-ID: <001b01c8b4f8$bf9bb180$5c01a8c0@jimpc> (raw)

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



             reply	other threads:[~2008-05-14  1:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-13 12:56 james hough [this message]
2008-05-14  1:15 ` Large packets received from the queue 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='001b01c8b4f8$bf9bb180$5c01a8c0@jimpc' \
    --to=jameshough@bemac.com \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.