Follow

How to configure OSD appliance to use a proxy

Businesses often use proxy servers to audit employee usage or to protect against data or information leaks.

In such a case you need to set a proxy for outbound access for SD Elements.

Proxy settings will need do be configured in two separate places, the second of which depends on the operating system.

All Linux systems

Add the following 6 lines to /etc/environment replacing the IP 172.30.0.2 with the IP of your proxy server, 3128 with the port of your proxy server and it there are domains or IPs that should not be accessed via a proxy add/edit the "no proxy" lines to reflect those exceptions, take special note to add lines for any internal Yum/Apt repositories that might not be accessible via the proxy server(s).

export HTTP_PROXY=http://172.30.0.2:3128/
export HTTPS_PROXY=http://172.30.0.2:3128/
export NO_PROXY=localhost,127.0.0.1,.example.com
export http_proxy=http://172.30.0.2:3128/
export https_proxy=http://172.30.0.2:3128/
export no_proxy=localhost,127.0.0.1,.example.com

Make sure the following two directories exist,

    • /docs/sde/.pip
    • /root/.pip

If they don't you can create them with the following command:

sudo -u sde_admin /bin/mkdir -p /docs/sde/.pip && sudo mkdir -p /root/.pip

Make sure both directories have a file called pip.conf containing the following entries replacing the IP 172.30.0.2 with the IP of your proxy server and 3128 with the port (do not include any empty lines):

[global]
timeout = 60
proxy = http://172.30.0.2:3128

The file /docs/sde/.pip/pip.conf must be owned by sde_admin and the file /root/.pip must be owned by root.

Ensure that the proxy details are also added to /etc/yum.conf.

proxy = http://172.30.0.2:3128

Additional on Debian/Ubuntu based systems

Create or edit a file called /etc/apt/apt.conf.d/01proxy and ensure it contains the following two lines, replace the IP 172.30.0.2 with the IP of your proxy server and 3128 with the port: 

Acquire::http::Proxy "http://172.30.0.2:3128/";
Acquire::https::Proxy "http://172.30.0.2:3128/";

 

Additional on RedHat/Centos based systems

Edit a file called /etc/yum.conf and add the following line, replace the IP 172.30.0.2 with the IP of your proxy server and 3128 with the port:

proxy=http://172.30.0.2:3128

If your proxy server requires authentication add the following lines with a username/password to use for proxy connections:

proxy_username=server-user

proxy_password=user-pass

Final steps on all systems

Finally activate the settings for your current shell by running the following command:

source /etc/environment

If your proxy server requires authentication please contact SDElements Support for details on configuring your server.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments