Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Jul 2004 08:43:52 -0500
From:      "Andrew L. Gould" <algould@datawok.com>
To:        freebsd-questions@freebsd.org
Cc:        freebsd@stateautomation.com
Subject:   Re: FTP server will not initiate DATA connection back to client
Message-ID:  <200407010843.52503.algould@datawok.com>
In-Reply-To: <BF7916625596914581732F223B113D33108E85@MELEXC01>
References:  <BF7916625596914581732F223B113D33108E85@MELEXC01>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 01 July 2004 07:45 am, freebsd@stateautomation.com wrote:
> I am running FreeBSD 4.9 RELEASE running the standard ftpd.  I can
> act as an ftp client from the console OK, however when I try to ftp
> from a client PC to the server running ftpd (which is running ipfw)
> the ftp server receives the packet sent to port 21 and replies
> however it will not initiate a DATA connection back to the client
> from port 20.  I had my client configured to use ACTIVE FTP.  I have
> also tried PASSIVE without any difference.  I do not have a firewall
> on the client and can successfully FTP to another FreeBSD box.
> None of the rules on my firewall that deny packets coming back from
> the ftp servers ipfw firewall are being hit. Does anyone have any
> ideas? Regards, J.S

In /etc/services, I see the following lines related to ftp:

ftp-data       20/tcp    #File Transfer [Default Data]
ftp-data       20/udp    #File Transfer [Default Data]
ftp              21/tcp    #File Transfer [Control]
ftp              21/udp    #File Transfer [Control]

Are all of these ports open in the firewall?  Sending and receiving?  (I 
don't know if all of the ports are needed or not.)

Best of luck,

Andrew Gould



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407010843.52503.algould>