All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Kamens <jik@kamens.brookline.ma.us>
To: lartc@vger.kernel.org
Subject: Re: [jik@kamens.brookline.ma.us: [LARTC] MSS clamping doesn't work with masquerading through VPN?]
Date: Wed, 04 Jun 2003 10:36:50 +0000	[thread overview]
Message-ID: <marc-lartc-105472307623176@msgid-missing> (raw)
In-Reply-To: <marc-lartc-105457313111583@msgid-missing>

>  From: "Peter E. Fry" <pfry-lists@redsword.com>
>  Date: Tue, 03 Jun 2003 22:33:08 -0500
>  
>    In that case I'll take a wild stab.  I'd guess that the traffic 
>  passing through the clamper is not TCP at that point -- it's either 
>  UDP or ESP, and therefore unaffected by TCP MSS clamping.  Use 
>  IPTables to log the packets passing to your remote, and see what they 
>  are.

Your guess about the cause of the problem was wrong, but your
suggestion for debugging it helped me find the solution!

I was specifying the MSS clamping with "-A FORWARD", but apparently
the packets in question were never going through the FORWARD chain
because they were being NATed.  So I added a rule to my nat table, and
now the MTU clamping works.  In other words, in addition to this:

  iptables -t filter -A FORWARD -p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu 

I now have this as well:

  iptables -t nat -A POSTROUTING -p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu 

I guess the problem I had is what comes from trying to apply a
cookbook without fully understanding it.

Question: Is it worth mentioning this in the LARTC guide in the
section that talks about MSS clamping, so that other naifs like me can
avoid this problem?

Thanks,

  Jonathan Kamens
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

      parent reply	other threads:[~2003-06-04 10:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-02 16:57 [jik@kamens.brookline.ma.us: [LARTC] MSS clamping doesn't work with masquerading through VPN?] Jonathan Kamens
2003-06-02 17:10 ` Stef Coene
2003-06-04  3:33 ` Peter E. Fry
2003-06-04 10:36 ` Jonathan Kamens [this message]

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=marc-lartc-105472307623176@msgid-missing \
    --to=jik@kamens.brookline.ma.us \
    --cc=lartc@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.