Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Grant Taylor <gtaylor@riverviewtech.net>
To: Mail List - Netfilter <netfilter@vger.kernel.org>
Subject: Re: forward/proxy/something one external IP to an other
Date: Sun, 28 Sep 2008 13:09:49 -0500	[thread overview]
Message-ID: <48DFC86D.4020402@riverviewtech.net> (raw)
In-Reply-To: <48DD6F84.9070002@standarduniversal.com.au>

On 9/26/2008 6:25 PM, Brian Austin - Standard Universal wrote:
> I think like this...
> 
> iptables -t nat    -A PREROUTING -d 192.168.19.253 -i eth19 -p tcp 
> --dport 993 -j DNAT --to-destination 192.168.41.5:993
> 
> iptables -t nat -A  POSTROUTING -d 192.168.41.5 -j MASQUERADE

Yep, that's the idea.

You may also need to allow for the forwarded traffic in your 
filter:FORWARD chain, depending on how secure you have it.



Grant. . . .

      reply	other threads:[~2008-09-28 18:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-26 16:50 forward/proxy/something one external IP to an other Jan Agermose
2008-09-26 18:42 ` Grant Taylor
2008-09-26 23:25   ` Brian Austin - Standard Universal
2008-09-28 18:09     ` Grant Taylor [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=48DFC86D.4020402@riverviewtech.net \
    --to=gtaylor@riverviewtech.net \
    --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