Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "John A. Sullivan III" <john.sullivan@nexusmgmt.com>
To: hamals@infinito.it
Cc: netfilter@lists.netfilter.org
Subject: Re: set up my DMZ
Date: Thu, 16 Sep 2004 12:45:15 -0400	[thread overview]
Message-ID: <1095353114.2049.138.camel@localhost> (raw)
In-Reply-To: <web-3246067@infinito.it>

On Thu, 2004-09-16 at 10:44, hamals@infinito.it wrote:
> I've a DMZ with two server, I would like to acces them 
> through my iptables firewall.
> 
> IP_serve1_DMZ =192.168.2.2
> IP_serve2_DMZ =192.168.2.3
> 
> IP_server1_public = x.x.x.52
> IP_server2_public = x.x.x.53   (x is for privacy..)
> 
> 
> My firewall has
> 
> eth1 internet interface = x.x.x.50
> eth0 dmz interface = 192.168.2.1
> 
> I need to have my server access with their pubbic IP, but 
> I've only eth1 as inteface to internet.
> 
> I read that I can't use alias in iptables rules (like 
> eth1:1 etc) , then what kind of rules have I to write to 
> solve my problem?
<snip>
If I understand you correctly, simple NAT should be your answer.

iptables -t nat -A PREROUTING -d x.x.x.52 -j DNAT --to-destination
192.168.2.2 (optionally add -i eth1 to thematch if you do are not using
split DNS for any internal neworks)

You will also need filter table rules to explicitly allow the DNAT'd
traffic to pass.
-- 
John A. Sullivan III
Chief Technology Officer
Nexus Management
+1 207-985-7880
john.sullivan@nexusmgmt.com
---
If you are interested in helping to develop a GPL enterprise class
VPN/Firewall/Security device management console, please visit
http://iscs.sourceforge.net 



  reply	other threads:[~2004-09-16 16:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-16 14:44 set up my DMZ hamals
2004-09-16 16:45 ` John A. Sullivan III [this message]
2004-09-16 17:39 ` Jason Opperisano
     [not found]   ` <1403218a0409190112632977da@mail.gmail.com>
2004-09-19  8:12     ` Fwd: " Mohamed Eldesoky
2004-09-19 13:40       ` Jason Opperisano
  -- strict thread matches above, loose matches on Subject: below --
2004-09-17  9:37 hamals
2004-09-17 11:13 ` Jason Opperisano

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=1095353114.2049.138.camel@localhost \
    --to=john.sullivan@nexusmgmt.com \
    --cc=hamals@infinito.it \
    --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