Howto setup FreeBSD behind a http proxy
August 1, 2008 – 9:37 amIf you are installing some package using FreeBSD port, it is going to download the package from the internet using fetch. If you machine is behind a proxy, you have to set the environment for HTTP_PROXY :
setenv HTTP_PROXY http://your_proxy_server:port
or add the line to your .cshrc
If the proxy need authentication, add HTTP_PROXY_AUTH :
setenv HTTP_PROXY_AUTH ‘basic:*:<username>:<password>’
then reboot your machine.