Re: [squid-users] Can Squid use an FTP proxy as a "parent cache" for FTP only?

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sat, 25 Jan 2003 02:34:51 +0100

Not until someone contributes the code needed to teach Squid how to
use FTP proxies.

However, Some kind of FTP proxies can be used simply with the help of
a redirector. If the FTP proxy works by user@host proxy scheme then
you can use a redirector like this

#!/usr/bin/perl -p
BEGIN { $|=1; }
s%ftp://([^/]*%ftp://anonymous%40$1:Squid%40@ftp.proxy.server%;

The above revrites

  ftp://ftp.example.com/...

to

  ftp://ftp%40ftp.example.com:Squid%40@ftp.proxy.server/...

which translates to

  A FTP request to ftp.proxy.server
  Login as "anonymous@ftp.example.com"
  With password "Squid@"

Regards
Henrik

On Friday 24 January 2003 20.18, Eric W. Wallace wrote:
> ...and if so, how?
>
> (I did search the archives, but I couldn't think of a query to
> narrow down from nearly 3,000 references to "FTP proxy".)
>
> The only way (well, acceptable way, that is) to FTP outside of our
> corporate network is to use an FTP proxy on the firewall. Can I
> have Squid send all of it's FTP requests through this FTP proxy?
>
> TIA, ~eric
Received on Fri Jan 24 2003 - 18:34:24 MST

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