Skip to content

Instantly share code, notes, and snippets.

@Franckapik
Created April 10, 2018 19:15
Show Gist options
  • Save Franckapik/c0cc7016f1214cadf88303ca740489c5 to your computer and use it in GitHub Desktop.
Save Franckapik/c0cc7016f1214cadf88303ca740489c5 to your computer and use it in GitHub Desktop.
sudo cat /var/log/postgresql/postgresql-9.6-main.log
2018-04-10 20:34:07.859 CEST [14513] LOG: masque IP « md5 » invalide : Nom ou service inconnu
2018-04-10 20:34:07.859 CEST [14513] CONTEXTE : ligne 102 du fichier de configuration « /etc/postgresql/9.6/main/pg_hba.conf »
2018-04-10 20:34:07.860 CEST [14513] FATAL: n'a pas pu charger pg_hba.conf
2018-04-10 20:34:07.862 CEST [14513] LOG: le système de base de données est arrêté
2018-04-10 20:53:08.809 CEST [15698] LOG: masque IP « md5 » invalide : Nom ou service inconnu
2018-04-10 20:53:08.809 CEST [15698] CONTEXTE : ligne 102 du fichier de configuration « /etc/postgresql/9.6/main/pg_hba.conf »
@Franckapik
Copy link
Author

hba_conf :

Database administrative login by Unix domain socket

local all postgres peer

TYPE DATABASE USER ADDRESS METHOD

"local" is for Unix domain socket connections only

local all all peer

IPv4 local connections:

host all all 127.0.0.1/32 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
#host all all 188.224.6.181 md5

hostssl all all 188.224.6.181 md5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment