LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   unable to connect to FTP using squid (https://www.linuxquestions.org/questions/linux-software-2/unable-to-connect-to-ftp-using-squid-807531/)

ganfun 05-13-2010 01:16 AM

unable to connect to FTP using squid
 
i am unable to connect to FTP server using squid

here is my config

Quote:

acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 198.168.0.0/16 # RFC1918 possible internal network
acl SSL_ports port 443 21 # https
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
acl bad url_regex "/etc/squid/squid-block.acl"
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access allow !Safe_ports
http_access allow CONNECT !SSL_ports
acl ftp_ports src 21
http_access allow localhost
http_access deny bad
http_access allow all
icp_access allow localnet
icp_access deny all
http_port 198.168.0.13:3128 transparent
http_port 127.0.0.1:3128 transparent
htcp_port 4827
hierarchy_stoplist cgi-bin ?
cache_mem 0 MB
cache_dir ufs /var/spool/squid 8 16 256
access_log /var/log/squid/access.log squid
ftp_user Squid@domain1.com
ftp_passive off
acl ftpusers src 0.0.0.0/0.0.0.0
http_access allow ftpusers ftp_ports
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern (Release|Package(.gz)*)$ 0 20% 2880
refresh_pattern . 0 20% 4320
acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
upgrade_http0.9 deny shoutcast
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
extension_methods REPORT MERGE MKACTIVITY CHECKOUT
acl FTP proto FTP
always_direct allow FTP
check_hostnames off
hosts_file /etc/hosts
visible_hostname minfolin

icp_port 3130

always_direct allow all

forwarded_for off
coredump_dir /var/spool/squid
I get msg windows cannot access the FTP folder operation timed out can anyone help me

TB0ne 05-13-2010 06:42 AM

Not really, since you don't provide details. What version/distro of Linux? Version of Squid? Can you access the FTP site from other machines, NOT through the Squid server??

ganfun 05-14-2010 12:41 AM

squid ftp proble,
 
I am using Ubuntu Karnic 9.10 dis

I am able to connect directly with the squid but not through

TB0ne 05-14-2010 10:33 AM

Quote:

Originally Posted by ganfun (Post 3967878)
I am using Ubuntu Karnic 9.10 dis

I am able to connect directly with the squid but not through

Can't understand this. "Connect directly with the squid but not through"?? What do you mean?

Questions, from my previous post, and more.
- Version of Squid?
- Can you access the FTP site from other machines (Windows, other Linux boxes, etc.)
- Can you access the site if you don't go through the Squid server??
- Can you access ANY FTP sites, or just not one?


All times are GMT -5. The time now is 04:00 AM.