Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Ramin Dousti <ramin@cannon.eng.us.uu.net>
To: Michael <freeware@adsl-209-204-165-151.sonic.net>
Cc: netfilter@lists.netfilter.org
Subject: Re: netfilter resets TCP conversation that was DNATed from the local machine to another
Date: Sun, 29 Jun 2003 22:01:52 -0400	[thread overview]
Message-ID: <20030630020152.GA27602@cannon.eng.us.uu.net> (raw)
In-Reply-To: <3EFD10A2.6020807@adsl-209-204-165-151.sonic.net>

On Fri, Jun 27, 2003 at 08:50:58PM -0700, Michael wrote:

> Dear netfilter gods,
> 
> I have a configuration, so:
> 
> /------------\ .0.2     .{0,1}.1 /----------\ 1.2.3.4  (          )
> | Web server |-----+-------------| firewall |---------(  Internet  )
> \------------/     |        eth0 |  Squid   | eth1     (          )
>                    |             \----------/
> /---------\ .1.2   |
> | browser |--------/
> \---------/
> 
> - The 192.168.{0,1}. subnets run on the same wire.
> - Port 80 on the public i/f is DNATed to the internal Web server.
> 
> The firewall is running Squid to proxy for 192.168.1. clients, and it 
> works fine *except* when the target server resolves to a public IP on 
> eth1.  When that happens, I see the client-to-Squid communication go OK, 
> then Squid send a SYN (from .0.1) to .0.2:80, .0.2 sends a SYN ACK,... 
> but then netfilter spontaneously issues a RST to .0.2:80 from another 
> port (i.e., not the one that Squid was using)!

No idea why this RST is being sent (might have to do with your rule set or
more possibly the internals of squid) but the fact that you say the RST
sending port is not the same as the initiating SYN port should not break
anything. Can you confirm this?

Ramin

> I have no reject-with-tcp-reset lines in my tables.
> 
> What up?
> 
> 
> Squid really doesn't belong on a firewall, but I'm curious to resolve 
> this mystery first.
> 


  parent reply	other threads:[~2003-06-30  2:01 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-28  3:50 netfilter resets TCP conversation that was DNATed from the local machine to another Michael
2003-06-29 21:55 ` Arnt Karlsen
2003-06-30  2:01 ` Ramin Dousti [this message]
2003-06-30  2:22   ` Michael
2003-06-30  5:12     ` Alistair Tonner
2003-06-30 14:29     ` Ramin Dousti
2003-06-30 14:44       ` Ray Leach
2003-06-30 14:52         ` Ramin Dousti
2003-06-30 20:07       ` Michael
2003-07-01  6:00         ` Alistair Tonner
2003-07-01 14:34           ` Ramin Dousti
2003-07-01 16:24           ` Michael
     [not found]             ` <200307020206.13952.Alistair@nerdnet.ca>
2003-07-02 21:39               ` Michael

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=20030630020152.GA27602@cannon.eng.us.uu.net \
    --to=ramin@cannon.eng.us.uu.net \
    --cc=freeware@adsl-209-204-165-151.sonic.net \
    --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