Using CPAN behind a firewall

CPAN insists on using FTP to download packages… If you have a firewall set up,

    sudo env FTP_PASSIVE=1 cpan