Skip site navigation (1) Skip section navigation (2)

Couple of PostgreSQL Questions

From: "Richard Zimmerman" <Richard(at)knbpower(dot)com>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: Couple of PostgreSQL Questions
Date: 2001-04-05 15:36:44
Message-ID: 011401c0bde6$38042f60$ (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
Good day! I am new to this list and PostgeSQL for that matter. I've messed
with it (and php) a little and really like what I see so far. In the past
several months I've also been working on Linux system security.

Question 1:

   My Linux system serves as the "Internet" server in my office and also
hosts the PostgreSQL database. I want to "hide" PostgreSQL from my external
network card (eth1).

eth0 = (Internal)
eth1 = (external)

In the config file /var/lib/pgsql/data/pg_hba.conf I have given it the

# By default, allow anything over UNIX domain sockets and localhost.

local        all                                            trust
host         all     reject
host         all     crypt
host         all       crypt

   As a stop gap measure, I have also setup firewall rules (ipchains) to
block connections coming from my External Network card (eth1) to port 5432.
Is there a better way to config PostgreSQL so that it NEVER show up on an
Nmap scan of the External Network card?

Question 2:

   I have been reading in the doc's about the PostgreSQL.conf file. I
installed my copy of PostgreSQL from RedHat 7.0 .rpm files:


   I don't seem to have an PostgreSQL.conf file. Is it safe to create one in
/var/lib/pgsql/data or is there a specific place it needs to go? More
*IS* it even needed?

   Any help with these issues is greatly appreciated. I ran these questions
by the gurus on out local LUG (Kalamazoo Linux Users Group) with several of
them being veteran PostgreSQL users and they were also clueless as to how to
"Hide" the server.

   Thank you in advance for any suggestions, comments, etc.


Richard Zimmerman                                     Richard(at)knbpower(dot)com
Information Systems Manager                      ke4rit(at)earthlink(dot)net
K&B Transport, Inc.
Elkhart, Indiana                     Advanced SKYWARN weather spotter

Support Operation Lifesaver


pgsql-novice by date

Next:From: Bryan WhiteDate: 2001-04-05 15:55:27
Subject: Re: Postmaster hangs until Ctrl-C
Previous:From: Picard, CyrilDate: 2001-04-05 15:31:09
Subject: RE: Postmaster hangs until Ctrl-C

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group