Re: [squid-users] FTP question

From: Joe Cooper <joe@dont-contact.us>
Date: Mon, 26 Aug 2002 05:13:49 -0500

No. You're once again asking Squid to proxy FTP requests. Squid is an
HTTP proxy.

If the browser doesn't know it is talking to an HTTP proxy, it will send
standard FTP requests. FTP requests cannot be transparently proxied by
Squid (because it is an HTTP proxy). Squid can only answer HTTP
requests. You need an FTP proxy that can operate transparently in order
to do what you want (and a search of the mailing list archives will turn
up tons of messages on this subject).

To put it yet another way: Squid will make requests on behalf of an HTTP
client to HTTP, FTP, Gopher and WAIS servers. It will not accept
requests from FTP, Gopher or WAIS clients. If a browser doesn't know it
is talking to a proxy, it will never send an HTTP request for an FTP
URL, because it believes it is talking directly to the FTP server, which
could do nothing with an HTTP proxy request.

De Leeuw Guy wrote:
> In this case it is possible to use the iptables command :
> iptables -t nat -A PREROUTING -i eth0 -p tcp --dport ftp -j
> REDIRECT --to-port 3128
> iptables -t nat -A PREROUTING -i eth0 -p tcp --dport ftp_data -j
> REDIRECT --to-port 3128
>
> to cache all ftp query ?
>
> Guy
>
>
>>Squid caches ftp:// URLs just fine. It is only that the URL
>>must be requested
>>by a HTTP client (i.e. web browser) configured to use Squid
>>as a proxy for
>>ftp:// URLs.
>>
>>Squid cannot proxy ftp requests by FTP clients (including
>>browsers NOT
>>configured to use a proxy), and as a direct consequense it
>>cannot cache such
>>requests as you cannot send them to Squid. For FTP clients
>>you will need a
>>FTP proxy if you want to provide proxying capabilities. Some
>>FTP proxies
>>(i.e. frox) claim to have simple integration with Squid for
>>caching or even
>>transparent proxying support.
>>
>>Regards
>>Henrik
>>
>>
>>
>>De Leeuw Guy wrote:
>>
>>>Hello,
>>>
>>>Thanks for your respons.
>>>If I understand correctly, an URL like
>>
>>http://ftp.domain.xy/myfile.zip is
>>
>>>cached by squid,
>>>but not the url ftp://ftp.domain.xy/myfile.zip ?
>>>
>>>Guy
>>>
>>>
>>>>-----Original Message-----
>>>>From: Henrik Nordstrom [mailto:hno@marasystems.com]
>>>>Sent: Saturday, August 24, 2002 12:45 AM
>>>>To: De Leeuw Guy; squid-users@squid-cache.org
>>>>Subject: Re: [squid-users] FTP question
>>>>
>>>>On Friday 23 August 2002 14.36, De Leeuw Guy wrote:
>>>>
>>>>>Hello,
>>>>>
>>>>>It is possible to handle the ftp connections with squid ?
>>>>
>>>>Only for HTTP clients (i.e. web browsers) using Squid as
>>>
>>a proxy for
>>
>>>>ftp. Squid is a HTTP proxy.
>>>>
>>>>Regards
>>>>Henrik
>>>
>

-- 
Joe Cooper <joe@swelltech.com>
Web caching appliances and support.
http://www.swelltech.com
Received on Mon Aug 26 2002 - 04:17:23 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:09:50 MST