WU-FTP slow in connecting up

Posted on 2005-04-18
Last Modified: 2008-03-10
I am running WU-FTP on a linux box( rmstreamer) RedHat 7.1 with 2 network cards.
One ATM-25 card connection to the external network via a XYLAN switch.
A ethernet nic card connection the internal network.

When connecting to the FTP server via the internal networkting there is no issue.
Connection can be established immediately. I have checked the /etc/resolve.conf and it
appears to work fine. So the problem is not with resolving.

When connecting via the ATM card from the exterior the connection takes
a long time to establish.
This is what I get
               [atma@oldguard atma]$ ftp
                Connected to (

The username and password appear after approximatley 30 seconds
I have capture the tcpdump for the ATM and ethernet connections

Tcpdump - Ehternet Connection

13:47:51.045689 < > S 2435518111:2435518111(0) win 16384 <mss 1460,nop,nop,nop,nop>(DF)
13:47:51.046087 < > . 2435518112:2435518112(0) ack 762101979 win 17520 (DF)
13:47:51.049171 < > R 0:0(0) ack 761689318 win
13:47:51.272011 < > . 0:0(0) ack 69 win 17452 (DF)

tcpdump for the ATM card:

13:52:04.995831 < > S 2346538258:2346538258(0) win 5840 <mss 1460,nop,nop,timestamp 1564373402 0,nop,wscale 0> (DF)
13:52:05.015831 < > . 2346538259:2346538259(0) ack 1042881203 win 5840 < nop,nop,timestamp 1564373403 1680488> (DF)
13:52:35.115831 < > . 0:0(0) ack 69 win 5840 <nop,nop,timestamp 15643764 08 1683492> (DF) [tos 0x10]

Once the connection has been established, the speed of upload and download is OK.
I have also removed the firewall rules on the linux box with out any success.

Could any one suggestsome pointers how to solve the problem

Thank you in advance.

Question by:asidu
    LVL 4

    Accepted Solution

    I guess there are two possible causes:

    1) DNS -- wf-ftpd probably wants to log client's FQDN (fully qualified domain name)
    2) ident -- it may also try to check (via auth protocol) which user uses FTP.

    Look for configuration options and try to disable that features in wu-ftpd (I'm not familar with it so I cannot give you any hint).

    Good luck!

    LVL 38

    Assisted Solution


      DNS resolving is the key factor to slow down the connection. Add
    dns resolveroptions -dnsrch
       --- turns off the dnsrch option (search the domain path).

    into /etc/ftpaccess
    and restart the wu-ftp (or xinetd).
    LVL 12

    Author Comment

    Thanks guys.
    Could not resolve the issue by putting the  line
    dns resolveroptions -dnsrch
    in the /etc/ftpaccess

    Instead the problem has been resolved by editing the

                 log_on_failure   +=DURATION USERID
                 log_on_failure    +=USERID

    removed the USERID from the two lines
                 log_on_failure   +=DURATION
                 log_on_failure    +=

    Restarted the xinetd service.

    Now able to log in with out the delay.

    Thank you for the pointers.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
    Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now