LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-06-2008, 01:59 PM   #1
Thakowbbery
Member
 
Registered: Mar 2005
Posts: 138

Rep: Reputation: 17
Problems with FTP + Squid


Noon,

Here's my scenario:

- 2 offices, both of them running Suse 10.1 as their firewalls/proxy;
- I'm in office A, trying to access a FTP site (Windows) in office B;
- In office A, FTP is set to use the proxy (Squid - configured in the browser);
- The FTP site in office B requires authentication.

Now, here what's happening:

- When I access the FTP site from an external site (my house), everything works fine: the browser shows me the FTP authentication window, I log in;
- When I try to access the FTP site from inside office A (using the proxy) I get the following message:

Quote:
An FTP authentication failure occurred while trying to retrieve the URL: ftp://x.x.x.x
Squid sent the following FTP command:
PASS <yourpassword>
and then received this reply
User anonymous cannot log in.
and no authentication window.

Tried access.log, didn't help much.

So ahn... help?
 
Old 03-06-2008, 11:59 PM   #2
grizly
Member
 
Registered: Nov 2006
Location: Melbourne Australia
Distribution: Centos, RHEL, Debian, Ubuntu, Mint
Posts: 128

Rep: Reputation: 16
acl ftp_server dst x.x.x.x
always_direct allow ftp_server



Just bypass proxy for that server.. while you figure out the real reason its failing.
 
Old 03-07-2008, 09:05 AM   #3
Thakowbbery
Member
 
Registered: Mar 2005
Posts: 138

Original Poster
Rep: Reputation: 17
Unfortunetly, that didn't work


Quote:
Originally Posted by grizly View Post
acl ftp_server dst x.x.x.x
always_direct allow ftp_server



Just bypass proxy for that server.. while you figure out the real reason its failing.
 
Old 05-27-2008, 09:41 PM   #4
grizly
Member
 
Registered: Nov 2006
Location: Melbourne Australia
Distribution: Centos, RHEL, Debian, Ubuntu, Mint
Posts: 128

Rep: Reputation: 16
Ahh.. I remember now,

Squid is an HTTP proxy only.. FTP is sort of fudged, you may have to add the FTP username as a squid directive.

Quote:
ftp_user name@site.com
Although, I don't think this will help with authentication.. your better off shovelling it through a VPN. (or just using sftp/ssh+sftp etc)
 
  


Reply


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
ftp through squid balajimunde Linux - Server 1 10-03-2007 02:21 PM
Squid FTP problems Astol Linux - Software 0 09-12-2007 03:19 AM
Access authenticating FTP sites using FTP Clients on XP clients via SQUID munirg2003 Linux - Networking 2 06-12-2007 10:58 PM
Squid and ftp csdhiman Linux - Server 1 04-10-2007 03:58 AM
problems with ftp and squid nesargha Linux - Software 3 06-09-2006 08:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration