Re: Mac client ftp open data connection errors

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Well, I've determined the Mac firewall is what's preventing this from
working since when I turn it off or enable the FTP Server/Service on the Mac
(which automatically enables FTP on the firewall), FTP client access to the
SBS server works fine. This doesn't seem to be the best solution as you
shouldn't have to open up a personal firewall (and actually run the FTP
Server) on a client to access a server.

But anyway, it is a combination of the passive mode and the firewall. What's
weird is that on the Mac Firewall configuration screen it specifically says:

"To use FTP to retrieve files while the firewall is on, enable passive FTP
mode using the Proxies tab in Network Preferences."

Well, I've tried that over and over and it doesn't help. I've left some info
believe that I typed before I determined this about the Mac firewall in case
that helps at all. I'm still working on this, but sure appreciate any input
you have on a solution. Thanks.

Steve

> What happens if you type 'passive' at the FTP command prompt and then
> typ 'dir'?
>
Well, if I type 'passive on' I get this:

ftp> passive on
Passive mode: on; fallback to active mode: off.
ftp> dir
500 'EPSV': command not understood
227 Entering Passive Mode (xxx,xxx,xxx,xxx,17,35).
ftp: connect: Operation timed out

If I type 'passive off' I get this:

ftp> passive off
Passive mode: off; fallback to active mode: off.
ftp> dir
500 'EPRT |1|192.168.0.101|55932|': command not understood
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.

Here it hangs until I do a ctrl-c and then I get this:

receive aborted. Waiting for remote to finish abort.
425 Can't open data connection.
421 Timeout (120 seconds): closing control connection.

The other option is 'passive auto' which does this:

ftp> passive auto
Passive mode: on; fallback to active mode: on.
ftp> dir
500 'EPSV': command not understood
227 Entering Passive Mode (xxx,xxx,xxx,xxx,19,200).
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.

Another hang here until ctrl-c which then gives:

receive aborted. Waiting for remote to finish abort.
425 Can't open data connection.
500 '?ABOR': command not understood

>
>> Using CuteFTP on the Mac with the Data Connection preference set to PASV I
>> get the following:
>>
>> PASV
>> 227 Entering Passive Mode (xxx,xxx,xxx,xxx,194,125).
>>
>> Then it hangs for a couple minutes before CuteFTP pops up a Local System
>> Error.
>
> Hmmm. This sounds like a firewall interfering with the FTP transfer.
> This is happening on the local network, right?
>
Not sure what you mean here. My mac is across the internet from the sbs
server (not on the same lan, if that's what you mean).

>> So, I'm still wondering if it's a passive mode thing. Any thoughts?
>
> Yes, I believe it's still related to active mode vs. passive mode. See
> what happens when you set passive mode in the command-line FTP tool.
>
> -Eriq


.



Relevant Pages

  • Re: Passive Mode issue
    ... in the windows firewall and the network firewall with the same results. ... and the ftp site is bound to a specific public IP. ... The server will timeout from all users trying passive mode. ... passive port range for IIS and opened those ports in the firewall, ...
    (microsoft.public.inetserver.iis.ftp)
  • FC3: no route to host with enabled firewall
    ... i've problem with my firewall. ... of my outgoing connections are filtered. ... ftp> ls ... 227 Entering Passive Mode ...
    (Fedora)
  • Re: outgoing firewall rules
    ... for ftp you need inbound 21 and outbound 20 (active mode) ... in passive mode, you need a lot more, google 'passiveportrange' ... > original provider's firewall allowed all outgoing traffic for the servers. ...
    (microsoft.public.inetserver.iis)
  • RE: FTP Client issues
    ... when I use FileZilla or smartFTP, ... 227 Entering Passive Mode. ... > after logging on the FTP server: ... > | Thread-Topic: FTP Client issues ...
    (microsoft.public.windows.server.sbs)
  • Re: FTP on IIS6.0 Not Working
    ... can you login via ftp.exe to your IIS server? ... >From a remote machine using ftp.exe I can login and it accepts my password. ... (that's without passive mode checked...with passive mode checked it just ... server seem to indicate that I successfully logged in to ftp, ...
    (microsoft.public.inetserver.iis.ftp)