Hello all:

I'm working at installing a simple script on a server where I have sufficient sudo root privileges to invoke cpan and such, only to find it had not previously been configured.

The initial cpan configuration gets stuck at fetching:
ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY

iptables -L includes:
DROP all -- 127.0.0.0/8 anywhere

which I'd guess would maybe drop all the lynx, wget, ftp requests perhaps. My local sandbox succeeds with a wget ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY, but this client's server chokes on it, whether from inside cpan or on its own on a cli.

This is a development machine on its way to being deployed. The clients are pretty happy to have a sewn up installation. Can anyone advise me what the minimum hole in the firewall is required to run cpan and what the risks associated with opening that hole are?

If such risks are found by the client to not be warranted in a production environment, what are my alterantives to copying, building and upgrading everything from source by hand?

-- Hugh

UPDATE

Thanks Hue-Bond and Corion. That iptables command doesn't seem to move me down the road. I'm stumped by this and guess I just track dependencies for a while. Sneakernet is not really an option. There's a continent between me and this server. If I were to build a local MiniCPAN here, and then scp it onto the server, how much room would that take?

if( $lal && $lol ) { $life++; }

In reply to OT(?): cpan and iptables by hesco

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.