Configure a Proxy Server for Object Storage
If you must route your object storage server access through a proxy server, you must provide the following in a configuration file:
- The host address information
- (Optional) The authentication information
Caution: You must use a proxy server that does not require a Content-Length entity header when there is no POST data. Otherwise, your multipart upload requests fail.
Contact your system administrator to obtain the proxy-related configuration information, which includes:
- The IP address
- The port number and protocol (for example, HTTP or HTTPS) of the proxy server
- The username and password required for access, if applicable
-
Configure the required environment variables in the /usr/cvfs/config/DSM_control.conf file.
Note: You must create the file if it does not already exist.
Environment Variable Description http_proxy
Set this variable to specify the IP address and port number of the proxy server.
-
If you are using the HTTP protocol:
http_proxy=http://proxy_ip:port
export http_proxy
-
If you require authentication:
http_proxy=http://user:password@proxy_ip:port
export http_proxy
https_proxy
Set this variable to specify the IP address and port number of the proxy server.
-
If you are using the HTTPS protocol:
https_proxy=https://proxy_ip:port
export https_proxy
-
If you require authentication:
https_proxy=https://user:password@proxy_ip:port
export https_proxy
no_proxy
By default, all object storage server access is routed through the proxy server, if it is configured.
For communication within an internal network, you might prefer direct routing (for example, by-passing the proxy). You can do this by adding the proxy-exempt network/mask and host addresses to the no_proxy variable.
For example, to enable direct routing for an internal network 10.65.0.0/16, set the no_proxy variable as follows:
no_proxy=10.65.0.0/16,localhost,127.0.0.1
export no_proxy
-
-
After you configure the proxy variables, run the following command to restart StorNext:
DSM_control restart
Below is an example of DSM_control.conf configuration:
http_proxy=http://10.65.10.2:3128
no_proxy=10.65.0.0/16,localhost,127.0.0.1
export http_proxy no_proxy