Re: FreeBSD FTP problem

From: Arcadius A. (ahouans_at_sh.cvut.cz)
Date: 07/07/03

  • Next message: Lee Harr: "Re: Printing from KDE"
    To: "Ryan Thompson" <ryan@sasknow.com>, "FreeBSD Questions" <freebsd-questions@freebsd.org>
    Date: Mon, 7 Jul 2003 01:44:32 +0200
    
    

    ----- Original Message -----
    From: "Ryan Thompson" <ryan@sasknow.com>
    To: "FreeBSD Questions" <freebsd-questions@freebsd.org>
    Sent: Monday, July 07, 2003 1:07 AM
    Subject: Re: FreeBSD FTP problem

    >
    > [ CC: freebsd-questions@FreeBSD.org, reply to private email ]
    > [ BCC: sender, kept anonymous ]
    >
    > > Hello Ryan!
    > > I've seen your post at:
    > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=Pi
    > > ne.BSF.4.10.10001272241220.56704-100000%40sasknow.com&rnum=5&prev=/gro
    > > ups%3Fq%3DFreeBSD%2B%2B425%2Bcan%27t%2Bbuild%2Bdata%2Bconnection:%2Bop
    > > eration%2Btimed%2Bout%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26se
    > > lm%3DPine.BSF.4.10.10001272241220.56704-100000%2540sasknow.com%26rnum%
    > > 3D5
    >
    > *extremely* long line wrapped. Knowing just a little bit about Google,
    > this reduces to:
    >
    >
    http://groups.google.ca/groups?threadm=Pine.BSF.4.10.10001271959170.55593-100000_sasknow.com%40ns.sol.net
    >
    > But, yes... That was little piece of history! :-)
    >
    > > I'm having exacly the same problem with my FreeBSD4.8.
    > >
    > > Some houres ago... eveything was Ok.... but I don't know what has
    > > changed.... I can still FTP the FeeBSD server from my windows box....
    > > but nothing more.... just the same arror as the one you've described:
    > > "... 425 can't build data connection: operation timed out ..." :-(((
    > >
    > > Do you have any idea about how to get around this?
    >
    > Well, in my case, it turned out to be pilot error... FTP is a tricky
    > protocol to allow through default-deny firewalls, and I had simultaneous
    > bugs in my firewall config *and* FTPd config, with respect to passive
    > transfers. It took me a while to spot.
    >
    > Check your firewall config carefully, and make sure you have a good
    > understanding of how the FTP protocol works (in active and passive
    > modes). Completely open your firewall temporarily (i.e., ipfw add 201
    > allow ip from any to any) and verify that things work there. If things
    > work there (or fail differently), the problem is with your firewall (and
    > possibly FTPd configuration, if you're using the ephemeral port range
    > for PASV). If your tests fail in *exactly* the same manner as before,
    > including the same timeout delays, you can ignore your firewall for the
    > time being (but leave it open until you get FTP working, and *then*
    > restrict it, so you're only testing one unknown at a time). Try running
    > tcpdump and sockstat on the server to see what's coming and going for
    > FTP traffic. /ports/net/trafshow might be helpful, too.
    >

    Hello!
    Thanks for the reply!
    But I'm not running any firewall on my server...
    Here's my /etc/rc.conf
    <rc.conf>
    ..
    ..
    #named_enable="YES"
    firewall_enable="NO"
    #natd_enable="NO"
    #firewall_type="open"
    #firewall_script="/etc/rc.ipfw"
    enable_quotas="YES"
    check_quotas="NO"
    linux_enable="YES"
    ...
    ...
    </rc.conf>

    So, my problem shouldn't be with the firewall on my server...

    About the configuration of FTPd, I cannot find the config file (ftpd.conf
    or ftpd.config or ftpd.cf )on my server(FreeBSD4.8 stable, built yesterday).

    Note that I'm trying to connect to FreeBSD from a windows workstation....
    both the workstation and the FreeBSD server are in the same LAN.... From my
    Windows box, I can easilly connect via FTP to other Linux sercers in my LAN
    or even out of the LAN.. But when I connect to my FreeBSD server, it connecs
    well... but I cannot do anything useful on the server.... I get the error
    "...425 can't build data connection: operation timed out..."
    My server was running FreeBSD4.6 before and I didn't have any trouble with
    FTPd .... I just upgraded yesterday.... and still, I haven't noticed this
    problem.... I start getting this error just a while ago... :-( ... I've
    rebooted the server... but it didn't help

    Thanks for the support.

    Arcadius.

    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Lee Harr: "Re: Printing from KDE"

    Relevant Pages

    • Re: Being hacked...
      ... Are you offering a webserver and ftp server to users on the internet as per having ... FTP and HTTP open? ... For internet attacks what I would look for is patterns in the firewall ... I am not an expert on IIS by any means but I do know if you are using FTP and IIS you ...
      (microsoft.public.win2000.security)
    • Re: Bug with W2K3, SP1, Windows Firewall and FTP
      ... Port) in the Exceptions tab and uncheck the pre-defined FTP Server in the ... list and exception is allowed (of coz tight to the scope of your exception ... I decided to try adding a port 21 in the firewall exception list just to ...
      (microsoft.public.inetserver.iis.ftp)
    • Re: Bug with W2K3, SP1, Windows Firewall and FTP
      ... I only enabled the FTP Server service in advance settings. ... just the 'network connection setting' in the firewall advanced tab or you ... Windows Firewall behavior? ...
      (microsoft.public.inetserver.iis.ftp)
    • Re: Can Somone Tell Me If We Have a Hacker?
      ... your firewall to never see that stuff again. ... Those types of attacks DO work. ... beginners out there do that stuff thinking no one will find their FTP site. ... FTP server" which is probably not an option. ...
      (microsoft.public.inetserver.iis.security)
    • Re: freebsd-newbies help....
      ... I've gotten freeBSD 5.2 and 5.3 to do alot of ... how to add qq client protocol for gaim on ... Which type of FTP do I have ... I know that a client and a server aren't ...
      (freebsd-newbies)