CPAN, LWP and Net:FTP firewall issues? Connection established transfer fails, yet ftp and wget work manual.

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

  1. #1

    Default CPAN, LWP and Net:FTP firewall issues? Connection established transfer fails, yet ftp and wget work manual.

    I assume this is a firewall issue, but seeing I'm new to perl I'm not
    sure what the problem is.

    I have Perl 5.8.00 installed on RedHat 8.0 with all kernel updates.

    My firewall prevents all outside synsythized connection other than a
    few know ports, this means that out side systems can not actively
    establish a tcp connection how ever out bound will work fine.

    I can use wget or ftp on the system to fetch the listed files with no
    problem but LWP i.e. Net:FTP seems to fail consistently. The CPAN
    setup options I took are generally the default and listed here.
    Although I only show one connection failure then an interrupt I issued
    to break the cycle, this process will fail multipule times. Is there
    any way I can tell LWP to use wget actively? of just plain old ftp, I
    can not detect ftp being called.


    ========================Session Log=========================
    [root@basex log]# perl -MCPAN -e shell

    There seems to be running another CPAN process (pid 1700).
    Contacting...
    Other job not responding. Shall I overwrite the lockfile? (Y/N) [y] y

    cpan shell -- CPAN exploration and modules installation (v1.61)
    ReadLine support available (try 'install Bundle::CPAN')

    cpan> o conf
    CPAN::Config options from /usr/lib/perl5/5.8.0/CPAN/Config.pm:
    commit Commit changes to disk
    defaults Reload defaults from disk
    init Interactive setting of all options

    build_cache 10
    build_dir /root/.cpan/build
    cache_metadata 1
    cpan_home /root/.cpan
    ftp /usr/bin/ftp
    ftp_proxy
    getcwd cwd
    gzip /bin/gzip
    http_proxy
    inactivity_timeout 0
    index_expire 1
    inhibit_startup_message 0
    keep_source_where /root/.cpan/sources
    links
    make /usr/bin/make
    make_arg
    make_install_arg
    makepl_arg
    ncftp
    ncftpget
    no_proxy
    pager /usr/bin/less
    prerequisites_policy ask
    scan_cache atstart
    shell /bin/bash
    tar /bin/tar
    term_is_latin 1
    unzip /usr/bin/unzip
    urllist
    [url]ftp://cpan.nas.nasa.gov/pub/perl/CPAN/[/url]
    [url]ftp://archive.progeny.com/CPAN/[/url]
    [url]ftp://cpan-sj.viaverio.com/pub/CPAN/[/url]
    [url]ftp://cpan.thepirtgroup.com/[/url]
    [url]ftp://cpan.uky.edu/pub/CPAN/[/url]
    [url]ftp://cpan.netnitco.net/pub/mirrors/CPAN/[/url]
    [url]ftp://cpan.mirror.redwire.net/pub/CPAN/[/url]
    [url]ftp://cpan.erlbaum.net/[/url]
    [url]ftp://cpan.digisle.net/pub/CPAN[/url]
    wait_list
    wait://ls6-www.informatik.uni-dortmund.de:1404
    wget


    cpan> get DBI
    CPAN: Storable loaded ok
    CPAN: LWP::UserAgent loaded ok
    Fetching with LWP:
    [url]ftp://cpan.nas.nasa.gov/pub/perl/CPAN/authors/01mailrc.txt.gz[/url]
    LWP failed with code[400] message[FTP return code 000]
    Fetching with Net::FTP:
    [url]ftp://cpan.nas.nasa.gov/pub/perl/CPAN/authors/01mailrc.txt.gz[/url]
    Caught SIGINT
    Got another SIGINT

    cpan> quit
    Lockfile removed.
    [root@basex log]# perl -v

    This is perl, v5.8.0 built for i386-linux-thread-multi

    Copyright 1987-2002, Larry Wall

    Perl may be copied only under the terms of either the Artistic License
    or the
    GNU General Public License, which may be found in the Perl 5 source
    kit.

    Complete documentation for Perl, including FAQ lists, should be found
    on
    this system using `man perl' or `perldoc perl'. If you have access to
    the
    Internet, point your browser at [url]http://www.perl.com/[/url], the Perl Home
    Page.

    [root@basex log]#
    ===========================End of session log=====================


    Any help will be greatly appreciated. Thanks in advance for any help
    you might provide.

    -Lee
    Leland T. Snyder Guest

  2. Similar Questions and Discussions

    1. Connection Failure on established datasources
      I'm running CF MX 7.01 - with all current hotfixes in place. This is connecting to a MS SQL Server database with the SQL drivers. We've recently...
    2. Upgrading to CPAN.pm v1.76 install Bundle::CPAN fails
      FYI Have problem Upgrading perl packages from CPAN.pm version v1.61 to version v1.76) failed with final error messages: <stuff snipped> CPAN.pm:...
    3. downloading CPAN modules behind firewall
      On 20 Aug 2003 10:45:29 -0700 eloormadhu@hotmail.com (Madhu Nair) wrote: In a nutshell, if you can access the Internet (ie your network allows...
    4. CPAN issues.
      robert@elastica.com (Robert Nicholson) wrote in message news:<24a182bd.0307191849.3f3223d2@posting.google.com>... It looks like CPAN is just...
    5. "A connection to the server could not be established" - Trying to open existing project
      I came in today and tried to edit a project that I was working with, locally, at the tail end of last week. This web project was created, hosted, ...
  3. #2

    Default Re: CPAN, LWP and Net:FTP firewall issues? Connection established transfer fails, ye

    Try disabling the firewall and test
    Unregistered 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