LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-01-2011, 07:22 PM   #1
michael_reyes_garcia
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Rep: Reputation: 0
not able to connect to FTP server with SQUID


Hello,

I'm new in Squid so sorry if the question is kind of usual.

I have Squid 2.5 stable3 in a RedHAt machine, the problem i have is that i can't connect to an FTP site, i got the squid screen:

An FTP authentication failure occurred while trying to retrieve the URL: ftp://db.myftpsite.com/

Squid sent the following FTP command:

PASS <yourpassword>and then received this reply
User anonymous cannot log in.Your cache administrator is root.



--------------------------------------------------------------------------------
I'm able to browse anonymous FTP sites like ftp://ftp.ea.com, but not any with authentication.

i have setup
acl FTP proto allow ftp
http_access allow ftp

but still can't connect. I also can't connect to secure port 443 for an application in th network.

when i connect the machines outside te SQUID i can use the ftp and secure ports.
 
Old 04-02-2011, 03:04 AM   #2
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Hello and Welcome to LinuxQuestions,

Not sure about this since I cannot test it right now but I think that this:
Code:
acl FTP proto allow ftp
http_access allow ftp
should be :
Code:
acl ftp proto FTP
http_access allow ftp
Can you change that, restart Squid and try again? Let us know if it works or not.

Kind regards,

Eric
 
Old 04-02-2011, 11:05 AM   #3
michael_reyes_garcia
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Still not workingafter the change, below i poste the whole config file.

visible_hostname PROXY-1-1[/COLOR][/COLOR]
cache_mem 32 MB

maximum_object_size 10240 KB

fqdncache_size 2048

cache_store_log none


refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320

half_closed_clients off

pconn_timeout 120 second

peer_connect_timeout 30 seconds

acl all src 10.20.5.1-10.20.5.254/255.255.255.0
acl ftp src 10.20.5.1-10.20.5.253/255.255.255.0
acl full src "/etc/squid/users/full"
acl manager proto cache_object
acl ftp_pro proto http ftp gopher wais cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563 8201 9876
acl Safe_ports port 20 21 70 80 210 280 443 488 563 591 777 1024 1503 5801 8080 8201 9876 10203 20000 2095
acl FTP_ports port 20 21 8080 80
acl CONNECT method CONNECT
acl ftp proto FTP

http_access allow manager localhost
http_access allow manager

http_access allow all ftp full manager ftp_pro localhost SSL_ports Safe_ports FTP_ports CONNECT
http_access allow all !all
http_access allow all !all
http_access allow all !all
http_access allow localhost
http_access allow full
http_access allow ftp

icp_access allow all
icp_access allow ftp
icp_access allow full
icp_access allow manager
icp_access allow ftp_pro
icp_access allow localhost
icp_access allow SSL_ports
icp_access allow Safe_ports
icp_access allow FTP_ports
icp_access allow CONNECT

miss_access allow all

http_port 8080

prefer_direct on

icp_port 3130
cache_dir diskd /var/spool/squid/cache 4096 16 256 Q1=72 Q2=64
cache_effective_user squid
cache_effective_group squid

dns_nameservers 172.31.0.2 216.7.159.195

httpd_accel_with_proxy off
httpd_accel_uses_host_header off

log_icp_queries off

header_replace User-Agent SEC/Keep Security- We protect fundamental rights (Linux; Intel)

forwarded_for off
ident_lookup_access allow all ftp full manager ftp_pro localhost SSL_ports Safe_ports FTP_ports CONNECT
 
  


Reply

Tags
redhat, squidconf, squidproxy


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid 3.1.1 proxy server will not FTP ALPHATWIN Linux - Server 1 05-14-2010 07:33 PM
unable to connect to FTP using squid ganfun Linux - Software 3 05-14-2010 10:33 AM
accessing ftp server via squid zamri Linux - Networking 2 11-01-2006 08:15 PM
Suddenly unable to connect to my web server and my ftp server. HELP! Silly22 Linux - Software 4 05-23-2004 04:42 PM
Squid (proxy server) and FTP Zingaro2002 Linux - Networking 0 11-05-2003 09:42 AM


All times are GMT -5. The time now is 04:13 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration