Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

CPAN through a Firewall

by tame1 (Pilgrim)
on Oct 25, 2000 at 20:22 UTC ( [id://38415]=perlquestion: print w/replies, xml ) Need Help??

tame1 has asked for the wisdom of the Perl Monks concerning the following question:

OK, stupid question of the day:
I work behind a "standard" firewall. Not sure what kind, as they dont give access to the server itself.
Anyhow, this thing ONLY passes html requests, through a proxy server which also does IP/Name translation. (Can't do a lookup from inside on an outside IP or address).

I want to use the CPAN module to keep my perl up to date, get new mods, etc.
Any ideas on how I can do this?? The regular methods in CPAN don't seem to work. (LWP, etc. didn't work).

Replies are listed 'Best First'.
Re: CPAN through a Firewall
by Fastolfe (Vicar) on Oct 25, 2000 at 21:14 UTC
    The CPAN documentation has a complete section devoted to working with CPAN behind firewalls, in conjunction with various forms of proxying. You mention that the "regular" methods don't work, but have you tried configuring things like LWP on your system to utilize, say, an HTTP proxy? This will allow any application using these modules to magically be permitted through, including CPAN.
      Uh....I've been going round and round with perl -MCPAN -e shell and I can find no way to tell it to use LWP, nor how to configure LWP to use the right proxy/user/pass. Can you help? Please email jrobiso2@visteon.com
Re: CPAN through a Firewall
by chromatic (Archbishop) on Oct 25, 2000 at 20:28 UTC
    You can download all of the stuff you think you need to install and change the URLlist to use local file:// paths:
    file://localhost/whatever/ftp/pub/CPAN/ or file:///home/ftp/pub/CPAN/
    Something like 'o conf urllist push file://blahblah' should work.

    Just go to CPAN through your web browser and grab the files you want to install.

RE: CPAN through a Firewall
by mitd (Curate) on Oct 25, 2000 at 23:44 UTC
    Here are several things to try:
    1. On the off chance that you have FTP Proxy or FTP through IP/translation and CPAN is using Net::FTP set FTP_PASSIVE=1 environment variable.
    2. If you can do http downloads through your browser then you could us wget to download to your .cpan/build directory but then if this works I don't see why LWP doesn't work.
    Bit of a shot the dark but might help.

    MitD -- Made in the Dark
    'My favourite colour appears to be grey.'

Re: CPAN through a Firewall
by Malkavian (Friar) on Oct 25, 2000 at 20:43 UTC
    What about raising this as a fault through whichever channels are appropriate for you in your company??
    If you let them know that the firewall needs to resolve CPAN happily, otherwise your work will be heavily impacted, then they usually see sense and allow the site.

    Malk
    *I lost my .sig. Do you have a spare?*
Re: CPAN through a Firewall
by runrig (Abbot) on Oct 25, 2000 at 20:29 UTC
    At one place, I found that if I logged into the network (on a WinNT box), I couldn't ftp outside the intranet, but if I didn't log into the network, I could. Don't know why, don't know if it helps.

    Another option is to download the CPAN files to your home system (or some other system) and email them to yourself at work :-)
Re: CPAN through a Firewall
by wardk (Deacon) on Oct 25, 2000 at 20:58 UTC

    Where I am currently located, you must ftp through a gateway.

    The syntax for such an operation is:

    ftp gatewayname
    then you would be prompted for the site you desire access to, the syntax would be username@site
    myuserId@ftp.site.org

    Probably easier to use your browser, but the above can be automated via perl :-)

Re: CPAN through a Firewall
by AgentM (Curate) on Oct 25, 2000 at 21:19 UTC
    Unmentioned Option 1: Tunneling...not particularly good if you're caught

    Unmentioned Option 2: get a modem- dial up as necessary8~-> company pays.

    AgentM Systems nor Nasca Enterprises nor Bone::Easy nor Macperl is responsible for the comments made by AgentM. Remember, you can build any logical system with NOR.
Re: CPAN through a Firewall
by tune (Curate) on Oct 25, 2000 at 23:20 UTC
    • What about ask your sysadmin to set up a CPAN mirror? (but i doubt if they are flexible so, and I dont know if everybody can do it :)
    • Email2FTP gateways should also help

    -- tune

Re: CPAN through a Firewall
by strredwolf (Chaplain) on Oct 26, 2000 at 17:46 UTC
    Check CPAN.pm, I think the autoinstall shell can be convinced to pull via HTTP only. (I tried it, I'm hooked).

    --
    $Stalag99{"URL"}="http://stalag99.keenspace.com";

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://38415]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-04-23 12:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found