Pular para o conteúdo

Acesso remoto Postgresql em servidor da amazon [RESOLVIDO]

Responder tópico
  • Denunciar
  • Indicar
01 02

13. Re: Acesso remoto Postgresql em servidor da amazon [RESOLVIDO]

Enviado em 09/06/2017 - 17:15h

Comenta a primeira linha.

Responder tópico

14. Acesso remoto postgress no ubuntu 16

Enviado em 09/06/2017 - 17:34h

Após algumas mudanças sem sucesso, consegui acesso configurando desta forma

Arquivo /etc/postgresql/9.5/main/postgresql.conf
listen_addresses = '*'



Arquivo /etc/postgresql/9.5/main/pg_hba.conf

host all all 127.0.0.1/24 md5
host all all 192.168.1.0/24 md5
# TYPE DATABASE USER ADDRESS METHOD

# "local" is for Unix domain socket connections only
local all postgres md5
# IPv4 local connections:
#host all all 127.0.0.1/24 md5
#local all all 192.168.1.0/24 md5
# IPv6 local connections:
host all all ::1/128 md5
# Allow replication connections from localhost, by a user with the
# replication privilege.
#local replication postgres peer
#host replication postgres 127.0.0.1/32 md5
#host replication postgres ::1/128 md5

15. Re: Acesso remoto Postgresql em servidor da amazon [RESOLVIDO]

Enviado em 12/06/2017 - 10:12h

wwwelliton escreveu:

Após algumas mudanças sem sucesso, consegui acesso configurando desta forma

Arquivo /etc/postgresql/9.5/main/postgresql.conf
listen_addresses = '*'



Arquivo /etc/postgresql/9.5/main/pg_hba.conf

host all all 127.0.0.1/24 md5
host all all 192.168.1.0/24 md5
# TYPE DATABASE USER ADDRESS METHOD

# "local" is for Unix domain socket connections only
local all postgres md5
# IPv4 local connections:
#host all all 127.0.0.1/24 md5
#local all all 192.168.1.0/24 md5
# IPv6 local connections:
host all all ::1/128 md5
# Allow replication connections from localhost, by a user with the
# replication privilege.
#local replication postgres peer
#host replication postgres 127.0.0.1/32 md5
#host replication postgres ::1/128 md5
Vou tentar e posto o resultado

16. Re: Acesso remoto Postgresql em servidor da amazon [RESOLVIDO]

Enviado em 12/06/2017 - 15:57h

Prezados.....
depois de tentar todas as dicas de vocês, descobri um problema em nossa rede. Como fazemos parte de outra rede, a mesma tinha restrições para nosso IP na porta 5432, por isso não efetuava as conexões remotas.

Entrei em contato com o suporte desta rede e fizeram a liberação.. agora conecta normalmente.

Grato a todos respondentes.


Att
André Moreira
01 02

Responder tópico

Responder tópico

Entre na sua conta para responder.

Fazer login para responder