From: nalini <nalini@nic.in>
To: Mehlape, Makgati <MMehlape1@fnb.co.za>
Cc: Dan King <danking12@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Can't connect from computer on network.
Date: Tue, 19 Feb 2008 14:57:21 +0500
Message-ID: <69994452a8d5057.47baee51@nic.in> (raw)
In-Reply-To: <6A4EAA8FBBA19B4D840721B7A2419D4F44D177C6@fnbcolmx01.fnb.co.za>
References: <e8af117a0802190127q43bed6fehe22e87c0d1eaa7e3@mail.gmail.com>
<6A4EAA8FBBA19B4D840721B7A2419D4F44D177C6@fnbcolmx01.fnb.co.za>
* in postgresql.conf actually denotes the network interfaces on the machine on which the postgresql server is running.
If you wish to limit access to certain IPs do it in pg_hba.conf.
----- Original Message -----
From: "Mehlape, Makgati" <MMehlape1@fnb.co.za>
Date: Tuesday, February 19, 2008 3:12 pm
Subject: Re: [ADMIN] Can't connect from computer on network.
To: Dan King <danking12@gmail.com>, pgsql-admin@postgresql.org
>
>
>
>
>
>
> <br>
> <!-- /* Font Definitions */ @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";}a:link, span.MsoHyperlink {color:blue; text-decoration:underline;}a:visited, span.MsoHyperlinkFollowed {color:blue; text-decoration:underline;}span.EmailStyle17 {mso-style-type:personal-reply; font-family:Arial; color:navy;}@page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in;}div.Section1 {page:Section1;}--><br>
>
>
>
>
>
>
>
>
> Hi.
>
>
>
> I think setting Listen_address to *, does
> not necessary allows all connections but allows your PostgreSQL server to
> support TCP/IP connections. So, leave it as it is.
>
>
>
> In order to apply control over what
> machine IP addresses should connect remotely to your server; specify the IP
> addresses in the pg_hba.conf file.
>
>
>
> e.g
>
>
>
> # TYPE DATABASE USER
> CIDR-ADDRESS METHOD
>
>
>
> Host <DBname> DKing
> 192.168.2.102 <Specifies user Authentication>
>
>
>
> Make sure you restart your PostgreSQL
> serve after performing the above.
>
>
>
> Hope this helps.
>
>
>
> Makgati.
>
>
>
>
>
>
>
>
>
>
>
> From:
> pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Dan King
>
> Sent: Tuesday, February 19, 2008
> 11:27 AM
>
> To: pgsql-admin@postgresql.org
>
> Subject: [ADMIN] Can't connect
> from computer on network.
>
>
>
>
>
> Hi list,
>
>
>
> I am using postgresql 8.2 on Ubuntu Gutsy. I am attempting to connect to my
> database on one computer from another computer on my network. I can connect to
> the database if I have:
>
>
>
> listen_addresses = '*'
>
>
>
> in my postgresql.conf file. But I can't connect if I have:
>
>
>
> listen_addresses = 'localhost, 192.168.2.102'
>
>
>
> in my postgresql.conf file. The computer that is assigned 192.168.2.102 is the computer I am attempting
> to connect from that works with the * but not with an assigned IP address. I
> understand that having a * allows all connections but I am attempting to
> restrict this so only a certain computer can access the database.
>
>
>
> Does anyone know why I can't connect to the database from another computer when
> specifying the IP address in 'listen_addresses' and how to fix my problem?
>
>
>
> Thanks a lot for the help.
>
>
>
> Dan
>
>
>
>
>
> To read FirstRand
> Bank's Disclaimer for this email click on the following address or copy into
> your Internet browser:
> https://www.fnb.co.za/disclaimer.html
>
> If you are unable to
> access the Disclaimer, send a blank e-mail to firstrandbankdisclaimer@fnb.co.za
> and we will send you a copy of the Disclaimer.
>
>
>
>
>
Nalini S. Nautiyal
System Software Division
NIC HQ
New Delhi
Ph 24360324,24305121,24305131
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: nalini@nic.in, MMehlape1@fnb.co.za, danking12@gmail.com
Subject: Re: Can't connect from computer on network.
In-Reply-To: <69994452a8d5057.47baee51@nic.in>
* 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