[Wolves] Quick wuftp problem

Ron Wellsted wolves at mailman.lug.org.uk
Fri Feb 14 20:44:01 2003


On Friday 14 Feb 2003 1:11 pm, Wayne Morris wrote:
> I tried to set up ftp on my webserver yesterday and did this:
>
> created user brian with home directory as a branch of the webserver path
> -
> /var/www/html/brian
>
> changed permission on this directory ro read and write.
>
>
> If I connect thru the Lan, everything works.
>
> If I connect from external connection, I can connect as anon or Brian,
> as brian it shows the  path correctly as /var/www/html/brian but then
> hangs on 'receiving file names'
>
> My brother tries from his XP machine using cuteftp and connects but gets
> 'unable to get a data socket'
>
> I have allowed port 21 thru my smoothwall firewall.
>
> Oh, maybe anserer my own question, do I need to allow/forward another
> channel thru the firewall for the data?

This is a perenial problem with ftp servers behind firewalls.  ftp works by 
establishing a control channel (port 21) then creating dynamic data channels 
from the client to the server as needed for data transfer.

You MIGHT get it to work with the ftp client in passive mode, but a ftp server 
should really be on the DMZ to work.

-- 
Ron Wellsted
http://www.wellsted.org.uk
mailto:ron@wellsted.org.uk