telnet works but 'telnet host 25' gives 'no route to host'
Hi guys,
Below is an excerpt of a shell session where I'm trying to see why I can't get at an SMTP server on a particular machine on the 'net. The thing I don't understand is that I get:
- replies from ping to this host,
- a connection refusal for a connect on 23 (fine, it's not running telnet),
- a welcome string for connect on 110 (it's running POP3)
- but for a connect to port 25, I get a 'no route to host'.
Isn't this error an IP error? (But IP routing has been shown to work by TCP tests on the other ports)
I've also included the routing table and a call to ifconfig (eth1 has no cable plugged into it)
---------------------------------
linux:~ # telnet foo
Trying foo...
telnet: connect to address 204.3.219.18: Connection refused
linux:~ # telnet foo 110
Trying foo...
Connected to foo.
Escape character is '^]'.
+OK POP3 [foo] v2000.70 server ready
^]
telnet> quit
Connection closed.
linux:~ # telnet foo 25
Trying foo...
telnet: connect to address 204.3.219.18: No route to host
---------------------------------
linux:~ # netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default 192.168.0.2 0.0.0.0 UG 0 0 0 eth0
---------------------------------
linux:~ # ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:6E:4A:32:AA
inet addr:192.168.0.5 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::20c:6eff:fe4a:32aa/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:28564 errors:0 dropped:0 overruns:0 frame:0
TX packets:26507 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:13344471 (12.7 Mb) TX bytes:2387901 (2.2 Mb)
Interrupt:5 Base address:0xa000
eth1 Link encap:Ethernet HWaddr 00:26:54:0E:52:85
inet6 addr: fe80::226:54ff:fe0e:5285/64 Scope:Link
UP BROADCAST NOTRAILERS MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:4
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:828 (828.0 b)
Interrupt:11 Base address:0xb000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:26674 errors:0 dropped:0 overruns:0 frame:0
TX packets:26674 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1619549 (1.5 Mb) TX bytes:1619549 (1.5 Mb)
|