Re: weird network issue - Mailing list pgsql-admin
From | kevin kempter |
---|---|
Subject | Re: weird network issue |
Date | |
Msg-id | D0AF6926-D0A1-41C5-A652-A5718B366219@kevinkempterllc.com Whole thread Raw |
In response to | Re: weird network issue (Jonathan Nalley <jnalley@fgp.com>) |
Responses |
Re: weird network issue
|
List | pgsql-admin |
I'm not sure how to get the version however given the below listing of /boot/grub/grub.conf it's obviously Cent OS:
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-8.1.6.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-8.1.6.el5 ro root=/dev/VolGroup00/LogVol00 clock=
pit noapic nolapic rhgb quiet
initrd /initrd-2.6.18-8.1.6.el5.img
title CentOS (2.6.18-8.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-8.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.18-8.el5.img
I also did a uname -a:
[root@db1 ~]# uname -a
Linux vmsrv02.myclient.local 2.6.18-8.1.6.el5 #1 SMP Thu Jun 14 17:29:04
EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
I ran the telnet command and got this:
-bash-3.1$ telnet 192.168.111.11 5432
Trying 192.168.111.11...
telnet: connect to address 192.168.111.11: No route to host
telnet: Unable to connect to remote host: No route to host
However a ping works:
-bash-3.1$ ping 192.168.111.11
PING 192.168.111.11 (192.168.111.11) 56(84) bytes of data.
64 bytes from 192.168.111.11: icmp_seq=1 ttl=64 time=0.438 ms
64 bytes from 192.168.111.11: icmp_seq=2 ttl=64 time=0.168 ms
64 bytes from 192.168.111.11: icmp_seq=3 ttl=64 time=0.232 ms
Thanks for the help...
/Kevin
Could you send us the distro and version of Linux that you're using on these two boxes?
Just as a sanity check and assuming you have a telnet client on the .13 box, can you perform the following command:
telnet 192.168.111.11 5432
and then paste the output to us. I guess conceptually there's not a whole lot of difference between doing that and using psql -h 192.168.111.11 but it might eliminate some layer of issues. If you're familiar with nmap or similar programs you can accomplish the same thing to ping .11 on port 5432-----Original Message-----From: kevin kempter [mailto:kevin@kevinkempterllc.com]Sent: Friday, March 28, 2008 12:56To: Jonathan NalleyCc: 'pgsql-admin@postgresql.org'Subject: Re: [ADMIN] weird network issueNot sure. I'm not so well versed in the firewall/networking areas. Ican however do an scp pull from both machines :scp a file from 192.168.111.13 while logged onto 192.168.111.11andscp a file from 192.168.111.11 while logged onto 192.168.111.13Can you point me where to look for firewall/iptables/SE issues?Thanks in advanceOn Mar 28, 2008, at 10:45 AM, Jonathan Nalley wrote:are you running any kind of firewall/iptables/SELinux where thesettings are perhaps not the same on the two machines?From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of kevin kempterSent: Friday, March 28, 2008 12:31To: pgsql-admin@postgresql.orgSubject: [ADMIN] weird network issueHi LIst;I have 2 Linux servers:192.168.111.11192.168.111.13Both are running postgres v 8.2.6I can ping the .11 box from .13 and vice versaI can connect remotely from the .11 box to the .13 box but I cannotconnect to the .11 box from the .13 box.I can do this:on the 192.168.111.11 box:-bash-3.1$ psql -h 192.168.111.13Welcome to psql 8.2.6, the PostgreSQL interactive terminal.Type: \copyright for distribution terms\h for help with SQL commands\? for help with psql commands\g or terminate with semicolon to execute query\q to quitpostgres=#However if I do this it fails:on the 192.168.111.13 box:-bash-3.1$ psql -h 192.168.111.11 postgrespsql: could not connect to server: No route to hostIs the server running on host "192.168.111.11" and acceptingTCP/IP connections on port 5432?Both boxes have the same copy of the postgresql.conf file and thepg_hba.conf file.Here's the listen address setting (on the 192.168.111.11 box) fromthe postgresql.conf file:listen_addresses = '*'I also checked (after a restart) that the listen address and portwas in fact as I thoughton 192.168.111.11 :Welcome to psql 8.2.6, the PostgreSQL interactive terminal.Type: \copyright for distribution terms\h for help with SQL commands\? for help with psql commands\g or terminate with semicolon to execute query\q to quitpostgres=# show listen_addresses;listen_addresses------------------*(1 row)postgres=# show port;port------5432(1 row)postgres=#Here's the current pg_hba.conf file on 192.168.111.11 :# TYPE DATABASE USER CIDR-ADDRESS METHOD# "local" is for Unix domain socket connections onlylocal all all ident sameuser# IPv4 local connections:host all all 127.0.0.1/32 ident sameuser# IPv6 local connections:host all all ::1/128 ident sameuser#DRW. This should be tighted up once the db instances are figuredouthost all all 192.168.111.0/24 trustI'm stumped..Anyone have any thoughts ?Thanks in advance.
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
pgsql-admin by date: