Re[2]: [BUGS] BUG #10140: Configured for 127.0.0.1 but binds to all IP - Mailing list pgsql-bugs

From sdfasdf asdfasdf
Subject Re[2]: [BUGS] BUG #10140: Configured for 127.0.0.1 but binds to all IP
Date
Msg-id 1398498604.307715770@f420.i.mail.ru
Whole thread Raw
In response to Re: BUG #10140: Configured for 127.0.0.1 but binds to all IP  (Stephen Frost <sfrost@snowman.net>)
Responses Re: Re[2]: [BUGS] BUG #10140: Configured for 127.0.0.1 but binds to all IP  (Dave Page <dpage@pgadmin.org>)
Re: Re[2]: [BUGS] BUG #10140: Configured for 127.0.0.1 but binds to all IP  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-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.

pgsql-bugs by date:

Previous
From: David G Johnston
Date:
Subject: Re: BUG #10140: Configured for 127.0.0.1 but binds to all IP
Next
From: Evgen Bodunov
Date:
Subject: Re: BUG #10141: Server fails to send query result.