From: "John A. Sullivan III" <john.sullivan@nexusmgmt.com>
To: black@arbbs.net
Cc: netfilter@lists.netfilter.org
Subject: Re: Destination Nat
Date: Fri, 28 May 2004 21:56:08 -0400 [thread overview]
Message-ID: <1085795768.14775.2.camel@localhost> (raw)
In-Reply-To: <40b74a21.49.47a3.1468065555@arbbs.net>
If I understand you correctly and remember your original rule, then I
think you have it backward. If you are changing the destination, you
probably want to change it from the public address to the private
address:
iptables -t nat -A PREROUTING -d 5.6.7.8 -p 6 --dport 8080 -j DNAT
--to-destination 192.168.x.x:80
Remember to ensure that traffic to 192.168.x.x:80 is allowed on the
FORWARD chain and that the NAT gateway responds to ARPs for 5.6.7.8 -
John
On Fri, 2004-05-28 at 10:18, black@arbbs.net wrote:
> would it be 8080 or 80? the web server has a static ip
> address
> on the inside 192.168.x.x
>
> > That will direct all 80 /tcp packets for all addresses the
> > station listens on to 5.6.7.8:8080? Is that what you want
> > or do you want to redirect packets with a specific
> > destination address? If the public Internet address is not
> > an IP address bound to the NAT gateway, then you will need
> > to add it, typically: ip address add 1.1.1.2/24 dev eth0
> > brd +
>
> john
--
Open Source Development Corporation
Financially Sustainable open source development
http://www.opensourcedevelopmentcorp.com
next prev parent reply other threads:[~2004-05-29 1:56 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-28 14:18 Destination Nat black
2004-05-29 1:56 ` John A. Sullivan III [this message]
2004-06-02 3:38 ` John Black
2004-06-02 11:19 ` John A. Sullivan III
2004-06-02 11:53 ` John Black
2004-06-02 15:13 ` Alistair Tonner
-- strict thread matches above, loose matches on Subject: below --
2004-06-04 16:14 black
2004-06-04 16:44 ` John A. Sullivan III
2004-06-04 15:45 black
2004-06-04 16:14 ` John A. Sullivan III
2004-06-02 15:20 Piszcz, Justin Michael
2004-05-28 13:46 black
2004-05-28 14:18 ` John A. Sullivan III
2004-01-28 20:45 Destination NAT Ale Zeta
2004-01-28 14:21 Alejandro Zaidel
2004-01-29 9:13 ` Antony Stone
2004-01-29 9:47 ` Ray Leach
2004-01-29 9:46 ` Antony Stone
2003-03-14 11:01 Sathi
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=1085795768.14775.2.camel@localhost \
--to=john.sullivan@nexusmgmt.com \
--cc=black@arbbs.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