Large packets received from the queue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux