From: Paulo Andre <pandre@darkstar.nom.za>
To: "Hélio Dubeux" <hdubeux@hotmail.com>
Cc: netfilter <netfilter@lists.netfilter.org>
Subject: Re: Redirect my internat web server
Date: 20 Jan 2003 09:01:57 +0200 [thread overview]
Message-ID: <1043046117.8950.41.camel@bigblue> (raw)
In-Reply-To: <F60TcZJ8R6BDH5oJTE10000304c@hotmail.com>
On Fri, 2003-01-17 at 20:06, Hélio Dubeux wrote:
> I have a machine with squid + nat with an valid ip (1.1.1.1) and a false ip
> (2.2.2.2) and running apache on port 80, i want to publish another apache
> server on port 8000 in a machine with ip (3.3.3.3). how can i do this
> redirect? I´ve already used:
>
> iptables -A PREROUTING -t nat -p tcp -d 1.1.1.1 --dport 8000 -j DNAT -to
> 3.3.3.3:8000
>
> My clients type on their browser http://1.1.1.1:8000 and i wanto to show the
> content of 3.3.3.3:8000
>
> Anyone can plz help me?
>
The PREROUTING seems fine, just remember to also add a FORWARD rule to
allow the packet to be 'forwarded' to 3.3.3.3
Paulo
prev parent reply other threads:[~2003-01-20 7:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-17 18:06 Redirect my internat web server Hélio Dubeux
2003-01-18 16:23 ` Andrea Rossato
2003-01-20 7:01 ` Paulo Andre [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=1043046117.8950.41.camel@bigblue \
--to=pandre@darkstar.nom.za \
--cc=hdubeux@hotmail.com \
--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