1819873 Members
2718 Online
109607 Solutions
New Discussion юеВ

Telnet through a router.

 
James Crosby
Occasional Contributor

Telnet through a router.

Hi. I have been struggling with a connectivity problem on my 9000. My HP is
on network A and I have PCs running Win 98 on network B.

I modified the routing table on the HP to allow connection to PCs on network B
through an NT server acting as a router. I am able to ping the HP from any PC
on network B. However, I am unable to open a telnet or ftp connection.

Am I missing something? If I can ping it, why can't I telnet to it?

I'm running HP-UX 10.01

Any suggestions or ideas would be greatly appreciated.

James
2 REPLIES 2
Alan Riggs_1
Regular Advisor

Re: Telnet through a router.

Have you verified connectivity in both directions? If you can ping the 9000
from the PC, make sure you can also ping the PC from the 9000. If not, it
might be a netmask issue or a routing issue.

If you have connectivity in both directions, then make sure that inetd is
running on the 9000 and that telnet and ftp are enabled in /etc/inetd.conf and
are given the appropriate ports in /etc/services.
Anthony Goonetilleke_1
Regular Advisor

Re: Telnet through a router.

There can be a few reasons for this. First of all go to a dos prompt in the
windows box and see if you can ping the HP box by IP address. If this works
try pinging it by machine name.
If they both work now try telneting to the IP address of the machine if this
doesn't work try ftp'ing to the IP address on the machine if they both don't
work but the ping worked it might be that you have the services turned off on
the machine or your machine has restricted access.
make sure that internet services are running you can always do a stop start to
be sure i.e

/sbin/init.d/inetd stop
/sbin/init.d/inetd start

Check the following files /etc/inetd.conf and make sure you have two entries
that look similar to this

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l
telnet stream tcp nowait root /usr/lbin/telnetd telnetd

if the two lines are hashed out or not there put them in and run inetd -c to
reread the config file.

make sure that that the telnet and ftp services are included in /etc/services
as follows

ftp 21/tcp
telnet 23/tcp

Check /var/adm/inetd.sec to see if you have any client restrictions for the
various services.

You might also want to turn logging on in inetd using the -l option which
writes all connections /var/adm/syslog/syslog.log this can help debugging
problems. This can be done by editing the /etc/rc.config.d/netdaemons file and
changing the following line

export INETD_ARGS="-l" and restarting inetd.

Basically if ping works both ways to the IP address and hostname you network
connectivity should be OK then you should look at your internet services.

Hope this helps,
regards,
AG