LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   VSFTPD Problems from XP Box (https://www.linuxquestions.org/questions/linux-general-1/vsftpd-problems-from-xp-box-57915/)

SForsgren 05-02-2003 11:08 PM

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!

jbirkett 05-05-2003 12:28 AM

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


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