- Red Hat Enterprise Linux behind an http proxy
- Red Hat Satellite 5.x / Satellite Proxy 5.x
- How to register the system on my Red Hat Satellite 5 or Red Hat Satellite Proxy 5 server via an HTTP proxy?
- Can a regular apache proxy be used for rhn_register, rhn_check, up2date, and yum?
Up2date_clienterrors when trying to access Satellite 5 server from behind a proxy
- Unable to update the server due to Proxy
Following the Red Hat Network (RHN) UI shutdown in July 2017, Red Hat is blocking new systems from registering to RHN beginning Oct. 31, 2017. Please refer to Red Hat Subscription Management Migration FAQ and Red Hat Subscription Management - Migrating to RHSM for more information.
Red Hat Enterprise Linux 3, 4 , 5, and 6 all use the rhn_register command when registering the machine with Red Hat Satellite 5 (NOTE: RHN Classic Hosted, Satellite 5.5 and older, and stand-alone Satellite Proxy do not support RHEL 7). For retrieving packages (or package information) from Red Hat Satellite 5 or Red Hat Satellite Proxy 5 server, Red Hat Enterprise Linux 3 and 4 use the up2date command, whereas RHEL 5 and 6 use the yum command. RHEL 7 systems use Red Hat Subscription Manager to register to Red Hat Customer Portal or Red Hat Satellite 6 server.
Please follow these steps to configure the machine if using rhn_register, up2date or yum to access RHN Classic, Red Hat Satellite or Red Hat Satellite Proxy via an HTTP proxy.
Change the following:
To the following:
If proxy authentication is required, set enableProxyAuth to 1:
Enter the user's password (if required) for the http proxy where it states the following:
Enter the user's username (if required) for the http proxy where it states the following:
Enter the URL for the proxy server, in
host:portformat, in the following line:
Save the file.
Also you need to setup yum for the use of you proxy server please make the following in you
Add the following configuration into
proxy=http://mycache.mydomain.com:3128 # The account details for yum connections proxy_username=proxy-user proxy_password=password.
- This article only pertains to accessing RHN Classic, Red Hat Satellite or Red Hat Satellite Proxy package repositories via an HTTP proxy. It does not cover accessing other package respositories (eg 3rd party or custom repositories) via an HTTP proxy. Information on accessing other package repositories with yum via an HTTP proxy can be found here: How can I access Red Hat Network (RHN), RHN Satellite or RHN proxy via an HTTP proxy?
- The above configuration needs to be performed before using rhn_register to register the machine via the HTTP proxy. When subsequently using up2date or yum to retrieve packages and/or package information, the configuration won't need to be changed.
- The http proxy must support byte-range addressing for successful use.
- These steps do not work with Microsoft ISA proxy servers: While using wget with ISA proxy server, it throws an error '407: Proxy Authentication Required'
- Accessing Red Hat Network: How do I access RHN Classic to download software, updates, and security errata?
- Using the rhn_register command: How to register a system through RHN classic ?
- Using the up2date and yum commands: How do I apply package updates from the Red Hat Network?
- Test the proxy connectivity
# telnet <proxy_hostname> <proxy_port>
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.