Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "\"José R. \\\"Xous\\\" Negreira\"" <xous@xouslab.com.ar>
To: netfilter@lists.netfilter.org
Subject: Re: DMZ howto
Date: Thu, 22 Sep 2005 23:47:36 -0300	[thread overview]
Message-ID: <43336CC8.3060409@xouslab.com.ar> (raw)
In-Reply-To: <BAY102-F29D9416051B9CA35CFD107AE970@phx.gbl>

Hi,

First of all, technically and strictly speaking...a DMZ is not (always) 
a subnet. A DMZ is a independent network with a completely different IP 
ranges.
you can have an internal network of 192.168.1.0/24 network, and a DMZ 
10.1.1.0/24, just to say some example....
Possible question: But...may it be a subnet?? Yes! of course...but it's 
not a must!


Your question:
My  ISP assigns me  a dynamic ip , therefore, is that a limitation
that could not allow me to develop the dmz subnet ?

short answer:
No, there's no limitation, AFAIK

long answer:
So now you have some doubts about the IP assigments huh?. Well...first 
of all, put the DMZ concept aside. Just to clarify concepts...I tell you 
more, it shouldn't bother too much this!

You want to publish a web server, and the problem is how people outside 
reach to your web server.
If you have a static IP, there's no problem. People will reach you by 
typing http://xx.xx.xx.xx in the browser, being the xx.xx.. your IP 
address. But...that means that you have a web server INSTALLED on the 
firewall.... too bad. You want to have it on another machine, right?

You will have a public IP, it doesn't matter if it's static or dynamic. 
In both cases, you'll want to use FORWARDING, and NAT (Network Address 
Translation), and that's now actually your real problem. What you do is 
simply 'touching' each packet header that traverses on the firewall, and 
redirecting wherever *you* want.

Suppose that you have not one machine, but 3 webservers, but... Oh My 
god, you have only one IP!!  Well, using NAT, you can (for example) let 
people access to each webserver by typing:
http://xx.xx.xx.xx:80 (redirect to serverA, port 80)
http://xx.xx.xx.xx:81 (redirect to serverB, port 80)
http://xx.xx.xx.xx:82 (redirect to serverC, port 80)

How to do NAT? The answer is on the question: (Recommended reading - NAT 
HOWTO)

So, as you can see, your network(s) on the outside, is reduced to only 
one host (the firewall), behind it, it doesn't matter if it is just the 
firewall itself, a small network, one small network, one big network, 
or..... two or more *networks* (yes, you can return DMZ concept 
here!)!!. From the outside, it's transparent!!

Well, re-reading this answer, it seemed to me like a big "concept 
salad", but... tryied a shot, hope it helped a bit! :)
And good luck!

Regards

-- 
_____________________________________________
Jose R. "Xous" Negreira.
PortalJAVA.com.ar - http://www.portalJAVA.com.ar <--  ** new!!! ** :P
XousLAB - http://www.xouslab.com
iptableslinux - http://www.iptableslinux.com
RDP - http://www.relacionesdepareja.com.ar



P theodorou escribió:

>
>
>
> Thank all of you for the replies,
>
> i have now a good understanding of
> the subject but before proceed  into building the dmz subnet i need
> to ask something :
>
> My  ISP assigns me  a dynamic ip , therefore, is that a limitation
> that could not allow me to develop the dmz subnet ?
>
> Is that correct or inacurrate ? Visitors shall need to type my ip to
> access my webpage,  but what im interesting is the development
> of the firewall itselfin terms of securing a network . It will never be
> used for real casesit is just for me to understand.
> the script that i have suggesetd uses static ip
>
> # 1.1 Internet Configuration.
> #
> INET_IP="194.236.50.152"
> HTTP_IP="194.236.50.153"
> DNS_IP="194.236.50.154"
> INET_IFACE="eth0"
> So,
> Can i develop dmz subnet without static ip   and dmz'ed services
> to be accessed on the Internet?
>
> Regards
>
>
>





  reply	other threads:[~2005-09-23  2:47 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-22 23:09 DMZ howto P theodorou
2005-09-23  2:47 ` "José R. \"Xous\" Negreira" [this message]
     [not found] <MC4-F31k4xAG7GDYX8Q002d325b@mc4-f31.hotmail.com>
2005-09-23 16:19 ` P theodorou
  -- strict thread matches above, loose matches on Subject: below --
2005-09-23 16:03 P theodorou
2005-09-23 16:14 ` Ruben Cardenal
2005-09-23 15:17 P theodorou
2005-09-23 16:00 ` Jörg Harmuth
2005-09-23 16:24   ` Cedric Blancher
2005-09-23 16:02 ` /dev/rob0
2005-09-23 16:08 ` XouS - Jose R Negreira
2005-09-22 22:35 P theodorou
2005-09-22 17:21 Derick Anderson
2005-09-22 12:50 P theodorou
2005-09-22 20:11 ` Michael Gale
2005-09-22 20:16   ` Michael Gale

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=43336CC8.3060409@xouslab.com.ar \
    --to=xous@xouslab.com.ar \
    --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