Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Nils Juergens <ju@isf.rwth-aachen.de>
To: "'netfilter@lists.netfilter.org'" <netfilter@lists.netfilter.org>
Subject: Re: Port forward to public IP's behind firewall
Date: Fri, 05 Sep 2003 09:04:58 +0200	[thread overview]
Message-ID: <20030905070458.GA31348@koala7> (raw)
In-Reply-To: <9AD675D1C5325D4F87D79F3EB7E539F3ABE5@postmanpat.netcall.com>

On Thu, 04.09.03, Gareth Hastings <Gareth.Hastings@netcall.com> wrote:

> firewall have public addresses. Now I would like to add a port forward rule
> that sends all incoming mail to another IP address. I am not sure what I'd
> need to do. I didn't think SNAT or DNAT were needed here as no NAT is
> happening. Anyone have any ideas? Do I need to mangle the destination
> address?

If you send packets to another IP address why exactly is that not DNAT?

Try:

iptables -t nat -A PREROUTING -p tcp -d $fw_ip --dport 25 -j DNAT --to $target:25

cya,

Nils



      reply	other threads:[~2003-09-05  7:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-04 15:30 Port forward to public IP's behind firewall Gareth Hastings
2003-09-05  7:04 ` Nils Juergens [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=20030905070458.GA31348@koala7 \
    --to=ju@isf.rwth-aachen.de \
    --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