LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 10-22-2009, 12:59 PM   #1
lcsfsr1
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
Question Unable to FTP in MS Windows browser due to Linux Server Configuration


Hello,
Can anyone tell me why I am getting this error???
I have about 150 pcs with Windows XP Pro. These computers need to connect to the Windows Server 2003 FTP server through the squid proxy. It is not feasible to disable the proxy on each computer each time they need to ftp something.

All FTPing is done in ACTIVE mode.....not "passive".

Most users open a Internet Explorer Web Browser window and enter the FTP address in the browser address bar. (i.e. ftp.acme.net). Then they get a login box that pops up asking them to enter their user name and password. Once they press enter they are successfully logged into the ftp server.
Everything is fine as long as this proxy is not enabled on the client workstation.

The error below started occuring as soon as I setup this proxy server. I am not able to put all users on this proxy until this ftp problem is resolved.

I am using Ubuntu 9.04 Server / Squid 2.7 / and Dansguardian 2.9.9.7

This is the error that I am getting:

ERROR
The requested URL could not be retrieved

--------------------------------------------------------------------------------

An FTP authentication failure occurred while trying to retrieve the URL: ftp://ftp.acme.net/

Squid sent the following FTP command:

PASS <yourpassword>and then received this reply
Password not accepted.Your cache administrator is webmaster.



--------------------------------------------------------------------------------

Generated Thu, 22 Oct 2009 15:54:59 GMT by bhproxy.xxxxxxxxxxxx.com (squid/2.7.STABLE3)
 
Old 10-23-2009, 10:15 PM   #2
avijitp
Member
 
Registered: May 2005
Location: India
Distribution: FC11, Debian/Ubuntu, RHEL, Solaris, AIX, HP-UX
Posts: 161

Rep: Reputation: 32
Squid proxy is not allowing to access ftp through the browser.

How about adding following in the Squid acl and restarting it:
Code:
acl ftp proto FTP
http_access allow ftp
 
Old 10-27-2009, 07:51 AM   #3
lcsfsr1
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Sorry about the delay in getting back to you with an answer.

I added in the 2 lines you mentioned above. Here are the results after the lines were added and squid was restarted (results are the same...I got the same error):

ERROR
The requested URL could not be retrieved

--------------------------------------------------------------------------------

An FTP authentication failure occurred while trying to retrieve the URL: ftp://ftp.abc123.net/

Squid sent the following FTP command:

PASS <yourpassword>and then received this reply
Password not accepted.Your cache administrator is webmaster.



--------------------------------------------------------------------------------

Generated Tue, 27 Oct 2009 12:44:35 GMT by ctproxy.abc123.com (squid/2.7.STABLE3)


Any other thoughts????

Thank you

Bobby Howerton
 
Old 10-27-2009, 07:59 AM   #4
slimm609
Member
 
Registered: May 2007
Location: Chas, SC
Distribution: slackware, gentoo, fedora, LFS, sidewinder G2, solaris, FreeBSD, RHEL, SUSE, Backtrack
Posts: 428

Rep: Reputation: 65
Try typeing as root

modprobe ip_nat_ftp

This may not be a default module and you may have to build it. But that should fix you problem with squid

also make sure this is in your squid config file
ftp_passive off
 
Old 10-27-2009, 08:02 AM   #5
avijitp
Member
 
Registered: May 2005
Location: India
Distribution: FC11, Debian/Ubuntu, RHEL, Solaris, AIX, HP-UX
Posts: 161

Rep: Reputation: 32
Did you give following in your browser window?

Code:
 ftp://user:pass@hostname
If your FTP server is configured to deny anonymous logins then you will get a message like that. Use the ftp username and password and try that.

To make things more complex MS Internet Explorer does not appear to support authentication on proxied FTP URLs so the proxy can not cleanly ask the browser for authentication when receiving a "login failed" message from the FTP server. Many other browsers do seem to support this, and is used by Squid if you request ftp://user@host/ (without password). Please try in any other browser and see how it goes.
 
  


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
Unable to boot server due to APF firewall jokingelephant Linux - Server 1 01-29-2009 08:55 PM
mod_auth_kerb+Mozilla browser in windows + apache server in Linux kulg123 Linux - Software 0 07-08-2008 12:09 AM
plz help with configuration of ftp linux server.. rachel41 Linux - Server 1 05-05-2007 02:56 PM
Ftp to windows server from linux? jolly Linux - General 5 06-27-2003 05:58 AM


All times are GMT -5. The time now is 03:22 AM.

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