From: "Tiziano Müller" <tiziano@ifi.unizh.ch>
To: netfilter@lists.netfilter.org
Subject: 1:1 NAT, DMZ and Masq
Date: Tue, 18 Feb 2003 22:00:46 +0100 (CET) [thread overview]
Message-ID: <1045602046.3e529efe1672f@mail.2wire.ch> (raw)
Hi guys
I apologize for my first message, it was crap.
sorry.
Now, I\'ve a little problem and no idea how to
solve it, I hope, someone could give me a hint.
Situation:
Internet -- Firewall 1 -- DMZ -- Firewall 2 -- LAN
|-- Webserver = WWW
|-- FTP
|-- DNS
now, for the Server in the DMZ, I wanted to use a 1:1
NAT, for the hole rest Masq. So did I the follow (for the WWW)
on the Linux-Router:
10.0.0.4 = DMZ IP WWW; x.x.x.165 = Official IP WWW
ifconfig eth1:1:0 add x.x.x.165
(as described in the NAT HowTo, necessary for the ARP-Packets)
iptables -t nat -A PREROUTING -d x.x.x.165 -j DNAT --to 10.0.0.4
iptables -t nat -A POSTROUTING -s 10.0.0.4 -j SNAT --to x.x.x.165
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
So far it works well from the inside. From outside I can only ping
the WWW and connect with SSH, but not connect via FTP or WWW (the
services are up and running).
Has someone an idea, why this happens? Or a better idea to do this?
Thanks very much in advance
Tiziano
next reply other threads:[~2003-02-18 21:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-18 21:00 Tiziano Müller [this message]
2003-02-18 21:43 ` 1:1 NAT, DMZ and Masq Aldo S. Lagana
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=1045602046.3e529efe1672f@mail.2wire.ch \
--to=tiziano@ifi.unizh.ch \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.