Net::FTP : Passive mode does not work as documented.

Ask a Question related to PERL Modules, Design and Development.

  1. #1

    Default Net::FTP : Passive mode does not work as documented.

    A few of our servers reject connection via Net::FTP with the error

    "PASV is disabled"
    >From the wording I guessed that this means that our client program
    tries to establish the connection via passive mode, but the server
    only supports active mode.
    >From the perldoc documentation of Net::FTP I concluded that active
    mode is the default when creating a Net::FTP object (unless one
    explicitly sets Passive=>0 in the constructor, which we don't). So
    it seems that the documentation for Net::FTP does not match the
    implementation.

    (Additional note:

    To double-check this, I ran the client again, but now with setting
    the environment variable FTP_PASSIVE to zero. The transfer
    now works.

    Similarily, if I set FTP_PASSIVE to 1 makes the error message
    reappear, as does an explicit call to the pasv method).

    Ronald

    ro.naldfi.scher@gmail.com Guest

  2. Similar Questions and Discussions

    1. ncftp 2.4.3 - passive mode not working?
      Can't seem to get ncftp to work in passive mode. Tried typing the following in the commandline: set passive set passive=yes passive...
    2. NET::FTP Passive Mode and PORT command
      Hello, I have a strange problem under perl 5.8 using NET::FTP On a network, a first Computer running a RedHat 9 here a trace of a Basic ftp...
    3. use ftp-upload in passive mode
      Hi, my first contact with perl and I've got a little problem. I want to do an automatic ftp upload from an OpenBSD firewall using ftp-upload. I...
    4. Control Lifetime Radically Different in Design Mode - Documented?
      Hi John, Keep in mind that the design-time rendering is not meant to be a 100% accurate representation of the runtime rendering. There are many...
    5. The Problem with Passive Mode ftp server
      "Alan Po" <alan@alanpro.com> wrote in message news:bfjkgk$q3v$1@hfc.pacific.net.hk... | Dear all | | I have set up a ftp server by using Proftp....
  3. #2

    Default Re: Net::FTP : Passive mode does not work as documented.

    [email]ro.naldfi.scher@gmail.com[/email] wrote:
    > A few of our servers reject connection via Net::FTP with the error
    > "PASV is disabled"
    > From the perldoc documentation of Net::FTP I concluded that active
    > mode is the default when creating a Net::FTP object (unless one
    > explicitly sets Passive=>0 in the constructor, which we don't). So
    > it seems that the documentation for Net::FTP does not match the
    > implementation.
    The default value for Passive is actually derived via the settings in
    Net::Config, which would have been configured when the Net:: modules
    were first built and installed.

    # Passive default for internal hosts
    perl -MNet::Config -e 'print $Net::Config::NetConfig{ftp_int_passive},"\n"'

    # Passive default for external hosts
    perl -MNet::Config -e 'print $Net::Config::NetConfig{ftp_ext_passive},"\n"'

    Chris
    Chris Davies Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139