Hi Patrick, thanks for your answer. I completely agree with you about the actual usefulness of such a mod: in real life SYNs with payload are almost not present, unfortunately I found one of those cases and I was thinking about this mod. Apart from the real life scenarios, I do not understand your sentence: > It doesn't seem like a very useful feature, > considering all the stacks supporting syn cookies. Did you mean that syn cookies would drop that SYN with data anyway? Or that MSS mangling itself would harm syn cookies tecniques? Thanks for your clarifications. Luca On Wed, Jul 15, 2009 at 5:38 PM, Patrick McHardy <kaber@xxxxxxxxx> wrote: > > Luca Pesce wrote: > > Hi all, > > I have a question and a possible patch/mod for target TCPMSS (xt_TCPMSS.c). > > At the very beginning of function tcpmss_mangle_packet(), the skb containing the > > TCP SYN packet is checked to see if it is containing data (on a side note, SYN > > with data is quite unusual...); if so, the packet is drastically dropped. > > The reason is explained in RR's comment to the code, I am copy/pasting the > > beginning of this function with the length check at the bottom of this mail. > > RR says that we cannot change MSS on a packet which is already carrying data > > (it would be too late): could we relax this check, seeing if the tcp payload is > > less than the MSS we are about to set? > > We probably could change that. I'm wondering though, did you actually > see this in real life? It doesn't seem like a very useful feature, > considering all the stacks supporting syn cookies. -- 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