email smartphone

Linux Proxy Server einrichten

Wenn Sie von einer IDNT Compute Cloud Instanz auf das Internet zugreifen möchten, müssen Sie den IDNT Compute Cloud Proxy Server verwenden.

System-weite Proxy-Konfiguration

Für die system-weite Konfiguration können Sie die Umgebungsvariablen in /etc/environment setzen:

http_proxy=http://proxy.idnt.net:3128
https_proxy=http://proxy.idnt.net:3128
HTTP_PROXY=http://proxy.idnt.net:3128
HTTPS_PROXY=http://proxy.idnt.net:3128
no_proxy=localhost,127.0.0.1,::1
NO_PROXY=localhost,127.0.0.1,::1

Benutzer-spezifische Konfiguration

Für benutzer-spezifische Einstellungen fügen Sie folgendes zu ~/.bashrc oder ~/.profile hinzu:

export http_proxy=http://proxy.idnt.net:3128
export https_proxy=http://proxy.idnt.net:3128
export HTTP_PROXY=http://proxy.idnt.net:3128
export HTTPS_PROXY=http://proxy.idnt.net:3128
export no_proxy=localhost,127.0.0.1,::1
export NO_PROXY=localhost,127.0.0.1,::1

Nach dem Hinzufügen der Zeilen führen Sie aus:

source ~/.bashrc

APT Proxy-Konfiguration (Debian/Ubuntu)

Für APT Package Manager erstellen Sie die Datei /etc/apt/apt.conf.d/proxy.conf:

Acquire::http::Proxy "http://proxy.idnt.net:3128";
Acquire::https::Proxy "http://proxy.idnt.net:3128";

YUM/DNF Proxy-Konfiguration (RedHat/CentOS/Fedora)

Fügen Sie folgende Zeilen zu /etc/yum.conf hinzu:

proxy=http://proxy.idnt.net:3128

Proxy-Server Details

  • Proxy-Server: proxy.idnt.net
  • Port: 3128
  • Protokoll: HTTP
  • Authentifizierung: Keine erforderlich

Testen der Proxy-Konfiguration

Um die Konfiguration zu testen, verwenden Sie:

curl -I https://www.google.com

Oder:

wget --spider https://www.google.com

Weitere Informationen

Weitere Informationen zur Proxy-Konfiguration finden Sie in unseren verwandten Artikeln für NodeJS, WordPress und PHP.