From: "Herbert G. Fischer" <manager@trama.com>
To: NetFilter Users <netfilter@lists.netfilter.org>
Subject: External Resolved IPs
Date: Mon, 16 Jun 2003 18:00:48 -0300 [thread overview]
Message-ID: <003001c3344a$5d220240$093010ac@power> (raw)
Hi,
I have a problem here, that maybe I can solve using DNS, but this can be
very bad and ugly
for me to maintain.
I have a internal network that uses a external DNS to solve addresses. I
also have some
servers in this internal network that can be accessed from outside via
aliases on NAT/FW
redirecting some ports to internal servers.
My problem is that, when I try to connect to a internal server, using the
external and real
IP, I cannot because my FW/NAT appears to be confused or misconfigured.
For example:
Internal Network: 172.16.48.0/24
My IP: 172.16.48.10
Server Internal IP: 172.16.48.20
* Both are on the same network
Server External IP: 200.180.180.20 (IP alias on FW/NAT machine, that
redirects to 172.16.48.20)
DNS name of Server: server.domain.com, points to 200.180.180.20
When I try to connect into server.domain.com from internal machines, DNS
resolves the external
IP and the connection to the real IP does not complete, since the packet
goes "out" of my network
and must "enter" again.
Here is a sample on how my iptables script is configured:
====================================================================
# server
iptables -t nat -A POSTROUTING -s 172.16.48.20 -j SNAT --to-source
200.180.180.20
iptables -t nat -A PREROUTING -s 0/0 -d 200.180.180.20 -j
DNAT --to-destination 172.16.48.20
# NAT for the rest of the world
iptables -t nat -A POSTROUTING -o eth1 -s 172.16.48.0/24 -j SNAT --to-source
200.180.180.22
=====================================================================
I don't know how to better explain my problem... I hope someone understood
that...
Any idea on this ?
Thanks...
Herbert
next reply other threads:[~2003-06-16 21:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-16 21:00 Herbert G. Fischer [this message]
2003-06-16 22:33 ` External Resolved IPs Joel Newkirk
2003-06-17 15:46 ` Herbert G. Fischer
-- strict thread matches above, loose matches on Subject: below --
2003-06-17 3:59 Deshwal Chand
2003-06-17 4:40 Deshwal Chand
2003-06-17 5:33 Deshwal Chand
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='003001c3344a$5d220240$093010ac@power' \
--to=manager@trama.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