Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Network topology

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
14 posts • Page 1 of 1
Author
Message
KermitTheFragger
n00b
n00b
Posts: 41
Joined: Fri Aug 20, 2004 2:41 pm
Location: Netherlands

Network topology

  • Quote

Post by KermitTheFragger » Mon Jun 20, 2005 8:49 am

I have a small question regarding a network topology with a DMZ and I was hoping one of you guys could help me out. This is the situation:

Yeah I know, my ASCII art is bad :)

Code: Select all

The evil outside (aka Internet)
          |
          |
    Firewall----------DMZ (Public WWW)
          |
          |
      Inside
  (DB Server)
Now its obvious that your Public WWW and Mail server reside in the DMZ. However some webapplications running on the public WWW server in the DMZ need to access a database server, which you do not want to place in the DMZ (which would make it too vunarable to attack). So you need to access the internal DB server from the DMZ.

My questions is: What is the best way to accomplish this? I guess this is a pretty standard, so there must be some standard solution for it. I just couldnt find it.

A few solutions a came with up with are:
1) Punching a small hole in your firewall, allowing the dmz server to selectivly talk to a internal DB server.
2) Physicly connect the two servers with a second ethernet card (really bad idea, i know, but i was just brain storming :) )

TIA
Top
nevynxxx
Veteran
Veteran
Posts: 1123
Joined: Wed Nov 12, 2003 1:34 pm
Location: Manchester - UK

  • Quote

Post by nevynxxx » Mon Jun 20, 2005 9:54 am

Usually you would open the ports on the firewall for the server in the DMZ to access the databse.

Depending on what sort of access you require I would also only allow that server to connect to the database in a read only fashion.

Note I wouldn't let the whole DMZ have access either, just the specific server.
My Public Key

Wanted: Instructor in the art of Bowyery
Top
think4urs11
Bodhisattva
Bodhisattva
User avatar
Posts: 6659
Joined: Wed Jun 25, 2003 9:51 pm
Location: above the cloud

  • Quote

Post by think4urs11 » Mon Jun 20, 2005 10:22 am

Annother possible way to go would be to

a) move the webserver from DMZ -> internal
b) install an reverse proxy in DMZ
c) adopt fw rules so that http(s) DMZ -> internal is allowed

HTH
T.
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Top
Lajasha
Veteran
Veteran
User avatar
Posts: 1040
Joined: Wed Mar 17, 2004 5:34 pm
Location: Vibe Central
Contact:
Contact Lajasha
Website

  • Quote

Post by Lajasha » Mon Jun 20, 2005 4:46 pm

Hrm well I'm kinda lost here as to what the problem is.

Your setup is as such:

Code: Select all

        Internet
             |
             |
             |
         Router
        (Firewall)
             |
        ---------------------
        |                   |
        |                   |
      WWW              DB Server
    (DMZ'ed)
If this is the case then the webserver would have no problem talking to the DB as it is on the same network, and as such it would have free access to each other. The firewall would have no effect as the database connections are happening behind it and not crossing it.

Hope this makes sense to you.
Come and play in my land
Top
bigfunkymo
Apprentice
Apprentice
User avatar
Posts: 237
Joined: Fri Jan 23, 2004 4:57 pm

  • Quote

Post by bigfunkymo » Mon Jun 20, 2005 7:09 pm

VPN!
[No package... Grabbing a set.]
Top
Lajasha
Veteran
Veteran
User avatar
Posts: 1040
Joined: Wed Mar 17, 2004 5:34 pm
Location: Vibe Central
Contact:
Contact Lajasha
Website

  • Quote

Post by Lajasha » Mon Jun 20, 2005 7:17 pm

why would you VPN into your own network that you are already on?
Come and play in my land
Top
think4urs11
Bodhisattva
Bodhisattva
User avatar
Posts: 6659
Joined: Wed Jun 25, 2003 9:51 pm
Location: above the cloud

  • Quote

Post by think4urs11 » Mon Jun 20, 2005 8:08 pm

@malatek: I think the OP has ha firewall box with three interfaces, one as dedicated DMZ, so the traffic will pass the firewall.

VPN internally can be needed if you need to have complete privacy for the complete traffic. Think about network sniffers and alike.
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Top
christsong84
Veteran
Veteran
User avatar
Posts: 1003
Joined: Sun Apr 06, 2003 10:04 pm
Location: GMT-8 (Spokane)

  • Quote

Post by christsong84 » Mon Jun 20, 2005 8:55 pm

another way would be install a spare NIC into the DB server and theWeb server and give then a direct line between them? :P
while(true) {self.input(sugar);} :twisted:
Top
think4urs11
Bodhisattva
Bodhisattva
User avatar
Posts: 6659
Joined: Wed Jun 25, 2003 9:51 pm
Location: above the cloud

  • Quote

Post by think4urs11 » Mon Jun 20, 2005 9:16 pm

christsong84 wrote:another way would be install a spare NIC into the DB server and theWeb server and give then a direct line between them? :P
and thereby have a direct non-firewalled connection between a DMZ host and an internal host? very bad idea...
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Top
KermitTheFragger
n00b
n00b
Posts: 41
Joined: Fri Aug 20, 2004 2:41 pm
Location: Netherlands

  • Quote

Post by KermitTheFragger » Tue Jun 21, 2005 8:02 am

Thanks for all the respones.

Sorry if i wasn't clear enough, ill try to clarify:

The Firewall has three interfaces: Outside, DMZ, Inside.

Code: Select all

The evil outside (aka Internet)
          |
          |
    Firewall----------DMZ (Public WWW)
          |
          |
      Inside
  (DB Server) 
The inside interface is shielded from the DMZ, so there is no way you can reach the inside network from the internet and the DMZ, this is good. As we can see the database server is located in the inside network. Because it contains all kinds of sensitive date (Entire ERP) which you do not want to be exposed to the internet if the server is ever h4><0r3d :). But the WWW server needs some info from the db server, prices etc.

I guess this is a pretty common problem.
Top
think4urs11
Bodhisattva
Bodhisattva
User avatar
Posts: 6659
Joined: Wed Jun 25, 2003 9:51 pm
Location: above the cloud

  • Quote

Post by think4urs11 » Tue Jun 21, 2005 9:01 am

as i said before, plus additions

a) add a 4th NIC in firewall
b) move the webserver from 'external' DMZ -> internal 'DMZ
c) install an reverse proxy in 'external' DMZ
d) move DB server (and maybe some others too) -> 'internal' DMZ
e) adopt fw rules so that http(s) 'external' DMZ -> internal 'DMZ' is allowed; adopt rules so that needed access from 'LAN' -> 'internal' DMZ is possible
f) use nonrouteable (RFC1918) addresses everywhere besides external interface
g) don't do NAT so none of the servers/clients can get out directly
h) ...

Depends on your personal level of paranoia (e.g. partial copy of DB server with just needed infos on annother machine)
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Top
KermitTheFragger
n00b
n00b
Posts: 41
Joined: Fri Aug 20, 2004 2:41 pm
Location: Netherlands

  • Quote

Post by KermitTheFragger » Tue Jun 21, 2005 9:45 am

Think4UrS11 wrote:as i said before, plus additions

a) add a 4th NIC in firewall
b) move the webserver from 'external' DMZ -> internal 'DMZ
c) install an reverse proxy in 'external' DMZ
d) move DB server (and maybe some others too) -> 'internal' DMZ
e) adopt fw rules so that http(s) 'external' DMZ -> internal 'DMZ' is allowed; adopt rules so that needed access from 'LAN' -> 'internal' DMZ is possible
f) use nonrouteable (RFC1918) addresses everywhere besides external interface
g) don't do NAT so none of the servers/clients can get out directly
h) ...
Option A would be the nicest I think, but for simplicities sake, ill go for options D and E for now.
Think4UrS11 wrote: Depends on your personal level of paranoia (e.g. partial copy of DB server with just needed infos on annother machine)
Are you trying to kill me? Yes I think you are, I can see it clearly now :D

I dont think a partial copy of the DB server is practical, you need to sync it, etc, etc.
Top
sedorox
Apprentice
Apprentice
User avatar
Posts: 207
Joined: Fri Feb 13, 2004 2:17 am

  • Quote

Post by sedorox » Wed Jun 22, 2005 3:29 pm

I think the best way to do this would be to add a nic to the DB and Web server, and assign them a unused rfc1918 address (so if your using 10.x, use 172.17/16) Then just point the access over that, and since the firewall doesn't know about it, and its direct between then two. The other option is (I'm assuming its a linux/bsd firewall since you have several ports, or a PIX or something) just add a firewall rule to allow the one port from the dmz to the internal, but not from external to internal.
Top
nevynxxx
Veteran
Veteran
Posts: 1123
Joined: Wed Nov 12, 2003 1:34 pm
Location: Manchester - UK

  • Quote

Post by nevynxxx » Thu Jun 23, 2005 12:27 pm

sedorox wrote:I think the best way to do this would be to add a nic to the DB and Web server, and assign them a unused rfc1918 address (so if your using 10.x, use 172.17/16) Then just point the access over that, and since the firewall doesn't know about it, and its direct between then two. The other option is (I'm assuming its a linux/bsd firewall since you have several ports, or a PIX or something) just add a firewall rule to allow the one port from the dmz to the internal, but not from external to internal.
The problemn with the direct link being, if they compromise the DMZZ machine, they have non-firewalled access to the internal network.

Hence the posts above saying do not do this!

The other simple way as you say is to allow the port the web server needs to connect to the database through the firewall to/from the DMZ only.

At the same time, making access from that IP read only if possible.
My Public Key

Wanted: Instructor in the art of Bowyery
Top
Post Reply

14 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy