netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Curby <curby@cur.by>
To: Aaron Clausen <mightymartianca@gmail.com>
Cc: netfilter@vger.kernel.org
Subject: Re: Redirecting Outbound Port to Internal Server
Date: Wed, 9 Jun 2010 15:16:07 -0600	[thread overview]
Message-ID: <AANLkTimU5146nsWSNdDOVRT3bdxZJC1BwHPdTeb1h3K6@mail.gmail.com> (raw)
In-Reply-To: <AANLkTilaGR9jPpybgfPataLK5v6OZTCDhJM7mbqPEuNw@mail.gmail.com>

On Wed, Jun 9, 2010 at 2:48 PM, Aaron Clausen <mightymartianca@gmail.com> wrote:
> I'm trying to sort out a way to redirect all outgoing traffic destined
> for port 8080 to an internal server.  I must be having some nasty
> brain fart because I just can't get it working.

Just to clarify, you have a router or gateway machine between the
Internet and an internal network, and all TCP connections from any
internal machine to port 8080 should be DNATed to a proxy-like
machine, also on the internal network?  If so, I think the problem is
that a single DNAT rule would cause the request to go through to the
internal proxy, but the proxy would send a reply back to the client,
which rejects it because it's expecting a reply from the router box.
Have you handled that issue?  Perhaps seeing your existing rules would
help too.  (I know this post isn't too helpful.  I'm just trying to
understand your setup and throw out a possible gotcha.)

--Mike

  parent reply	other threads:[~2010-06-09 21:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-09 20:48 Redirecting Outbound Port to Internal Server Aaron Clausen
2010-06-09 21:06 ` Jan Engelhardt
2010-06-09 21:16 ` Curby [this message]
2010-06-09 21:24   ` Grant Taylor
2010-06-09 22:43     ` Curby
2010-06-10  0:17       ` Grant Taylor

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=AANLkTimU5146nsWSNdDOVRT3bdxZJC1BwHPdTeb1h3K6@mail.gmail.com \
    --to=curby@cur.by \
    --cc=mightymartianca@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).