From: "Andrés Suárez" <webmaster@colservers.com>
To: netfilter@lists.netfilter.org
Subject: nat problems
Date: Tue, 5 Nov 2002 01:03:26 -0500 [thread overview]
Message-ID: <200211050103.26775.webmaster@colservers.com> (raw)
Hi:
I'm new to this list, and I have a problem that I don't know if is solved yet,
but I really need help.
I have a linux machine, with one public IP address, running dns, www, smtp,
and other services. I have some domains hosted on this machine. Those domains
have the same IP, because I have only one. That is working fine, I can see
all of my domains, send mails from and to my machine. Thouse domains are
visible to and from the internet.
My problem begins here. I want to host one of this domains on other computer,
inside my local network. This computer have a private IP.
I create a rule on my iptable, that change the destination address for that
domain:
iptables -t nat -A PREROUTING -s 0/0 -d mydomain.com -i eth0 -p tcp --dport 80
-j DNAT --to 10.0.0.2
eth0 is the ethernet card that is connected to the internet. mydomain.com is
the domain that I want to host on the local machine wich have the local ip
10.0.0.2
That make that all the traffic on the port 80, goes to the 10.0.0.2 ip, and
the other domains, on the machine connected to the internet, goes to that ip
too, and I want ONLY that domain redirect to the private network, to make a
some kind of dedicated server, using one public ip, and some virtual servers
on the main maiche (wich is connected to the internet and have the public
ip).
Thanks,
Andres Suarez
Webmaster
http://www.colservers.com
next reply other threads:[~2002-11-05 6:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-05 6:03 Andrés Suárez [this message]
2002-11-05 7:08 ` nat problems Bjørn Ruberg
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=200211050103.26775.webmaster@colservers.com \
--to=webmaster@colservers.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