DMZ routing issues - HELP PLEASE

This is a discussion on DMZ routing issues - HELP PLEASE within the Linux Security forums, part of the System Security and Security Related category; I have set up two firewalls and created a DMZ. The layout is as follows: LAN ====> Firewall1 =====>DMZ =====&...


Go Back   Usenet Forums > System Security and Security Related > Linux Security

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-03-2005
news.uunet.co.za
 
Posts: n/a
Default DMZ routing issues - HELP PLEASE

I have set up two firewalls and created a DMZ. The layout is as follows:

LAN ====> Firewall1 =====>DMZ =====>Firewall2 =====>Internet

The LAN is on a 10.0.0.0/24 private range
The DMZ is on a 192.168.100.0/24 private range

From the LAN I can ping the internal NIC of firewall2.
From the DMZ I can browse the Internet.

Machines in the LAN cannot see anything past the internal NIC of firewall2.
I suspect that I need to set up routes on firewall2 to point back to the
LAN.

I have added the following route on firewall02:

route add -net 10.0.0.0 netmask 255.255.255.0 dev eth0

This does not seem to help. Where am I going wrong?


Reply With Quote
  #2 (permalink)  
Old 04-03-2005
news.uunet.co.za
 
Posts: n/a
Default Re: DMZ routing issues - HELP PLEASE

By bypassing the second firewall, this works:
LAN ======> Firewall1======>Internet

By connecting to the DMZ, this works:
DMZ======>Firewall2======>Internet

But when I put it all together, it does NOT work.
LAN ======> Firewall1======>DMZ======>Firewall2======>Internet

I believe that there is a route missing?



"Davide Bianchi" <davideyeahsure@onlyforfun.net> wrote in message
news:slrnd4vmg2.190.davideyeahsure@fogg.onlyforfun .net...
> On 2005-04-03, news.uunet.co.za <pjtdownes@hotmail.com> wrote:
> > I suspect that I need to set up routes on firewall2 to point back to the
> > LAN.

>
> I suspect that you misconfigured your firewall, so all the connection are
> dropped by your second firewall.
>
> > Where am I going wrong?

>
> In not investigating the problem. Start by using a packet inspector
> on the external firewall to see if packests sent by your lan are routed
> to the internet and if you get an answer, if you do, see which answer
> and follow it to wherever is routed to.
>
> Davide
>
> --
> C:\WINDOWS>DEL *.*
> I feel better now.



Reply With Quote
  #3 (permalink)  
Old 04-03-2005
prg
 
Posts: n/a
Default Re: DMZ routing issues - HELP PLEASE


news.uunet.co.za wrote:

[please, don't top post or edit/drop info. makes answering a pain]

[re-arranged]
>
>
> "Davide Bianchi" <davideyeahsure@onlyforfun.net> wrote in message
> news:slrnd4vmg2.190.davideyeahsure@fogg.onlyforfun .net...
> > On 2005-04-03, news.uunet.co.za <pjtdownes@hotmail.com> wrote:
> > > I suspect that I need to set up routes on firewall2 to point back

to the
> > > LAN.


You'll need network routes for all subnets on all IS routers.

> > I suspect that you misconfigured your firewall, so all the

connection are
> > dropped by your second firewall.
> >
> > > Where am I going wrong?


Don't worry about firewalls till you have basic connectivity (ping)
working.

> > In not investigating the problem. Start by using a packet inspector
> > on the external firewall to see if packests sent by your lan are

routed
> > to the internet and if you get an answer, if you do, see which

answer
> > and follow it to wherever is routed to.


$ ping and $ traceroute (and excess brain cells;) should be all you
need to establish proper connectivity. Right now you just need to find
out _where_ your packets are being dropped.

> By bypassing the second firewall, this works:
> LAN ======> Firewall1======>Internet
>
> By connecting to the DMZ, this works:
> DMZ======>Firewall2======>Internet
>
> But when I put it all together, it does NOT work.
> LAN ======> Firewall1======>DMZ======>Firewall2======>Internet
>
> I believe that there is a route missing?


Your belief is likely (multiply) well founded ;)

If you can disconnect from the internet easily, do so.

Turn off _all_ firewalls.

Choose one host in lan and slowly, tediously get connectivity working.

$ ping the following:

127.0.0.1
local host's IP address
local host's GW router (lan nic on FW1)
DMZ nic on FW1
DMZ nic on FW2
Internet nic on FW2

Where does it fail to return?

Check $ /sbin/route -n
and confirm that there is an entry for _all_ subnets you wish to reach
(directly or indirectly) from/through this machine.

Continue nic-by-nic, machine-by-machine. Ie., get the lan host to
successfully $ ping all the way to Internet nic on FW2. Move on to FW1
and confirm $ ping to all other nic IPs, using the same tedious
process. Repeat on DMZ machine and FW2.

Once you can $ ping from anywhere to anywhere (that you desire), you
might want to connect to DMZ servers/daemons just to confirm all is
well and as expected.

If there are any glitches, you might try to $ traceroute to the IPs.

Now, you can bring up firewalls one at a time, starting at lan host,
then FW1, then DMZ, then FW2. Confirm that connectivity continues
working at each stage as it should. Now you know why disabling $ ping
(ECHO) replies out of a misguided sense of "added security" will
eventually cause grief ;)

Here is where a packet sniffer may be handy. Iptables' logs can also
be helpful if you configure/turn them on and know what you're looking
for.

Remember, that you can have only one _default_ route (normally), but
there is no reason why you cannot have multiple gateway/network routes.
It might be good to review the networking howtos and add/confirm the
needed route entries one-by-one as you are establishing connectivity.

Yes, it is tedious and a pain-in-the-arse to be so anally methodical,
but if you don't keep the number of changes (varibles) to a minimum as
you go, you can really confuse yourself -- doesn't take much for me ;)

BTW, presumably, you are NATing only at FW2 and you are not running DNS
on the lan.

hth,
prg

Reply With Quote
  #4 (permalink)  
Old 04-03-2005
Jack Masters
 
Posts: n/a
Default Re: DMZ routing issues - HELP PLEASE

news.uunet.co.za wrote:
> I have set up two firewalls and created a DMZ. The layout is as follows:
>
> LAN ====> Firewall1 =====>DMZ =====>Firewall2 =====>Internet
>
> The LAN is on a 10.0.0.0/24 private range
> The DMZ is on a 192.168.100.0/24 private range
>
> From the LAN I can ping the internal NIC of firewall2.
> From the DMZ I can browse the Internet.
>
> Machines in the LAN cannot see anything past the internal NIC of firewall2.
> I suspect that I need to set up routes on firewall2 to point back to the
> LAN.
>
> I have added the following route on firewall02:
>
> route add -net 10.0.0.0 netmask 255.255.255.0 dev eth0
>
> This does not seem to help. Where am I going wrong?
>

In not having a proxy server in the DMZ that arranges internet access
for LAN clients? I'd say that if you go through the trouble of setting
up a DMZ, you don't allow *anything* from LAN to Internet, not even
related traffic, in case someone tricks your FW into seeing something as
'related' that shouldn't be

detha
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 04:19 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0