Re: [squid-users] Re: FTP through squid

From: Hugo Deprez <hugo.deprez_at_gmail.com>
Date: Sun, 6 May 2012 18:54:20 +0200

Hello,

I just installed squid3 from wheezy repository :

ii squid3 3.1.19-1+b1
Full featured Web Proxy cache (HTTP proxy)
ii squid3-common 3.1.19-1
Full featured Web Proxy cache (HTTP proxy) - common files

I try with FF12 still the same issue :

******* - - [06/May/2012:18:47:17 +0200] "GET ftp://ftp.free.fr/
HTTP/1.0" 504 4118 "-" "Mozilla/5.0 (Windows NT 5.1; rv:12.0)
Gecko/20100101 Firefox/12.0" TCP_MISS:DIRECT

I tried with filezilla, I get the following error :

***** - - [06/May/2012:18:44:56 +0200] "CONNECT ftp.free.fr:21
HTTP/1.0" 200 266 "-" "FileZilla" TCP_MISS:DIRECT
***** - - [06/May/2012:18:44:57 +0200] "CONNECT 212.27.60.27:6846
HTTP/1.0" 403 3561 "-" "FileZilla" TCP_DENIED:NONE

seems that the client is using passive mode, as it try to connect to
the FTP server to the port 6846.
How to deal with that ?
What is the difference between firefox and filezilla from FTP's
protocol point of view ?

Thanks !

On 5 May 2012 01:07, Amos Jeffries <squid3_at_treenet.co.nz> wrote:
> On 4/05/2012 9:58 p.m., Hugo Deprez wrote:
>>
>> Hello,
>>
>> I am running Debian Squeeze with squid  3.1.6-1.2+squeeze2
>>
>> with the command line it works :
>>  $ftp ftp.free.fr
>> Connected to ftp.proxad.net.
>> 220 Welcome to ProXad FTP server
>> Name (ftp.free.fr:hugo.deprez): anonymous
>> 331 Please specify the password.
>> Password:
>> 230 Login successful.
>> Remote system type is UNIX.
>> Using binary mode to transfer files.
>> ftp>  ls
>> 200 PORT command successful. Consider using PASV.
>> 150 Here comes the directory listing.
>> lrwxrwxrwx    1 ftp      ftp            28 Jun 14  2011 MPlayer ->
>> mirrors/mplayerhq.hu/MPlayer
>> drwxr-xr-x    2 ftp      ftp          4096 May 07  2008 awstats
>> drwx------    2 ftp      ftp         16384 Mar 08  2006 lost+found
>> drwxr-xr-x    3 ftp      ftp          4096 Jan 04 11:44 mirrors
>> drwxr-xr-x    2 ftp      ftp          4096 Dec 24  2008 nzb
>> drwxr-xr-x   10 ftp      ftp          4096 Nov 23  2009 pub
>> drwxr-xr-x    2 ftp      ftp         81920 May 03 22:30 stats
>> drwxr-xr-x    2 ftp      ftp          4096 May 04 09:35 tmp
>> 226 Directory send OK.
>>
>>
>> I do have this error for all ftp server I try with ftp.mozilla.org
>>
>> Any idea ?
>
>
> Please try the squid3 package form Wheezy/Testing repositories. 3.1.6 has
> quite a few problems.
>
> The FTP client you are using seems to be doing IPv4-only PORT commands
> silently in the background. Squid uses protocol-neutral EPSV/EPRT first, and
> the older 3.1 have a few issues in that area.
>
> Amos
>
Received on Sun May 06 2012 - 16:54:30 MDT

This archive was generated by hypermail 2.2.0 : Sun May 06 2012 - 12:00:03 MDT