Skip to content

Instantly share code, notes, and snippets.

Created May 27, 2013 12:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/5656901 to your computer and use it in GitHub Desktop.
Save anonymous/5656901 to your computer and use it in GitHub Desktop.
Be happy with Ubuntu and HTTP Proxy
#This is an simple proxy configuration for Ubuntu (tested only in Ubuntu)
#With this configuration you will shurf on web, use apt or aptitude, use curl
#and use the composer (getcomposer.org)
#Just for proxy work correct
export http_proxy="http://username:password@192.168.0.253:8080"
export https_proxy="http://username:password@192.168.0.253:8080"
export HTTP_PROXY="http://username:password@192.168.0.253:8080"
export HTTPS_PROXY="http://username:password@192.168.0.253:8080"
export FTP_PROXY="http://username:password@192.168.0.253:8080"
export HTTP_PROXY_REQUEST_FULLURI=false
#Alias for curl. Only Because of proxy
alias curl="curl --proxy http://username:password@192.168.0.253:8080"
#if you want by pass the proxy
export bypassproxy="ssh user@www.yourserver.com -D8080 -C &"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment