Your best friend for file transfer.

Fetch application logoFetch

Cannot get file listing with firewall ON and PASV set ON (3 posts)

  • Started 6 years ago by rdonalds
  • Latest reply 6 years ago from rdonalds
  • rdonalds Member

    HI,

    Having a strange time working this out, most computer we have are ok but one gets firewall errors when trying to connect to our internal ftp server. I have tried many different combinations, with the firewall off it is fine, but once it is on it will not get a file list of xfer any files.. Has anyone had this trouble?

    The Fetch transcript

    Fetch 5.3 (5D161) PowerPC running on Mac OS X 10.4.11 (8S165) PowerPC English
    StuffIt Engine 0x820, StuffIt SDK Version 10.1.1b1
    Partial serial FETCH*****-****-**** *
    Connecting to ftp.*****.com.au port 21 (Mac OS X firewall is on) (19/8/08 10:16:36 AM)
    Connected to 192.168.100.132 port 21 (19/8/08 10:16:36 AM)
    220 theserver ***** - Data will be retained for 30 days. New FTP server.
    ADAT
    530 Please login with USER and PASS.
    AUTH This command is checking whether this server supports Kerberos or GSS security, see RFC 2228
    530 Please login with USER and PASS.
    USER theuser
    331 Please specify the password.
    PASS
    230 Login successful.
    SYST
    215 UNIX Type: L8
    PWD
    257 "/"
    MACB ENABLE
    500 Unknown command.
    PWD
    257 "/"
    TYPE A
    200 Switching to ASCII mode.
    PORT 10,25,103,2,192,116
    200 PORT command successful. Consider using PASV.
    LIST
    Active mode connection blocked by Mac OS X firewall, port 49268
    ABOR
    ftp_list: 2,-30030 (state == GETTING_LIST)
    ftp_list: tw->port_retries == 0, retrying file list
    Connecting to ftp.*****.com.au port 21 (Mac OS X firewall is on) (19/8/08 10:17:11 AM)
    Connected to 192.168.100.132 port 21 (19/8/08 10:17:11 AM)
    220 theserver ***** - Data will be retained for 30 days. New FTP server.
    ADAT
    530 Please login with USER and PASS.
    AUTH This command is checking whether this server supports Kerberos or GSS security, see RFC 2228
    530 Please login with USER and PASS.
    USER theuser
    331 Please specify the password.
    PASS
    230 Login successful.
    SYST
    215 UNIX Type: L8
    PWD
    257 "/"
    MACB ENABLE
    500 Unknown command.
    PWD
    257 "/"
    TYPE A
    200 Switching to ASCII mode.
    EPSV
    229 Entering Extended Passive Mode (|||33271|)
    Making data connection to 192.168.100.132 port 33271
    ABOR
    500 Unknown command.
    PORT 10,25,103,2,192,119
    500 Unknown command.
    Active mode connection blocked by Mac OS X firewall, port 49271
    ftp_list: 2,-30031 (state == GETTING_LIST)
    Update check skipped at 19/08/2008 10:18 AM (next check after 27/08/2008 10:58 PM)

    The Console output
    Fetch 5.3 (5D161): --- BEGIN FETCH ERROR ---
    Fetch 5.3 (5D161): FST2/SKoRHAnkAg21kAIcMEAIdyEAId4kAaoBkAcQBEATEvkA8QpEA7cBJCCYAJBpB97IJB94rJMqyyJMqwbZMvE0pMvETkANMswAA
    Fetch 5.3 (5D161): FST2ldAAAKMAAAJcQAAAAP////w=
    Fetch 5.3 (5D161): FST2/SKoRHAnkAg21kAIcMEAIdyEAId4kA7M90AR/9UASAqkAScz0AuCREAjJM0AjJS0AaoEkAcQBEATEvkA8QpEA7cBJCCYAJBpB9
    Fetch 5.3 (5D161): FST27IJB94rJMqyyJMqwbZMvE0pMvETkANMswAAldAAAKMAAAJcQAAAAP////w==
    Fetch 5.3 (5D161): Fetch could not get the file list because data connections were blocked by both a firewall at the server and by the Mac OS X firewall. (Ask the server administrator to allow passive mode data connections through their firewall, or turn off the Mac OS X firewall in the Sharing pane of System Preferences.)
    Fetch 5.3 (5D161): --- END FETCH ERROR ---

    Posted 6 years ago #

  • Scott McGuire Administrator

    Hi,

    It can be tricky to get FTP to work when both the Mac and the server are behind a firewall, as appears to be the case here.

    However, I see that Fetch is first attempting an active-mode connection, not passive, and then Fetch is falling back and trying a less-well-supported version of passive (which Fetch 4 had a setting for controlling; my guess is you used Fetch 4 at some point in the past on this machine). So let's fix those two problems and see if that helps.

    Please do the following:

    * Quit Fetch.
    * Open the Applications folder.
    * Open the Utilities folder.
    * Open the Terminal application.
    * At the prompt, type:

    defaults write com.fetchsoftworks.Fetch PreferEpsv -bool false

    (It's important to type that exactly; you may want to copy and paste from here.)

    * Next, open Fetch again.
    * Go to the Fetch menu, and choose Preferences.
    * Click the General tab.
    * Check the "Use passive mode transfers" checkbox (PASV).
    * Close the Preferences window.
    * Try connecting to the problem server again.

    Let us know if that works or not. If it does not work, please send a transcript from that connection attempt.

    Thanks,

    Scott McGuire
    Fetch Softworks

    Posted 6 years ago #

  • rdonalds Member

    Hi Scott,

    Yes this worked, I am now able to connect.
    Thank you for your help.

    Regards
    rdonalds

    Posted 6 years ago #

Reply

  • Or nickname, if you prefer.
  • This will be kept confidential.
  • This is to ensure that you’re a person, not a spambot.