Internet access via Proxy

Submitted by editor on Tue, 07/26/2016 - 14:07
Question

How to configure network connexion via a proxy server ?

For the examples, IP = 192.168.100.100, Port=3128

Window

Add Proxy server to the Windows environment variable. (Controle panel -> System -> Advance settings -> variable -> variable system)
PROTOCOLE_proxy  NAME:PASSWORD:HOST:IP
Ex:
http_proxy http://192.168.100.100:3128
https_proxy http://192.168.100.100:3128

 

Linux (Debian, Mint ...)

export http_proxy=http://192.168.100.100:3128

Create a file /etc/profile.d/proxy.sh
Add:
export PROTOCOLE_proxy =NAME:PASSWORD:HOST:IP
Ex:
export http_proxy=http://192.168.100.100:3128
export https_proxy=http://192.168.100.100:3128
export HTTP_PROXY=http://192.168.100.100:3128
export HTTPS_PROXY=http://192.168.100.100:3128

Check proxys :  env | grep -i proxy

Linux apt

Create file : /etc/apt/apt.conf.d/99HttpProxy
Add:
Acquire::http::Proxy "http://192.168.100.100:3128";

Add new comment

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.