No route to host

Issues related to configuring your network
Post Reply
rvaedex23
Posts: 4
Joined: 2016/03/16 16:26:33

No route to host

Post by rvaedex23 » 2016/03/16 16:33:48

I am trying to telnet IP 9200.
When the firewalld is turned on I get this error: telnet: connect to address 172.xx.xx.xx : No route to host

When the firewalld is turned off I get this error: telnet: connect to address 172.xx.xx.xx: Connection refused

I want to be able to telnet from a client to another server.

thanks

User avatar
TrevorH
Site Admin
Posts: 33221
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: No route to host

Post by TrevorH » 2016/03/16 16:55:14

The no route to host message is probably caused by the firewall rules not allowing the port through so it falls through and uses the last rule which will reject the connection with an icmp message. The Connection refused error probably means that there is nothing listening on that port even if the rules let you get through.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

rvaedex23
Posts: 4
Joined: 2016/03/16 16:26:33

Re: No route to host

Post by rvaedex23 » 2016/03/16 17:12:42

I do have the port opened:

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 172.22.17.62:5601 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:6011 0.0.0.0:* LISTEN
tcp6 0 0 127.0.0.1:9200 :::* LISTEN
tcp6 0 0 127.0.0.1:9300 :::* LISTEN

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: No route to host

Post by gerald_clark » 2016/03/16 17:19:50

It is only listening to port 9200 on localhost, not your lan interface.

rvaedex23
Posts: 4
Joined: 2016/03/16 16:26:33

Re: No route to host

Post by rvaedex23 » 2016/03/16 17:31:53

How can I fix that. Thanks

User avatar
TrevorH
Site Admin
Posts: 33221
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: No route to host

Post by TrevorH » 2016/03/16 18:01:35

Fix the application so that it listens on other than localhost.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

rvaedex23
Posts: 4
Joined: 2016/03/16 16:26:33

Re: No route to host

Post by rvaedex23 » 2016/03/16 18:42:36

Thank you its fixed. Well Done.

Post Reply