Skip to content

Instantly share code, notes, and snippets.

@andru255
Forked from anderprc/proxy-crunchbang
Created October 21, 2013 19:45
Show Gist options
  • Save andru255/7089726 to your computer and use it in GitHub Desktop.
Save andru255/7089726 to your computer and use it in GitHub Desktop.
Se modifica el archivo en modo adminitrador:
~ sudo [nombre_editor] /etc/environment/
y se agregan estas líneas
no_proxy="127.0.0.1,localhost"
NO_PROXY="127.0.0.1,localhost"
all_proxy=socks://172.21.0.12:3128/
ALL_PROXY=socks://172.21.0.12:3128/
http_proxy=http://172.21.0.12:3128
HTTP_PROXY=http://172.21.0.12:3128
ftp_proxy=http://172.21.0.12:3128
FTP_PROXY=http://172.21.0.12:3128
https_proxy=http://172.21.0.12:3128
HTTPS_PROXY=http://172.21.0.12:3128
Para el apt-get se modifica el archivo en modo administrador:
~ sudo [nombre_editor] /etc/apt/apt.conf.d
y se agregan estas lineas
Acquire::http::Proxy "http://172.21.0.12:3128/";
Acquire::https::Proxy "https://172.21.0.12:3128/";
Acquire::ftp::Proxy "ftp://172.21.0.12:3128/";
y actualizar las variables environment
source /etc/environment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment