Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. local all postgres peer
  2. local all all peer
  3. host all all 127.0.0.1/32 md5
  4. host all all ::1/128 md5
  5. local replication all peer
  6. host replication all 127.0.0.1/32 md5
  7. host replication all ::1/128 md5
  8. host all all 0.0.0.0/0 md5
  9.  
  10. psql: could not connect to server: No route to host
  11. Is the server running on host "db.example.com" (10.0.0.150) and accepting
  12. TCP/IP connections on port 5432?
  13.  
  14. $ ss -anp | grep 5432
  15. u_str LISTEN 0 128 /var/run/postgresql/.s.PGSQL.5432 158425 * 0
  16. tcp LISTEN 0 128 0.0.0.0:5432 0.0.0.0:*
  17. tcp LISTEN 0 128 [::]:5432 [::]:*
  18.  
  19. $ sudo tcpdump -i ens192 -vvvnxXS port 5432
  20. tcpdump: listening on ens192, link-type EN10MB (Ethernet), capture size 262144 bytes
  21. 09:27:46.118205 IP (tos 0x0, ttl 64, id 18195, offset 0, flags [DF], proto TCP (6), length 60)
  22. 10.0.2.3.59478 > 10.0.0.150.5432: Flags [S], cksum 0xea81 (correct), seq 826121699, win 64240, options [mss 1460,sackOK,TS val 2129657941 ecr 0,nop,wscale 7], length 0
  23. 0x0000: 4500 003c 4713 4000 4006 dd10 0a00 0203 E..<G.@.@.......
  24. 0x0010: 0a00 0096 e856 1538 313d 9de3 0000 0000 .....V.81=......
  25. 0x0020: a002 faf0 ea81 0000 0204 05b4 0402 080a ................
  26. 0x0030: 7ef0 0055 0000 0000 0103 0307 ~..U........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement