If ftp-gw is running in user@host mode with no firewall login then Squid
should be able to use it with the help of a small redirector.
#!/usr/bin/perl
$|=1;
while(<>) {
# FTP URL's already addressing the firewall
m!ftp://[^/]your.firewall.name! && next;
# FTP URL's with a password
# user = user@host ($1%40$3)
# password = password ($2)
# server = your.firewall.name
s!ftp://([^:/]*):([^\@/]*)@([^/]*)!ftp://$1%40$3:$2\@your.firewall.name!
&& next;
# FTP URL's without a password
# user = anonymous@host (anonymous%40$1)
# password = Squid@ (Squid%40)
# server = your.firewall.name
s!ftp://([^/]*)!ftp://anonymous%40$1:Squid%40\@your.firewall.name! &&
next;
} continue {
print;
}
greg wrote:
> Hello.
> I have a squid proxy set up behind a firewall.
> The packets from the squid proxy are diverted
> threw a NAT dameon on the firewall. Having failed
> to configure squid to use ftp-gw on the firewall,
-- To unsubscribe, see http://www.squid-cache.org/mailing-lists.htmlReceived on Mon Feb 19 2001 - 01:47:55 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:58:03 MST