Linux Netfilter discussions
 help / color / mirror / Atom feed
From: leolistas@solucoesip.net
To: netfilter@lists.netfilter.org, bwh@net-safe.co.kr
Subject: RE: TCM MSS control over OUTPUT chain
Date: Sat,  3 May 2003 09:07:16 -0300	[thread overview]
Message-ID: <1051963636.3eb3b0f4a3a96@www.solucoesip.net> (raw)
In-Reply-To: <000001c31165$b8cfc8a0$100aa8c0@bwhwangnotepc>



   Houston, we have a problem !! Forwarded packets will NEVER reach OUTPUT 
chain. OUTPUT is only reached by locally generated packets and INPUT will 
only be reached by locally destinated packets. If the machine is 'routing' 
that packet, no matter if it will be NATed or not, it will never reach 
OUTPUT.

   Why cant you do this in FORWARD chain ? You should notice that MSS is 
not a final rule, I mean, you can use this as the very first rule in 
FORWARD chain. MSS will be mangled and other rules WILL be parsed. TCPMSS 
is different from ACCEPT/DROP/REJECT which are final rules, that means, no 
further rule processing will occur.

   I've this kind of configuration running in SEVERAL machines which act 
as gateways for their networks and it works just fine !

iptables -A FORWARD -i eth0 -o eth1 -p tcp --tcp-flags SYN,RST SYN -j 
TCPMSS --set-mss 1400


   Sincerily,
   Leonardo Rodrigues


Citando "Hwang, Byoung Woo" <bwh@net-safe.co.kr>:

> Hi,
> The machine where I want to try to control the size of TCP MSS
> is a gateway. eth0 is connected to the internal lan which use
> virtual IPs and eth1 is connected to ADSL modem and uses PPPOE.
> After the command "iptables -A OUTPUT -p tcp --tcp-flags SYN,RST SYN -j
> TCPMSS --set-mss 1400"
> packets from gateway itself to outside are controlled on TCP MSS size
> but
> packets from Internal LAN to Internet which are NATed by Masquerading
> are
> not controlled on TCP MSS size.
> I have a reason why I cannot control on FORWARD chain.
> 
> Please, help
> 
> Reguards,




      parent reply	other threads:[~2003-05-03 12:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-03  2:36 TCM MSS control over OUTPUT chain Hwang, Byoung Woo
2003-05-03  5:31 ` Julian Gomez
2003-05-03 11:18   ` Hwang, Byoung Woo
2003-05-03 11:36     ` Cedric Blancher
2003-05-03 12:07     ` leolistas [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=1051963636.3eb3b0f4a3a96@www.solucoesip.net \
    --to=leolistas@solucoesip.net \
    --cc=bwh@net-safe.co.kr \
    --cc=netfilter@lists.netfilter.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox