All of lore.kernel.org
 help / color / mirror / Atom feed
From: Emiliano Romero <emilianoromero@gmail.com>
To: netfilter@vger.kernel.org
Subject: iptables+nat+Tcp KeepAlive Problem
Date: Thu, 28 May 2009 18:19:11 -0300	[thread overview]
Message-ID: <4A1EFFCF.9030500@gmail.com> (raw)

Hi List!, I'm having some issue with iptables when I use DNAT. Using 
DNAT, when my router (iptables) gets a tcp KeepAlive Packet from remote 
site, it don't forward the tcp KeepAlive Request and responds with a TCP 
packet with ACK=1 and RST=1. So remote site thinks that there is no 
connection after some time. The problem is only with KeepAlive Packets, 
If I send normal Tcp Packets with data, they arrive to the destination I 
used in DNAT.

Any help or idea of where start looking? Iptables support Tcp KeepAlive 
redirects?

iptables version: v1.4.1.1
Kernel: 2.6.28-11-generic

iptable rule:
iptables -t nat -A PREROUTING -p tcp --dport 5555 -j DNAT 
--to-destination 192.168.1.100

Wireshark TCP Packets:
186449	11772.258110	200.49.201.26=>172.16.102.11	TCP	[TCP ZeroWindow] 
[TCP Keep-Alive] 14032 > 5555 [] Seq=10 Win=0 Len=0
188417	11835.763745	172.16.102.11=>200.49.201.26	TCP	5555 > 48538 [RST, 
ACK] Seq=1012825070 Ack=10 Win=0 Len=0


Thanks and Regards.

                 reply	other threads:[~2009-05-28 21:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4A1EFFCF.9030500@gmail.com \
    --to=emilianoromero@gmail.com \
    --cc=netfilter@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.