Saturday, August 18, 2012

How to setup HTTP Proxy in FreeBSD

The HTTP proxy is set through environment variable HTTP_PROXY. Environment variables can be controlled during user login. Assuming the proxy is proxy.somewhere.net:3128 ensure the following in /etc/login.conf:
:setenv=HTTP_PROXY=http\c//proxy.somewhere.net\c3128:\
Update login capability database:
cap_mkdb /etc/login.conf
Re-login and ensure it is properly set:
env | grep HTTP_PROXY

No comments :

Post a Comment