Re: Inline firewalls vs. Inline firewalls "spaced out"

From: Devdas Bhagat (devdas@worldgatein.net)
Date: 07/23/01


From: Devdas Bhagat <devdas@worldgatein.net>
To: "Bartel, Matt" <Matt.Bartel@qg.com>, "'security-basics@securityfocus.com'" <security-basics@securityfocus.com>
Subject: Re: Inline firewalls vs. Inline firewalls "spaced out"
Date: Mon, 23 Jul 2001 11:22:20 +0530
Message-Id: <01072311335203.28086@office.interoffice>

On Fri, 20 Jul 2001, Bartel, Matt spewed into the ether:
> Hello.
>
> After reviewing the long discussion on suggestions for the best way to
> network webservers, db servers and an internal network, I have a question:
>
> Many people suggested the following setup (perhaps with slight variations):
> Internet<->Firewall1<->Web DMZ<->Firewall2<->DB DMZ<->Firewall3<->Internal
> Network
>
> Why wouldn't you just do the following?:
> Internet<->Firewall1 from Vendor A<->Firewall2 from Vendor B<->Firewall3
> from Vendor C, just to be psycho<->Web DMZ, DB DMZ and Internal Network
Your webserver is directly exposed to the public. You don't want your
DB exposed directly to the public, but only accessible to your
web-server. You internal network should only be able to talk outwards,
not the world to the internal network.
These are the minimal design considerations from the security policy in
the first design.

Now, consider what happens if your webserver is compromised. In the
first case, the attacker has only restricted access to your database.
To get more valuable data, the attacker has now to compromise your
second firewall. and to actually attack your internnal network where
your most valuable data is, a third firewall has to be compromised.

In the second design, the webserver compromise allows full access to
the DB and the internal network. Not what we want. Your network is only
as strong as its weakest link, and if you put the weak spots close to
the strong ones, you weaken the strong ones as well.

> Most people stated the reason for using two FWs was in the hope that if one
> of the FWs is exploited that the other (or, the other two) will not fall
> prey to the same attack. This setup, with two FWs "inline" provides even
> greater security to your web boxes than the first design. Granted, it will
> slow your website since all requests must now run through two FWs (or
> three)...If security was this large of an issue, though, you would probably
> go for the much enhanced security over the added marginal delay, no?
No, the second design is flawed in that it creates an illusion of
security. A firewall protects everything behind it. You put in multiple
layers of protection between vulnerable services. In your second
design, port 80 is still open to the world, and if that is compromised,
you lose everything. In the first case, you lose a web server, but not
the database whereas in the second case, you are gambling everything on
port 80 being secure.

> You could, in this instance, let the webserver(s) and
> db server(s) talk freely, since you are screwed if someone gets back
> there anyway.
Thats the whole point. With properly designed multiple layers of
security, you can lose a sub-system of your network without major data
loss. You buy time to find and fix vulnerabilities in the first case,
in the second, you have no such luxury.

Devdas Bhagat

--
Just as I cannot remember any time when I could not read and write, I cannot
remember any time when I did not exercise my imagination in daydreams about
women.
		-- George Bernard Shaw



Relevant Pages

  • Re: Firewall etc
    ... hatred of any 3rd party firewalls? ... security concept which is broken already by design. ... If you ask me, I'm saying the designers of the MS firewall, ... different and builds on the overall security enhancements of the OS ...
    (microsoft.public.windows.vista.security)
  • Re: Exchange server in DMZ, not FE server. Is this ever ok?
    ... It will turn out that it doesn't add value in terms of security ... If I hear you as saying having a firewall present is without value, ... NICs - one for the internal network, and the other for the DMZ. ...
    (microsoft.public.security)
  • Re: [fw-wiz] How should an Internet connection/firewall be designed?
    ... firewall and the border router? ... management costs and may actually decrease security and reliability. ... I believe all added complexity increases management costs ... not having a detected break-in to the internal network is ...
    (Firewall-Wizards)
  • RE: Vulnerability analysis tools
    ... Yes definitively you should put a real Firewall before your ... but I wouldn't bet my right hand on his security and his packet ... 1- A web server hosted at an IDC ... internal network. ...
    (Security-Basics)
  • hardware firewall vs software firewall
    ... I've long been a believer that a hardware firewall with a corresponding ... private IPs inside. ... McAfee Internet Security Suite or Panda Platinum Security employed for ... internal network secure? ...
    (comp.security.firewalls)