Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Installation - Getting started with Red Hat Linux
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
Subject: application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
Subject: X Windows problem (xauth)
Subject: Upgrading openoffice 1 1 rpm
Subject: FTP: connection refused
Subject: FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
Subject: broadcom network interface
make mrproper
Couldn 't open PID file /var/run/named/named pid Permission denied
sendmail configuration on redhat
kernel 2 6 and /dev/sound/mixer not found
Subject: Promise 378 controller
Subject: Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
Subject: Lotus Notes under Wine
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
/etc/security/limits conf question
Intel E/1000 driver
rpm database corrupt
Command stream end of file while reading
qla2300 modules
 
Subject: FTP: connection refused

Subject: FTP: connection refused

2003-11-13       - By Brenden T.

 Back
Reply:     1     2     3     4     5  

Hi all, I have a tough problem that hopefully has a not so tough
solution.  I'm trying to setup a simple ftp server on Red Hat 7.2 and I
can't get beyond "connection" refused when trying to connect externally.
I've read every FAQ and online guide I can and I can't figure out why.

The big clue I think is that netstat -a says that ftp is not being
listened on.  /etc/services looks ok to me (ftp is on port 21 for both
UDP and TCP), I added the ftp service in /etc/xinet.d/ftp and restarted
xinetd, so I'm not sure what could be inhibiting ftpd.  Here's my config
from /etc/xinet.d/ftp:
service ftp {
disable = no
socket_type = stream
wait = no
nice = 10
user = root
server = /usr/sbin/in.ftpd
server_args = -l
instances = 4
log_on_sucess += DURATION HOST USERID
}

I modified /etc/hosts.allow and /etc/hosts.deny too.  I wasn't sure
about hosts.allow so I copied the working nfs stuff to a new line and
changed it:
in.ftpd: 10.0.0.0/255.255.255.224
which is just like the entries for mountd, statd, etc.

Not sure what else to say.  Here's the long story summarized:
1. Dowloaded wu-ftp and built it with ./configure and make
2. Created /usr/ftp and the little jail for it to run in.
3. Check the firewall to make sure it didn't reject ftp.
4. Made changed to /etc/xinetd.d/ftp above and hosts files.
5. Restarted xinetd
There maybe a few other things I did, this is what I recall for now.

I did a tcpdump trace of the connect attempt, the packets are reaching
the server and it replies, but the replies are all R (resets).  I think
this is related to the fact that xinetd doesn't think it has something
to run on port 21 (ftp port).


Help?  What could I be missing?


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
 <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859 (See http://ISO-8859.ora-code.com)-1">
 <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
<div class="moz-text-flowed"
style="font-family: -moz-fixed; font-size: 13px;" lang="x-western">Hi
all, I have a tough problem that hopefully has a not so tough
solution.&nbsp; I'm trying to setup a simple ftp server on Red Hat 7.2 and I
can't get beyond "connection" refused when trying to connect externally.
&nbsp;I've read every FAQ and online guide I can and I can't figure out why.
<br>
<br>
The big clue I think is that netstat -a says that ftp is not being
listened on.&nbsp; /etc/services looks ok to me (ftp is on port 21 for both
UDP and TCP), I added the ftp service in /etc/xinet.d/ftp and restarted
xinetd, so I'm not sure what could be inhibiting ftpd.&nbsp; Here's my config
from /etc/xinet.d/ftp: <br>
service ftp { <br>
&nbsp;disable = no <br>
&nbsp;socket_type = stream <br>
&nbsp;wait = no <br>
&nbsp;nice = 10 <br>
&nbsp;user = root <br>
&nbsp;server = /usr/sbin/in.ftpd <br>
&nbsp;server_args = -l <br>
&nbsp;instances = 4 <br>
&nbsp;log_on_sucess += DURATION HOST USERID <br>
} <br>
<br>
I modified /etc/hosts.allow and /etc/hosts.deny too.&nbsp; I wasn't sure
about hosts.allow so I copied the working nfs stuff to a new line and
changed it: <br>
in.ftpd: 10.0.0.0/255.255.255.224 <br>
which is just like the entries for mountd, statd, etc. <br>
<br>
Not sure what else to say.&nbsp; Here's the long story summarized: <br>
1. Dowloaded wu-ftp and built it with ./configure and make <br>
2. Created /usr/ftp and the little jail for it to run in. <br>
3. Check the firewall to make sure it didn't reject ftp. <br>
4. Made changed to /etc/xinetd.d/ftp above and hosts files. <br>
5. Restarted xinetd <br>
There maybe a few other things I did, this is what I recall for now. <br>
<br>
I did a tcpdump trace of the connect attempt, the packets are reaching
the server and it replies, but the replies are all R (resets).&nbsp; I think
this is related to the fact that xinetd doesn't think it has something
to run on port 21 (ftp port). <br>
<br>
<br>
Help?&nbsp; What could I be missing? <br>
<br>
</div>
</body>
</html>