5.3. Using an HTTP proxy

Some network environments may only allow external Internet access or access to content servers by going through an HTTP proxy.
Subscription Manager can be configured to use an HTTP proxy for all of its connections to the subscription service. (This is also an advanced configuration option at firstboot.) To configure the proxy:
[root@server1 ~]# subscription-manager config
      --server.proxy_hostname=proxy.example.com
      --server.proxy_port=8080
      --server.proxy_user=admin
      --server.proxy_password=secret

Note

Leaving the proxy_hostname argument blank means that no HTTP proxy is used. proxy_port for the proxy server port.