Configuring HTTP Proxy in the rhsm.conf File
The HTTP proxy settings can be configured in the rhsm.conf
file; this is the same as configuring it in the Subscription Manager GUI. The proxy configuration is stored and used for every connection between the subscription service and the local system.
- Open the Subscription Manager configuration file.
vim /etc/rhsm/rhsm.conf
- Change the settings in the
[server]
section that relate to the HTTP proxy. All parameters are described in Table 14.7, "rhsm.conf Parameters". There are four parameters directly related to the proxy:proxy_hostname
for the IP address or fully-qualified domain name of the proxy server; this is required.
Leaving the
proxy_hostname
argument blank means that no HTTP proxy is used. proxy_port
for the proxy server port.proxy_user
for the user account to connect to the proxy; this may not be required, depending on the proxy server's configuration.proxy_password
for the password for the user account to connect to the proxy; this may not be required, depending on the proxy server's configuration.
[server] # an http proxy server to use proxy_hostname = proxy.example.com # port for http proxy server proxy_port = 443 # user name for authenticating to an http proxy, if needed proxy_user = # password for basic http proxy auth, if needed proxy_password =