Support This Site burning void logo
 
Blogs:
Reviews
Site Blog
Writers' Exercises
Engineering Ardor
 
Resources:
Roleplaying
Writing
Cooking
Computers
Links
 
Cafepress Shops:
Stuff for Gamers
Caffeinated Chicanery
 
Admin:
Home
About Us
Contact Us
Twilight Time list
Site Update list

Sponsors:


(Your Link Here)
 
Text Link Ads
 
 
Search Now:
In Association with Amazon.com
 
 

Home --> IAQ -->

Using CPAN Behind a Firewall

By Jeffrey Howard
All rights reserved unless noted otherwise

 

Occasionally, I've had trouble getting Perl modules from CPAN when using computers behind firewalls. Each of the many communication schemes fails after a lengthy timeout period. What's happening is that all of these methods of grabbing a file are all using the same basic protocol: FTP. FTP tries to open a separate connection for data, from the server to your client machine. If you're behind a firewall that doesn't allow incoming connections, the process will fail.

To fix the problem, try using FTP passive mode, which has your client machine initiate the connection for the data transfer. You can do this by setting the environment variable FTP_PASSIVE to 1. How you do this depends on your command shell. I use tcsh, so the command looks like:

setenv FTP_PASSIVE 1

jhoward@burningvoid.com

 
 
Google
 
Web burningvoid.com

This information is provided "as is," with no warranty or guaranty. The IAQ pages have not been maintained in some time; they're being kept up because, judging by the traffic and link-backs, people still find them useful.
Copyright 1998-2004 by Jeffrey Howard and Heather Grove, except where stated otherwise.