LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-02-2003, 11:08 PM   #1
SForsgren
Member
 
Registered: Apr 2003
Location: San Jose
Distribution: Red Hat 9
Posts: 68

Rep: Reputation: 15
VSFTPD Problems from XP Box


I have VSFTPD up and running and from an external machine I can ftp to my domain and have no problems.

However, if I ftp from my XP box to my Linux box on my private network, I get:

ftp connect failed uknown error.

In the log, I see:

May 2 20:54:39 localhost vsftpd: warning: can't get client address: Bad file descriptor

If I login to AOL on my XP box and ftp, I do get logged in, but I don't see any of the directories. Then if I click on the FTP window, I get "an error has occurred".

Same exact steps from another machine (not XP) using Windows 2000 when I am VPNd to my office works fine. If I disconnect the VTP so I am on my private network again, I get logged into FTP which is further than the XP box but then after I do a bin and ls, it hangs and then says failed to connect.

How is vsftpd trying to get the address the is causing this:

May 2 20:54:39 localhost vsftpd: warning: can't get client address: Bad file descriptor

I use DHCP via my router for all boxes (3) on my internal network.

Thanks!
 
Old 05-05-2003, 12:28 AM   #2
jbirkett
LQ Newbie
 
Registered: May 2003
Location: Folsom, CA
Distribution: Red Hat 8 & 9
Posts: 13

Rep: Reputation: 0
I have a very similar setup. I have RedHat 9 installed with vsftp and am using XP. I get the same message in the log but am able to get to the directory on the Linux system. Here is what my setup is like.
1) DSL with Linksys router and firewall.
2) DMZ Host allow to specific IP address (do not use DHCP for the linux box with vsftp) - you can not be gauranteed of the same IP if you reset either system.
3) Anonymous login enabled.

Here's what happens for me:
If I ftp using an internal IP address I can ftp to the system and connect.
If I ftp using a domain name going out the router and then back in with NAT, I get an error message telling me that Windows can not access the directory.
If I dial out to my ISP and not go through my DSL, I can connect to the ftp server using a domain name.

There appears to be something in the way the router responds if I am going and then back in the same router. Other people can access the ftp server just fine from outside my internal network.

Again, I get the same message you get about not being able to resolve the address, but can still connect. The router seems to have an effect on vsftp receiving the address because of NAT.

I hope this helps.
One question comes to mind. Did you install vsftp after your initial setup or was it installed after. For vsftp to allow anonymous to work you need a directory of '/var/ftp'. During the initial install the package process created a directory of '/var/ftp/pub'.
Regards,
John
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd Problems jazee Linux - Software 6 10-14-2005 12:41 AM
vsftpd problems vswr31 Linux - Software 6 07-18-2005 01:25 PM
VSFTPD problems cwolf78 Linux - Software 10 05-12-2005 10:28 PM
iptables and vsftpd on firewall box - can't connect radiowhiz Linux - Networking 6 03-30-2005 12:03 PM
vsftpd no access with Linux box tryinlinux Linux - Security 1 09-30-2003 09:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:00 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