All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pascal Hambourg <pascal@plouf.fr.eu.org>
To: Vijay Viswanathan <vijay.vishy@gmail.com>
Cc: Netfilter Users Mailing list <netfilter@vger.kernel.org>
Subject: Re: eth - NAT - Bridge - veth
Date: Fri, 27 Jun 2014 23:38:35 +0200	[thread overview]
Message-ID: <53ADE45B.9000406@plouf.fr.eu.org> (raw)
In-Reply-To: <CALPbv189=OY0wTGYE7G5QCQ2JwtBA=VdqFYyDBH69fveHwaAfw@mail.gmail.com>

Vijay Viswanathan a écrit :
> adding -m state --state NEW,ESTABLISHED seems to do the trick.
> 
> iptables -t nat -A PREROUTING -i eth1 -p tcp -d 10.4.38.182 --dport
> 2300 -m state --state NEW,ESTABLISHED -j DNAT --to 192.168.10.2:2300

Not in any way. The chains of the nat table see only packets in the NEW
state so this match is completely superflous. Besides, normal TCP
packets have the NEW or ESTABLISHED state.

  reply	other threads:[~2014-06-27 21:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-27  4:51 eth - NAT - Bridge - veth Vijay Viswanathan
2014-06-27 10:44 ` Pascal Hambourg
2014-06-27 15:54   ` Vijay Viswanathan
2014-06-27 17:51     ` Pascal Hambourg
2014-06-27 18:29       ` Vijay Viswanathan
2014-06-27 19:18         ` Pascal Hambourg
2014-06-27 20:08           ` Vijay Viswanathan
2014-06-27 20:23             ` Vijay Viswanathan
2014-06-27 21:38               ` Pascal Hambourg [this message]
2014-06-27 23:09                 ` Vijay Viswanathan
2014-06-27 20:39             ` Neal Murphy

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=53ADE45B.9000406@plouf.fr.eu.org \
    --to=pascal@plouf.fr.eu.org \
    --cc=netfilter@vger.kernel.org \
    --cc=vijay.vishy@gmail.com \
    /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.