If you can go through your firewall with e.g. lynx, presumably with a command such as /usr/local/bin/lynx -pscott:tiger then you would configure CPAN.pm with the command conf lynx "/usr/local/bin/lynx -pscott:tiger"