pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: sdfasdf asdfasdf <sofiamay@mail.ru>
To: pgsql-bugs@postgresql.org
Subject:  Re[2]: [BUGS] BUG #10140: Configured for 127.0.0.1 but binds to all IP
Date: Sat, 26 Apr 2014 11:50:04 +0400
Message-ID: <1398498604.307715770@f420.i.mail.ru> (raw)
In-Reply-To: <20140425181538.GP2556@tamriel.snowman.net>
References: <20140425075608.2714.57886@wrigleys.postgresql.org>
	<20140425181538.GP2556@tamriel.snowman.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

IT IS A SECURITY (NETWORK) BUG (bind to all ip instead of 127.0.0.1).

1) I download binare form http://www.enterprisedb.com/products-services-training/pgbindownload 

Versions wich i download: 9.3.4 and 9.2.8 (Win x86-32)

2) In config file i wrote:

listen_addresses = '127.0.0.1'

3) Then i do init db and run this command:

C:\database\PostgreSQL-9.3.4\bin\pg_ctl.exe start -w -D "C:\Postgre" -s -o "-i"

PostgreSQL start and work fine, but binds to all ips.

My system is WINDOWS 7. Win7 pro x64. NOT LINUX.

In Console:
**********************************
psql -U postgres
show listen_addresses;

output:
listen_addresses
------------------
*
(1 User)
**********************************

But show in config file: C:\Postgre\postgresql.conf

In Console:
**********************************
sort<C:\Postgre\postgresql.conf
lalala....
listen_addresses = '127.0.0.1' # what IP address(es) to listen on;
lalala....
**********************************

then

In Console:
**********************************
netstat -a

  TCP 0.0.0.0:5432 UserPC:0 LISTENING
  TCP [::]:5432 UserPC:0 LISTENING
**********************************

I test this bug with 9.3 and 9.2 (Win x86-32) versions of PostgreSQL. Another version not tested (i have not time). 
You can check it yourself.

Sorry for my english.
-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


view thread (5+ messages)  latest in thread

Message-ID: <1398498604.307715770@f420.i.mail.ru>
Permalink:  ../1398498604.307715770@f420.i.mail.ru/
Also on:    postgresql.org/message-id/1398498604.307715770@f420.i.mail.ru

 · 

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-bugs@postgresql.org
  Cc: sofiamay@mail.ru
  Subject: Re: [BUGS] BUG #10140: Configured for 127.0.0.1 but binds to all IP
  In-Reply-To: <1398498604.307715770@f420.i.mail.ru>
  References: <20140425075608.2714.57886@wrigleys.postgresql.org> <20140425181538.GP2556@tamriel.snowman.net> <1398498604.307715770@f420.i.mail.ru>

* 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