Boa tarde!
To com um problema para conseguir acessar o banco postgresql instalado no servidor debian 5.0.4, (Linux 2.6.26-2-686).
Instalei com o apt-get, a versão 8.3 do postgresql, tranquilo, não deu nenhum problema.
O problema é para acessar atraves no pgadmin3 num micro da rede, no dominio.
Modifiquei os arquivos pg_hba.conf, da seguinte maneira:
local all postgres ident sameuser
# TYPE DATABASE USER CIDR-ADDRESS METHOD
# "local" is for Unix domain socket connections only
#local all all ident sameuser
# IPv4 local connections:
host all all 0.0.0.0/0 password
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5
E o postgresql.conf:
listen_addresses = '*'
E inseri, no iptables a seguinte regra:
$IPT -A INPUT -s $REDE_INT -p tcp --dport 5432 -j ACCEPT
Ao tentar acessar pelo pgadimn, ele diz que o servidor não está escutando... bla bla bla.
O engraçado que se dou um netstat -na | grep 5432, olha só o resultado:
parece que ele não está escutando na interface da rede (192.168.10.x).tcp 0 0 127.0.0.1:5432 0.0.0.0:* OUÃA
tcp6 0 0 ::1:5432 :::* OUÃA
unix 2 [ ACC ] STREAM OUVINDO 3743123 /var/run/postgresql/.s.PGSQL.5432
Ja tentei varias coisas, regras diferentes de firewall, etc. Mas não sei o que fazer para solucionar, esperava que alguem pudesse me dar uma ajuda, por favor.