pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Neil Toronto <NToronto@Dentrix.com>
To: pgsql-admin@postgresql.org
Subject: RE: Firewall setup
Date: Wed, 5 Jul 2000 15:12:41 -0600
Message-ID: <14A4DCD7F3CED3118749009027DCBFE49D6964@smtp.stsrvcs.com> (raw)

On the other hand, you may want to secure things a little bit more.  Make
yourself an ultra-locked-down firewall (like a Linux firewall doing nothing
but IP masquerade - very nice) that disallows all incoming packets from its
routable IP, except for those destined for port 80.  Forward every
connection destined for port 80 on your firewall to port 80 on your web
server, which would be located inside the firewall along with your database
server.

Voila!  You have yourself an ultra-secure site, as long as you properly lock
down your firewall (turn off telnet, ftp, etc.).

If you need to access any other services from the outside, you can usually
just forward the correct ports - unless you're doing FTP or some other crAZy
protocol.

Neil

-----Original Message-----

Very simple, you only allow packets destined for the machine with
the db server at the dbserver port _across_ the firewall (from the
outside) that originated from the web server's IP address.


--
Close your eyes.  Now forget what you see.  What do you feel? --
My heart. --  Come here. --  Your heart. --  See?  We're exactly the same.

	Jon Smith -- Senior Math Major @ Purdue

On Tue, 4 Jul 2000, Derek Del Conte wrote:

> Hi,
> 
> 	I have a PHP4 + PostgreSQL site that I have been working on for
several
> weeks now.  We're getting ready to put up the production site very
shortly.
> I would like to keep the database separate from the web server.
PostgreSQL
> should be located behind the firewall and the web server outside.  How do
I
> work that with the firewall?  If I open up the database port does that
mean
> I put my database at risk?  Any ideas?
> 
> 
> Derek Del Conte - derek@gambitdesign.com
> 
> gambitdesign.com provides all of your networking needs.
> 
> 



view thread (5+ messages)  latest in thread

Message-ID: <14A4DCD7F3CED3118749009027DCBFE49D6964@smtp.stsrvcs.com>
Permalink:  ../14A4DCD7F3CED3118749009027DCBFE49D6964@smtp.stsrvcs.com/
Also on:    postgresql.org/message-id/14A4DCD7F3CED3118749009027DCBFE49D6964@smtp.stsrvcs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: NToronto@Dentrix.com
  Subject: Re: Firewall setup
  In-Reply-To: <14A4DCD7F3CED3118749009027DCBFE49D6964@smtp.stsrvcs.com>
  References: <14A4DCD7F3CED3118749009027DCBFE49D6964@smtp.stsrvcs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox