Click to See Complete Forum and Search --> : FTP & Telnet - connection refused


mstembri3
02-26-2001, 12:01 AM
When attempting to access from other computers on my local network.

I can ping the linux machine from other networked computers, and the linux box can ping the net and other systems on the lan.

This install was set up as 'Server'. I did notice that httpd was not one of the items listed as the machine boots. I'm thinking that has something to do with it, but I am not sure how to enable httpd (but then how would I be able to ping internet ip's? if httpd wasn't enabled?)

aph3x
02-26-2001, 01:05 AM
when are you receiving the "connection refused" message? when you try to telnet or ftp into your linux box? if that is the case, you simply do not have a telnet or ftp daemon running on the linux box.

as for being able to ping hosts, you have me sort of confused...(i think). httpd has nothing to do with pinging another host. http is an application level protocol, whereas the ping program uses icmp, a network layer protocol. it sends an icmp-echo request to a desired host, and if that host is alive, the host responds with an icmp-echo reply.

hope that helps :D

Tyr-7BE
02-26-2001, 01:12 AM
These refusals could be a good thing...it depends how security-conscious you are. If you have no telnet or ftp daemons running, then any bad bad man who wants to telnet to your computer and cause damage can't do it. Do you need telnet and ftp enabled?

nac-nac
02-26-2001, 09:35 AM
Lynx is a cool browser and all, but it is quicker to download apps with another machine and ftp them to the linux box.

slayer17
02-26-2001, 12:23 PM
httpd is the apache daemon. One way to enable telnet is to run /usr/sbin/in.telnetd, that way you can telnet you own box. There really is a lot more to it and you should read more about it in order to protect you box from would be killers, rapist and child .....you get the point.

slayer17

freaker
02-26-2001, 01:08 PM
Originally posted by nac-nac:
Lynx is a cool browser and all, but it is quicker to download apps with another machine and ftp them to the linux box.

I am just curious how this has anything to do with his problem??


freaker :cool:

ZeNN
02-26-2001, 05:40 PM
Check in /etc for these two files:
hosts.allow and hosts.deny

first, for security reasons, you want to type this is the hosts.deny file:
ALL:ALL //This locks out ALL processes

to enable telnet type this in the hosts.allow:

in.telnetd : ips_of_machines_you_want_to_have_access_from_telne t

this works only if you have tcp wrappers allowed. Try this with in.httpd(don't know if thats the process name)

if you don't have tcp wrappers installed, get them, because they are damn cool. Try and NHF for some more answers on them.

mstembri3
02-28-2001, 08:57 PM
Ok, I edited the hosts.deny and hosts.allow files per the previous posters recommendation.

Rebooted. Attempted to log in via telnet from the machine I specified in hosts.allw. "connection refused".

I'm not sure if tcp wrappers are required for doing something as basic as accessing a machine via telnet/ftp... There are no NHF's on wrappers.

Anyone have any further suggestions for getting telnet & ftp working?

Lorithar
03-01-2001, 01:29 AM
*ahhhs*

okays ... the following must be reviewed..

/etc/inetd.conf
what apps may inetd start for connections on what port .. nuf said
/etc/hosts.allow
/etc/hosts.deny
who can /can't connect
/etc/hosts
Since we are talking a local lan ...not DNS able .. /etc/hosts should contain ipaddress to hostname translation for the local lan members ..
Check and see if ipchains -L lists any info on a firewall.
you may well be denying local connections.

verify also that in.telnetd exists ... or whatever flavour you happen to run.
please read man inetd.conf and man inetd
both are important reading.

Get ssh... it really is better.