LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Problems with FTP + Squid (https://www.linuxquestions.org/questions/linux-networking-3/problems-with-ftp-squid-626216/)

Thakowbbery 03-06-2008 01:59 PM

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? :D

grizly 03-06-2008 11:59 PM

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.

Thakowbbery 03-07-2008 09:05 AM

Unfortunetly, that didn't work :(


Quote:

Originally Posted by grizly (Post 3080764)
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.


grizly 05-27-2008 09:41 PM

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)


All times are GMT -5. The time now is 01:32 PM.