Skip to main content
Drupal 8

Main navigation

  • Home
    • Question And Answer
    • NEWS
    • Projects
  • Tutorials - Drupal
    • Android
    • Other
User account menu
  • Log in

Breadcrumb

  1. Home

Internet access via Proxy

By editor , 26 July, 2016
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

Exclude (NO proxy)
export no_proxy="127.0.0.1, localhost, *.loc, *.local, 192.168.1.10, domain.com:8080"
export NO_PROXY="127.0.0.1, localhost, *.loc, *.local, 192.168.1.10, domain.com:8080"

Linux apt

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

 

Add / Edit proxy for a docker machine installed on linux ubuntu (debian, Mint ...)

(Tested on  Ubuntu 14.04.2 LTS)

Edit the file :/etc/default/docker

sudo vim /etc/default/docker

Add the proxy

export http_proxy="http://PROXY_IP:PROXY_PORT"
Example:
export http_proxy="http://192.168.100.100:3128"

Restart the docker service

sudo service docker restart

Tags

  • Server
  • Linux
  • Windows

Comments

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.

Links

  • Drupal.org
  • Drupal core release cycle
  • Drupal events with ease
  • Unit test with Drupal using PHPUnit (Drupal 10)
  • Tokens for file upload url
  • Tips for Docker
  • CKEditor inline image files usage for custom forms.
  • Install Docker on Linux Mint
  • Install PHP 8.1
  • Drupal Security Best Practices
  • Order and sort items with tabledrag
  • Add a custom service YAML container
  • Apply a patch with composer