Networking Forums

Networking Forums > Computer Networking > Linux Networking > Can ping but cannot telnet ("no route to host")

Reply
Thread Tools Display Modes

Can ping but cannot telnet ("no route to host")

 
 
Robbie
Guest
Posts: n/a

 
      09-11-2003, 02:00 PM
Hi to all,

I use Linux since 1998, but I'm relatively new to the management of the
network configuration.

I hope this is the right newsgroup for my question.
I've installed a knoppix (that is, a debian (!)) on a PC with a public
IP address, say xxx.yyy.zzz.70 (the server).
From another PC on the same net (xxx.yyy.zzz.71) i can ping, telnet,
ssh the server.
Also, apache and samba seems to work fine.

But if I try to connect from my home, I cannot connect via telnet (it
says "no route to host") or ssh; also apache don't reply.
Hovewer, I can ping the server and traceroute shows the route correctly
from my home PC to the server.

What could I miss in my configuration?
I post the output of ifconfig and route:

knoppix@linux-box:~$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:50:FC:3F:C5:09
inet addr:xxx.yyy.zzz.ttt Bcast:xxx.yyy.zzz.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:176638 errors:0 dropped:0 overruns:0 frame:0
TX packets:39402 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:34187097 (32.6 MiB) TX bytes:10934150 (10.4 MiB)
Interrupt:11 Base address:0x8f00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:51 errors:0 dropped:0 overruns:0 frame:0
TX packets:51 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3400 (3.3 KiB) TX bytes:3400 (3.3 KiB)

knoppix@linux-box:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
xxx.yyy.zzz.0 0.0.0.0 255.255.255.0 U 0 0 0
eth0

0.0.0.0 xxx.yyy.zzz.1 0.0.0.0 UG 0 0 0
eth0

I hope someone could help me.

Thanks in advance
Robbie


--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
 
Reply With Quote
 
 
 
 
Jacoby Yves
Guest
Posts: n/a

 
      09-11-2003, 02:16 PM
Robbie wrote:

> Hi to all,
>
> I use Linux since 1998, but I'm relatively new to the management of the
> network configuration.
>
> I hope this is the right newsgroup for my question.
> I've installed a knoppix (that is, a debian (!)) on a PC with a public
> IP address, say xxx.yyy.zzz.70 (the server).
> From another PC on the same net (xxx.yyy.zzz.71) i can ping, telnet,
> ssh the server.
> Also, apache and samba seems to work fine.
>
> But if I try to connect from my home, I cannot connect via telnet (it
> says "no route to host") or ssh; also apache don't reply.
> Hovewer, I can ping the server and traceroute shows the route correctly
> from my home PC to the server.
>
> What could I miss in my configuration?
> I post the output of ifconfig and route:
>
> knoppix@linux-box:~$ ifconfig -a
> eth0 Link encap:Ethernet HWaddr 00:50:FC:3F:C5:09
> inet addr:xxx.yyy.zzz.ttt Bcast:xxx.yyy.zzz.255
> Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:176638 errors:0 dropped:0 overruns:0 frame:0
> TX packets:39402 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:100
> RX bytes:34187097 (32.6 MiB) TX bytes:10934150 (10.4 MiB)
> Interrupt:11 Base address:0x8f00
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:51 errors:0 dropped:0 overruns:0 frame:0
> TX packets:51 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:3400 (3.3 KiB) TX bytes:3400 (3.3 KiB)
>
> knoppix@linux-box:~$ route -n
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> xxx.yyy.zzz.0 0.0.0.0 255.255.255.0 U 0 0 0
> eth0
>
> 0.0.0.0 xxx.yyy.zzz.1 0.0.0.0 UG 0 0 0
> eth0
>
> I hope someone could help me.
>
> Thanks in advance
> Robbie
>
>

Do you reach the server by hostname (address) or simply by IP ? If you
reach it by hostname, have a look at the resolv.conf file, if a DNS
server is declared.

Yves

 
Reply With Quote
 
Robbie
Guest
Posts: n/a

 
      09-11-2003, 02:29 PM
"Jacoby Yves" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)


> Do you reach the server by hostname (address) or simply by IP ? If you
> reach it by hostname, have a look at the resolv.conf file, if a DNS
> server is declared.


I reach my server only through the IP address.

> Yves


Bye
Robbie


--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
 
Reply With Quote
 
Jacoby Yves
Guest
Posts: n/a

 
      09-11-2003, 03:11 PM
Robbie wrote:

> "Jacoby Yves" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)
>
>
>
>>Do you reach the server by hostname (address) or simply by IP ? If you
>>reach it by hostname, have a look at the resolv.conf file, if a DNS
>>server is declared.

>
>
> I reach my server only through the IP address.
>
>
>>Yves

>
>
> Bye
> Robbie
>
>

Your server is probably behind a firewall or something like that. When
you ping or traceroute, the firewall (or Modem/Router) answers, so no
problem, but it doesn't let your connection go to the server. What
interface do you use to get to the public net ? ADSL ? Cable? modem ?

 
Reply With Quote
 
Robbie
Guest
Posts: n/a

 
      09-11-2003, 04:10 PM
"Jacoby Yves" <(E-Mail Removed)> wrote in message
news:3f6090b9$(E-Mail Removed)


> >>Do you reach the server by hostname (address) or simply by IP ? If you
> >>reach it by hostname, have a look at the resolv.conf file, if a DNS
> >>server is declared.

>
> >
> > I reach my server only through the IP address.
> >

> Your server is probably behind a firewall or something like that. When
> you ping or traceroute, the firewall (or Modem/Router) answers, so no
> problem, but it doesn't let your connection go to the server. What
> interface do you use to get to the public net ? ADSL ? Cable? modem ?


Uhm, I'll check if we have a firewall, but I don't think so.
I'm not sure about the kind of connection but, since the server is my
desktop in my office, I suppose it is a broadband connection.

Any other suggestion?

Thanks
Robbie










--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
 
Reply With Quote
 
/dev/rob0
Guest
Posts: n/a

 
      09-13-2003, 11:04 PM
In article <(E-Mail Removed) lgate.org>,
Robbie wrote:
> Uhm, I'll check if we have a firewall, but I don't think so.
> [snip]
> Any other suggestion?


No. "No route to host" errors, when you know in fact that you DO have a
route to that host, mean there's a firewall in the way. It might not be
YOUR firewall; perhaps the ISP is blocking certain ports.

You could use nmap from one or more external sites to prove it.
--
/dev/rob0 - preferred_email=i$((28*28+28))@softhome.net
or put "not-spam" or "/dev/rob0" in Subject header to reply
 
Reply With Quote
 
Raqueeb Hassan
Guest
Posts: n/a

 
      09-14-2003, 10:49 AM
basic features of most distributions are firewall enabled ... and at
the same time should you are using redhat, for example ... it has the
telnet access disabled by default .... you have to change the
xinetd.conf or similar file for that.

raqueeb hassan
bunia, DRC
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to enable "apply static route" for some users in "Dial in" tab of Active Directory on Windows 2003 HuyNguyen Windows Networking 4 12-11-2004 12:50 AM
IPv6-over-IPv4: "RTNETLINK answers: No route to host"-Error Thorsten Becker Linux Networking 0 08-22-2004 03:33 PM
vsftpd "no route to host" error Ron Albright Linux Networking 0 07-26-2004 05:51 AM
Can "pppd" bind to a pty with "telnet" session over ethernet? Alex Yung Linux Networking 1 10-02-2003 01:33 PM
help me : "ping IP" works but not "ping NAME" on windows 98 2nd edition zef Windows Networking 1 08-05-2003 07:49 PM



1 2 3 4 5 6 7 8 9 10 11