email smartphone

Configure Linux Proxy Server

If you want to access the internet from an IDNT Compute Cloud instance, you must use the IDNT Compute Cloud proxy server.

System-wide Proxy Configuration

For system-wide configuration, you can set the environment variables in /etc/environment:

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

User-specific Configuration

For user-specific settings, add the following to ~/.bashrc or ~/.profile:

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

After adding these lines, run:

source ~/.bashrc

APT Proxy Configuration (Debian/Ubuntu)

For the APT package manager, create the file /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 Configuration (RedHat/CentOS/Fedora)

Add the following lines to /etc/yum.conf:

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

Proxy Server Details

  • Proxy Server: proxy.idnt.net
  • Port: 3128
  • Protocol: HTTP
  • Authentication: Not required

Testing the Proxy Configuration

To test the configuration, use:

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

Or:

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

More Information

For more information about proxy configuration, see our related articles for NodeJS, WordPress, and PHP.