Proxy Installation Guide
Red Hat Network Satellite
Edition 2
Abstract
Chapter 1. Introduction
1.1. Red Hat Network
- Scalability — with Red Hat Network, a single system administrator can set up and maintain hundreds or thousands of Red Hat systems more easily, accurately, and quickly than they could maintain a single system without Red Hat Network.
- Standard Protocols — standard protocols are used to maintain security and increase capability. For example, XML-RPC gives Red Hat Network the ability to do much more than merely download files.
- Security — all communication between registered systems and Red Hat Network takes place over secure Internet connections.
- View Errata Alerts — easily view Errata Alerts for all your client systems through one website.
- Scheduled Actions — use the website to schedule actions, including Errata Updates, package installs, and software profile updates.
- Simplification — maintaining Red Hat systems becomes a simple, automated process.
1.2. RHN Proxy Server
- Scalability — there can be multiple local RHN Proxy Servers within one organization.
- Security — an end-to-end secure connection is maintained: from the client systems, to the local RHN Proxy Server, to the Red Hat Network servers.
- Saves time — packages are delivered significantly faster over a local area network than the Internet.
- Saves bandwidth — packages are downloaded from RHN only once (per local Proxy Server's caching mechanism) instead of downloading each package to each client system.
- Customized updates — create a truly automated package delivery system for custom software packages, as well as official Red Hat packages required for the client systems. Custom private RHN channels allow an organization to automate delivery of in-house packages.
- Customized configuration — restrict or grant updates to specific architectures and OS versions.
- Only one Internet connection required — Because clients connect only to the RHN Proxy Server and not the Internet, they require only a Local Area Network connection to the Proxy. Only the RHN Proxy Server needs an Internet connection to contact the RHN Servers, unless the RHN Proxy Server is using a RHN Satellite Server, in which case only the RHN Satellite Server requires an Internet connection.
1.3. Terms to Understand
- Channel
- A channel is a list of software packages. There are two types of channels: base channels and child channels. A base channel consists of a list of packages based on a specific architecture and Red Hat release. A child channel is a channel associated with a base channel that contains extra packages.
- Organization Administrator
- An Organization Administrator is a user role with the highest level of control over an organization's Red Hat Network account. Members with this role can add other users, other systems, and system groups to the organization, as well as remove them. A Red Hat Network organization must have at least one Organization Administrator.
- Channel Administrator
- A Channel Administrator is a user role with full access to channel management capabilities. Users with this role are capable of creating channels and assigning packages to channels. This role can be assigned by an Organization Administrator through the Users tab of the RHN website.
- Red Hat Update Agent
- The Red Hat Update Agent is the Red Hat Network client application (up2dateoryum) that allows users to retrieve and install new or updated packages for the client system on which the application is run.
- Traceback
- A traceback is a detailed description of "what went wrong" that is useful for troubleshooting the RHN Proxy Server. Tracebacks are automatically generated when a critical error occurs and are emailed to the individual(s) designated in the RHN Proxy Server's configuration file.
1.4. How it Works
Important
- The client performs a login action at the beginning of a client session. This login is passed through one or more RHN Proxy Servers until it reaches a Red Hat Network Server.
- The Red Hat Network Server attempts to authenticate the client. If authentication is successful, the server then passes back a session token via the chain of RHN Proxy Servers. This token, which has a signature and expiration, contains user information, including channel subscriptions, username, etc.
- Each RHN Proxy Server caches this token on its local file system in/var/cache/rhn/. Caching reduces some of the overhead of authenticating with Red Hat Network Servers and greatly improves the performance of Red Hat Network.
- This session token is passed back to the client machine and is used in subsequent actions on Red Hat Network.
Chapter 2. Requirements
2.1. Software Requirements
- Base operating system — RHN Proxy Server is supported with Red Hat Enterprise Linux 5 and 6. The operating system can be installed from disc, local ISO image, kickstart, or any of the methods supported by Red Hat.RHN Proxy Server can be installed on Red Hat Enterprise Linux 5 and 6 in any virtualized environment supported by Red Hat, including Xen, KVM, and VMware.Note that for production deployments, we recommend that you deploy RHN Proxy Server as the sole application running on the underlying physical hardware to avoid contention issues. Also, be aware that functional support for virtualized environments does not always equal the performance of running on physical hardware, so you may need to carefully consider your virtualized environment of choice and any tuning guide lines recommended.Note Each purchased RHN Proxy product includes one supported instance of Red Hat Enterprise Linux Server. RHN Proxy must be installed onto a fresh installation of Enterprise Linux where RHN Proxy is the only application and service provided by the OS. Using the Red Hat Enterprise Linux OS included in RHN Proxy to run other daemons, applications, or services within your environment is not supported.Each version of Red Hat Enterprise Linux requires a certain package set to support RHN Proxy Server. Adding more packages can cause errors during installation. Therefore, Red Hat recommends obtaining the desired package set in the following ways:Note For kickstarting, specify the following package group:@BaseFor installing Red Hat Enterprise Linux via CD or ISO image, select the following package group:Minimal
- An available RHN Proxy Server entitlement within your RHN Satellite Server account.
- An available Provisioning entitlement within your RHN Satellite Server account (which should come packaged with your RHN Proxy Server entitlement).
- Access to the Red Hat Network Tools channel for the installed version of Red Hat Enterprise Linux. This channel includes thespacewalk-proxy-installerpackage that contains theconfigure-proxy.shinstallation program required to install RHN Proxy Server.
- Allrhncfg*packages installed on the Proxy (from the RHN Tools channel).
- Either therhns-certs-toolspackage installed on the Proxy (from the RHN Tools channel) for RHN Hosted users, or the secure sockets layer (SSL) CA certificate password used to generate the parent server certificate for RHN Satellite Server users.
- Configuration of the system to accept remote commands and configuration management through Red Hat Network if using the deprecated Web UI installation method. Refer to Section 4.2, “RHN Proxy Server Installation Process” for instructions.
2.2. Hardware Requirements
- A Pentium IV Processor or equivalent
- 512 MB of memory
- At least 5 GB storage for base install of Red Hat Enterprise Linux
- 6 GB storage per distribution/channel
/etc/sysconfig/rhn/rhnsd configuration file of the client systems, you will increase the load on this component significantly.
		Note
2.3. Disk Space Requirements
/var/spool/squid. The required free space allotment is 6 GB storage per distribution/channel.
		/var mount point on the system storing local packages has sufficient disk space to hold all of the custom packages, which are stored in /var/spool/rhn-proxy. The required disk space for local packages depends on the number of custom packages served.
		2.4. Additional Requirements
- Full Access
- Client systems need full network access to the RHN Proxy Server services and ports.
- Firewall Rules
- RHN strongly recommends firewalling the RHN Proxy Server solution from the Internet. However, various TCP ports must be opened on the Proxy, depending on your implementation of RHN Proxy Server:Expand Table 2.1. Ports to open on the Proxy Port Direction Reason 80 Outbound Proxy uses this port to reach rhn.redhat.com, xmlrpc.rhn.redhat.com, and your Satellite URL (depending on whether RHN Proxy is talking to either RHN Hosted or a Satellite Server). 80 Inbound Client requests come in via either http or https 443 Inbound Client requests come in via either http or https 443 Outbound Proxy uses this port to reach rhn.redhat.com, xmlrpc.rhn.redhat.com, and your Satellite URL (depending on whether RHN Proxy is talking to either RHN Hosted or a Satellite Server). 4545 Outbound If your Proxy is connected to an RHN Satellite Server, Monitoring makes connections to rhnmdrunning on client systems via this TCP port, if Monitoring is enabled and probes configured to registered systems.5222 Inbound Opening this port allows osadclient connections to thejabberddaemon on the Proxy when using RHN Push technology.5269 Outbound If your Proxy is connected an RHN Satellite Server, this port must be open to allows server-to-server connections via jabberdfor RHN Push Technology.
- Synchronized System Times
- There is great time sensitivity when connecting to a Web server running SSL (Secure Sockets Layer); it is imperative the time settings on the clients and server are reasonably close together so the that SSL certificate does not expire before or during use. It is recommended that Network Time Protocol (NTP) be used to synchronize the clocks.
- Fully Qualified Domain Name (FQDN)
- The system upon which the RHN Proxy Server will be installed must resolve its own FQDN properly.
- A Red Hat Network Account
- Customers who will be connecting to the central Red Hat Network Servers to receive incremental updates must have a Red Hat Network account. The sales representative assists with the setup of this account at the time of purchase.
- Backups of Login Information
- It is imperative that customers keep track of all primary login information. For RHN Proxy Server, this includes usernames and passwords for the Organization Administrator account and SSL certificate generation. Red Hat strongly recommends this information be copied onto two separate floppy disks, printed out on paper, and stored in a fireproof safe.
- Distribution Locations
- Since the Proxy forwards virtually all local HTTP requests to the central RHN Servers, you must take care to put files destined for distribution (such as in a kickstart installation tree) in the non-forwarding location on the Proxy:/var/www/html/pub/. Files placed in this directory can be downloaded directly from the Proxy. This can be especially useful for distributing GPG keys or establishing installation trees for kickstarts.
ntsysv or chkconfig to disable services.
		- The RHN Proxy Server Installation Guide — This guide, which you are now reading, provides the essential steps necessary to get an RHN Proxy Server up and running.
- The RHN Client Configuration Guide — This guide explains how to configure the systems to be served by an RHN Proxy Server or RHN Satellite Server. (This will also likely require referencing The RHN Reference Guide, which contains steps for registering and updating systems.)
- The RHN Channel Management Guide — This guide identifies in great detail the recommended methods for building custom packages, creating custom channels, and managing private Errata.
- The RHN Reference Guide — This guide describes how to create RHN accounts, register and update systems, and use the RHN website to its utmost potential. This guide will probably come in handy throughout the installation and configuration process.
Chapter 3. Example Topologies
- The total number of client systems to be served by the RHN Proxy Server
- The maximum number of clients expected to connect concurrently to the RHN Proxy Server.
- The number of custom packages and channels to be served by the RHN Proxy Server.
- The number of RHN Proxy Servers being used in the customer environment.
3.1. Single Proxy Topology
Figure 3.1. Single Proxy Topology
3.2. Multiple Proxy Horizontally Tiered Topology
- The rsync file transfer program can be used to synchronize packages between the Proxies
- A Network File System (NFS) share can be established between the Proxies and the custom channel repository.
Figure 3.2. Multiple Proxy Horizontally Tiered Topology
3.3. Multiple Proxy Vertically Tiered Topology
up2date functionality inherent with the product.
		Figure 3.3. Multiple Proxy Vertically Tiered Topology
3.4. Proxies with RHN Satellite Server
Chapter 4. Installation
4.1. Base Install
- Allocate sufficient space to the partition that will be used to store packages, according to the hardware requirements set forth earlier. The default location for cached Red Hat packages is/var/spool/squid, while custom packages are located in/var/spool/rhn-proxy.Note The installation program automatically calcutes the available space on the partition where/var/spool/squidis mounted and allocates up to 60 percent of the free space for RHN Proxy Server use.
- Install the packages required by RHN Proxy Server.Note You must install only the base packages, as others will cause the RHN Proxy Server installation to fail.Refer to Section 2.1, “Software Requirements” for the method to obtain the correct package group needed for each version of Red Hat Enterprise Linux.
- Enable Network Time Protocol (NTP) on the Proxy and select the appropriate time zone. All client systems should already be running thentpddaemon and be set to the correct time zone.
- Disable theipchainsandiptablesservices after installation.
4.2. RHN Proxy Server Installation Process
- Register the newly-installed Red Hat Enterprise Linux system with Red Hat Network (either the central RHN Servers or your RHN Satellite Server) using the organizational account containing the RHN Proxy Server entitlement with the command:rhn_register.
- Subscribe the client to the RHN Tools channel.
- Install the proxy installer, as the root user:yum install spacewalk-proxy-installer yum install spacewalk-proxy-installerCopy to Clipboard Copied! Toggle word wrap Toggle overflow 
- Perform the installation, as the root user:configure-proxy.sh configure-proxy.shCopy to Clipboard Copied! Toggle word wrap Toggle overflow Note In order to perform this step successfully, you will require root access to the Satellite server. Alternatively, add the--force-own-caoption to the command.The command-line installation program leads users through a series of prompts regarding RHN Proxy Server installation and initial configuration details such as installation options and SSL certificate generation. The following instructions describe the installation process:Note If you press Enter at a prompt instead of typing in an entry, the RHN Proxy Server command-line installation program uses the default response enclosed in brackets.Alternatively, if you want to use default answers without any user interaction, use the--non-interactiveoption, which will use all default responses.
- The first series of prompts are site-specific details about the installation.Proxy version to activate [5.4]: Proxy version to activate [5.4]:Copy to Clipboard Copied! Toggle word wrap Toggle overflow The Proxy version prompts you to confirm the version of RHN Proxy Server you wish to install.RHN Parent [satserver.example.com]: RHN Parent [satserver.example.com]:Copy to Clipboard Copied! Toggle word wrap Toggle overflow The RHN Parent is the domain name or address of the system that serves the Proxy, which could be the RHN Hosted servers (xmlrpc.rhn.redhat.com), or a Satellite server.Traceback email []: Traceback email []:Copy to Clipboard Copied! Toggle word wrap Toggle overflow The Traceback email is the email address to which error-related traceback messages are mailed, usually the email of the Proxy administrator. Use commas to separate more than one email address at this prompt.
- The next series of prompts are related to configuring the details for generating an SSL certificate, which is recommended to secure traffic to and from the RHN Proxy Server.Use SSL [Y/n]: y Use SSL [Y/n]: yCopy to Clipboard Copied! Toggle word wrap Toggle overflow In the Use SSL prompt, typeyto configure the RHN Proxy Server to support SSL.CA Chain [/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT]: CA Chain [/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT]:Copy to Clipboard Copied! Toggle word wrap Toggle overflow In the CA Chain prompt, press Enter to use the default path for the Certificate Authority (CA) Chain, which if the RHN Proxy is communicating with an RHN Satellite then this value is usually/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT. If it is communicating with RHN Hosted, it is usually the/usr/share/rhn/RHNS-CA-CERTfile. Custom SSL certificates must be located in the/usr/share/rhn/directory.HTTP Proxy []: HTTP Proxy []:Copy to Clipboard Copied! Toggle word wrap Toggle overflow If the RHN Proxy Server connects through an HTTP proxy, enter the proxy hostname and port number, such ascorporate.proxy.example.com:3128Copy to Clipboard Copied! Toggle word wrap Toggle overflow Enter the required details necessary to generate a proper SSL server certificate, including the Organzation name, the Organization Unit (such asEngineering), the Common Name (the domain name), as well as the details for City, State and Country. Finally, enter the email address for the administrator or technical contact in charge of SSL certificates.
- The command-line installation program prompts you to install monitoring support to RHN Proxy Server, allows you to create and populate a configuration channel for future RHN Proxy Server installations, finalizes SSL configuration, and restarts any service daemons that had modified configurations as a result of running the RHN Proxy Server installation program.You do not have monitoring installed. Do you want to install it? Will run 'yum install spacewalk-proxy-monitoring'. [Y/n]:n You do not have monitoring installed. Do you want to install it? Will run 'yum install spacewalk-proxy-monitoring'. [Y/n]:nCopy to Clipboard Copied! Toggle word wrap Toggle overflow Confirm whether or not you want to install Monitoring support on the Proxy server.Copy to Clipboard Copied! Toggle word wrap Toggle overflow Theconfigure-proxy.shprogram then configures SSL, prompting you to create a Certificate Authority password and confirm it before generating the SSL keys and the public certificate.Copy to Clipboard Copied! Toggle word wrap Toggle overflow The installer then asks whether or not you wish to create a configuration channel based on the configuration files created while runningconfigure-proxy.sh. The installer will then create a RHN Satellite Server configuration channel based on the name of the client system upon which RHN Proxy Server is installed (in the example above the sysID is 1000010000), and collects the varioushttpd, SSL,squid, andjabberdserver files that will comprise the configuration channel for the Proxy server.
- Finally, the installer starts and restarts all RHN Proxy Server related services and exits when completed.Copy to Clipboard Copied! Toggle word wrap Toggle overflow 
4.2.1. The Answer File
configure-proxy.sh program allows administrators to create answer files that contain pre-filled responses to prompts in the installation program.
			configure-proxy.sh manual page by typing man configure-proxy.sh at a shell prompt.
			answers.txt for example) with configure-proxy.sh, type the following:
			configure-proxy.sh --answer-file=answers.txt
configure-proxy.sh --answer-file=answers.txt
Chapter 5. RHN Package Manager
spacewalk-proxy-package-manager package and its dependencies.
	*.rpm) are stored on the RHN Proxy Server.
	/etc/rhn/rhn.conf configuration file.
	5.1. Creating a Private Channel
- Log in to the RHN Web interface at https://rhn.redhat.com.
- Click Channels on the top navigation bar. If the Manage Channels option is not present in the left navigation bar, ensure that this user has channel editing permissions set. Do this through the Users category accessible through the top navigation bar.
- In the left navigation bar, click Manage Software Channels and then the button at the top-right corner of the page.
- Select a parent channel and base channel architecture, then enter a name, label, summary, and description for the new private channel. The channel label must: be at least six characters long, begin with a letter, and contain only lowercase letters, digits, dashes (-), and periods(.). Also enter the URL of the channel's GPG key. Although this field is not required, it is recommended to enhance security. For instructions on generating GPG keys, refer to the RHN Channel Management Guide.
- Click .
5.2. Uploading Packages
Note
rhn_package_manager -c "label_of_private_channel" pkg-list
 rhn_package_manager -c "label_of_private_channel" pkg-list/var/spool/rhn-proxy/rhn.
		pkg-list is the list of packages to be uploaded. Alternatively, use the -d option to specify the local directory that contains the packages to add to the channel. Ensure that the directory contains only the packages to be included and no other files. RHN Package Manager can also read the list of packages from standard input (using --stdin).
		rhn_package_manager -c "label_of_private_channel" --source pkg-list
 rhn_package_manager -c "label_of_private_channel" --source pkg-list-c or --channel), the uploaded package headers will be linked to all the channels listed.
		Note
rhn_package_manager -s -c "label_of_private_channel"
 rhn_package_manager -s -c "label_of_private_channel" -s option will list all the missing packages (packages uploaded to the RHN Server not present in the local directory). You must be an Organization Administrator to use this command. The script will prompt you for your RHN username and password. Refer to Table 5.1, “rhn_package_manager options” for additional command line options.
		5.3. Command Line Options
rhn_package_manager:
		| Option | Description | 
|---|---|
| -v,--verbose | Increase verbosity. | 
| -dDIR,--dir=DIR | Process packages from directory DIR. | 
| -cCHANNEL,--channel=CHANNEL | Manage this channel — may be present multiple times. | 
| -nNUMBER,--count=NUMBER | Process this number of headers per call — the default is 32. | 
| -l,--list | List each package name, version number, release number, and architecture in the specified channel(s). | 
| -s,--sync | Check if local directory is in sync with the server. | 
| -p,--printconf | Print the current configuration and exit. | 
| -XPATTERN,--exclude=PATTERN | Exclude files matching this glob expression — can be present multiple times. | 
| --newest | Push only the packages that are newer than packages already pushed to the server for the specified channel. | 
| --stdin | Read the package names from stdin. | 
| --nosig | Push unsigned packages. By default the RHN Package Manager attempts to push only signed packages. | 
| --username=USERNAME | Specify your RHN username. If you do not provide one with this option, you will be prompted for it. | 
| --password=PASSWORD | Specify your RHN password. If you do not provide one with this option, you will be prompted for it. | 
| --source | Upload source package headers. | 
| --dontcopy | In the post-upload step, do not copy the packages to their final location in the package tree. | 
| --test | Only print the packages to be pushed. | 
| --no-ssl | Not recommended — Turn off SSL. | 
| -?,--usage | Briefly describe the options. | 
| --copyonly | Copies the file listed in the argument into the specified channel. Useful when a channel on the proxy is missing a package and you don't want to reimport all of the packages in the channel. E.g., rhn_package_manager-cCHANNEL--copyonly/PATH/TO/MISSING/FILE | 
| -h,--help | Display the help screen with a list of options. | 
Note
rhn_package_manager man page: man rhn_package_manager.
			Chapter 6. Troubleshooting
6.1. Managing the Proxy Service
rhn-proxy, that allows you to stop, start, or retrieve status on the Proxy.
		/usr/sbin/rhn-proxy start /usr/sbin/rhn-proxy stop /usr/sbin/rhn-proxy restart /usr/sbin/rhn-proxy status
/usr/sbin/rhn-proxy start
/usr/sbin/rhn-proxy stop
/usr/sbin/rhn-proxy restart
/usr/sbin/rhn-proxy status
rhn-proxy command to shut down and start the entire RHN Proxy Server and retrieve status messages from all of its services at once.
		6.2. Log Files
| Component | Log File Location | 
|---|---|
| Apache Web server | /var/log/httpd/directory | 
| Squid | /var/log/squid/directory | 
| RHN Proxy Broker Server | /var/log/rhn/rhn_proxy_broker.log | 
| RHN SSL Redirect Server | /var/log/rhn/rhn_proxy_redirect.log | 
| Red Hat Update Agent | /var/log/yum.log | 
6.3. Questions and Answers
- Q: After configuring the RHN Package Manager how can I determine if the local packages were successfully added to the private RHN channel?
- Q: I've changed the DNS name setting of my Proxy Server, and now my client systems can't update. How can I fix this?
- Q: How can I determine whether the clients are connecting to the Squid server?
- Q: The Red Hat Update Agent on the client systems does not connect through the RHN Proxy Server. How can I resolve this error?
- Q: My RHN Proxy Server configuration does not work. Where do I begin troubleshooting it?
rhn_package_manager -l -c "name_of_private_channel" to list the private channel packages known to the RHN Servers. Or visit the RHN Web interface.
					up2date -l --showall on the registered system and look for the packages from the private RHN channel.
					up2date -u command on the client system for the name change to take effect.
					/var/log/squid/access.log file logs all connections to the Squid server.
					yum update yum as root or from http://www.redhat.com/support/errata/.
					/etc/sysconfig/rhn/systemid is owned by root.apache with the permissions 0640.
					6.4. General Problems
tail all log files and then run up2date --list. You should then examine all new log entries for potential clues.
		df -h
df -hservice httpd status
service httpd statusservice squid status
service squid statustraceback_mail in /etc/rhn/rhn.conf.
		6.5. Host Not Found/Could Not Determine FQDN
/etc/hosts file. You may confirm this by examining /etc/nsswitch.conf, which defines the methods and the order by which domain names are resolved. Usually, the /etc/hosts file is checked first, followed by Network Information Service (NIS) if used, followed by DNS. One of these has to succeed for the Apache Web server to start and the RHN client applications to work.
		/etc/hosts file. It may look like this:
		127.0.0.1 this_machine.example.com this_machine localhost.localdomain \ localhost
127.0.0.1 this_machine.example.com this_machine localhost.localdomain \ localhost127.0.0.1 localhost.localdomain.com localhost
127.0.0.1 localhost.localdomain.com localhost127.0.0.1 localhost.localdomain.com localhost 123.45.67.8 this_machine.example.com this_machine
127.0.0.1 localhost.localdomain.com localhost
123.45.67.8 this_machine.example.com this_machine6.6. Connection Errors
- Confirm the correct package:rhn-org-httpd-ssl-key-pair-MACHINE_NAME-VER-REL.noarch.rpm rhn-org-httpd-ssl-key-pair-MACHINE_NAME-VER-REL.noarch.rpmCopy to Clipboard Copied! Toggle word wrap Toggle overflow is installed on the RHN Proxy Server and the correspondingrhn-org-trusted-ssl-cert-*.noarch.rpmor raw CA SSL public (client) certificate is installed on all client systems.
- Verify the client systems are configured to use the appropriate certificate.
- If using one or more RHN Proxy Servers, ensure each Proxy's SSL certificate is prepared correctly. If using the RHN Proxy Server in conjunction with an RHN Satellite Server the Proxy should have both its own server SSL key-pair and CA SSL public (client) certificate installed, since it will serve in both capacities. Refer to the SSL Certificates chapter of the RHN Client Configuration Guide for specific instructions.
- If the RHN Proxy Server is connecting through an HTTP Proxy, make sure the URL listed is valid. For instance, the HTTP Proxy URL field should not contain references to protocols, such as http:// or https://. Only the hostname and port should be included in the form hostname:port, such asyour-gateway.example.com:8080.
- Make sure client systems are not using firewalls of their own blocking required ports, as identified in Section 2.4, “Additional Requirements”.
6.7. Caching Issues
/var/spool/squid/. To clear it, stop the Apache Web server and Squid, delete the contents of that directory, and restart both services. Issue these commands in this order:
		rm -fv /var/cache/rhn/*
 rm -fv /var/cache/rhn/* chkconfig --level 2345 rhn_auth_cache off service rhn_auth_cache stop
 chkconfig --level 2345 rhn_auth_cache off service rhn_auth_cache stop rm /var/up2date/rhn_auth_cache
 rm /var/up2date/rhn_auth_cache /var/log/rhn/rhn_auth_cache.log) is turned off by default. If you do run the daemon and desire logging, turn it back on by adding the following line to the Proxy's /etc/rhn/rhn.conf file:
		auth_cache.debug = 2
auth_cache.debug = 26.8. Proxy Debugging by Red Hat
sosreport. This tool collects your Proxy's configuration parameters, log files, and database information and sends it directly to Red Hat.
		sos package installed. Type sosreport -o rhn as root on the Satellite server to create a report. For example:
		/tmp/ directory to your Red Hat representative for immediate diagnosis.
		Appendix A. RHN Proxy Server Installation via Satellite Website
Warning
- Register the newly-installed Red Hat Enterprise Linux system with Red Hat Network (either the central RHN Servers or your RHN Satellite Server) using the organizational account containing the RHN Proxy Server entitlement with the command:rhn_register.
- Grant the system a Provisioning entitlement. Visit the RHN Website (or the fully qualified domain name of the Satellite serving the Proxy), login as the Organization Administrator, and navigate to the Your RHN => Subscription Management page. Check the box of system on which the RHN Proxy Server is to be installed, select Provisioning from the drop-down box, and click the button.
- Ensure that the system is subscribed to the Red Hat Network Tools channel for its base operating system by clicking the name of the system and navigating to the System => Details page. Under the Subscribed Channels section, check the listed channels for the Tools channel. If not subscribed to this channel, click the Alter Channel Subscriptions link, check the box next to the tools channel, and then click the button to confirm your choice.
- Install therhncfg-actionspackage (which also installs therhncfgandrhncfg-clientpackages as dependencies) by first navigating to the System => Details => Software => Packages => Install subtab. Next, search forrhncfg-actionsusing the Filter by Package Name text search box. In the resulting list, select therhncfg-actionspackage and install it.
- If you will be enabling secure sockets layer (SSL) encryption on the Proxy and connecting to the central RHN Servers, install therhns-certs-toolspackage from the same Red Hat Network Tools channel and use the RHN SSL Maintenance Tool to generate the tar file required later. Refer to the SSL Certificates chapter of the RHN Client Configuration Guide for instructions.If you will be enabling SSL encryption on the Proxy and connecting to an RHN Satellite Server or another RHN Proxy Server with SSL, you will also need the CA certificate password used for the parent system.
- Log into the system through a terminal as root and run therhn_checkcommand to immediately initiate the scheduled package installation.
- Once the packages have been installed, as confirmed through the Details => Events tab, prepare the system to accept remote commands and configuration management with the following command:/usr/bin/rhn-actions-control --enable-all /usr/bin/rhn-actions-control --enable-allCopy to Clipboard Copied! Toggle word wrap Toggle overflow 
- Within the RHN website, navigate to the Details => Details => Proxy subtab.Warning In order to see the Proxy tab once a system is registered, it must be registered to the default RHEL base channel; the proxy tab will not be visible if the system is registered to a custom or cloned channel.Additionally, the RHN Proxy Server installation may replace thesquid.confandhttpd.confconfiguration files on the system to ease upgrades later. If you have edited these files and want to preserve them, they are rotated in place and can be retrieved after installation.Figure A.1. Details => Proxy 
- In the Details => Details => Proxy subtab, the pulldown menu should indicate your ability to activate the system as an RHN Proxy Server. Ensure that the correct version is selected and click the button. The Welcome page of the installation appears.Figure A.2. Welcome 
- In the Welcome page, you will find notification of any requirements not met by the system. When the system is ready, a continue link appears. Click it to go to the Terms & Conditions page.Figure A.3. Terms & Conditions 
- In the Terms & Conditions page, click the terms and conditions link to view the licensing agreement of the RHN Proxy Server. When satisfied, click the I agree link. You must agree in order to continue with the installation. For Proxies that register to a Satellite and have Monitoring enabled, the Enable Monitoring page appears next.Figure A.4. Enable Monitoring 
- In the Enable Monitoring page, you must decide whether the Proxy will be used to monitor systems served by it. For this to take place, the RHN Proxy Server must meet the requirements identified in Chapter 2, Requirements and must be connected to an RHN Satellite Server (or another Proxy connected to a Satellite). To enable monitoring on the Proxy, select the checkbox and click . The Configure RHN Proxy Server page appears.Figure A.5. Configure RHN Proxy Server 
- In the Configure RHN Proxy Server page, provide or confirm the entries for all required fields. The Administrator Email Address will receive all mail generated by the Proxy, including sometimes large quantities of error-related tracebacks. To stem this flow, consider establishing mail filters that capture messages with a subject of "RHN TRACEBACK from hostname". To list more than one administrator, enter a comma-separated list of email addresses.The RHN Proxy Hostname is the fully qualified domain name (FQDN) of the RHN Proxy Server. The RHN Parent Server is the domain name of the server serving the Proxy — either the central RHN servers, another RHN Proxy Server or an RHN Satellite Server. To connect to the central RHN servers, include the valuexmlrpc.rhn.redhat.com. To connect to a Satellite or another Proxy, enter the parent system's FQDN.If the RHN Proxy Server will connect through an HTTP proxy, configure it using the associated fields. Note that references to protocol, such ashttp://orhttps://should not be included in the HTTP Proxy Server field. Insert only the hostname and port in the form hostname:port, such asyour-gateway.example.com:3128.Note The installation process affects only the Proxy configuration file:/etc/rhn/rhn.conf. The Red Hat Update Agent (up2date) configuration file,/etc/sysconfig/rhn/up2date, must be updated manually to receive its updates from another server, such as an RHN Satellite Server.Finally, you must decide whether to enable SSL using the checkbox at the bottom. Red Hat strongly recommends that you employ this level of encryption for all traffic to and from the RHN Proxy Server. To select it, however, you must connect to the central RHN Servers (which have SSL enabled by default) or to an RHN Satellite Server or RHN Proxy Server that has SSL enabled. Connection to the central RHN Servers requires upload of the certificate tar file mentioned earlier. Connection to a Satellite or another Proxy through SSL requires the CA certificate password used in enabling SSL on the parent system.Note Refer to the chapter entitled "SSL Infrastructure" in the Red Hat Network Client Configuration Guide for more information about configuring a secure RHN Proxy Server infrastructure using SSL.If you choose not to enable SSL during installation, leave this box unchecked and refer to the SSL Certificates chapter of the RHN Client Configuration Guide to learn how to obtain this level of security post install. When finished, click . If you enabled SSL and are connecting to a Satellite, the Configure SSL page appears. If you enabled SSL and are connecting to another Proxy or the central RHN servers, the Upload SSL page appears. If you did not enable SSL but did enable Monitoring, skip to the description of the Configure Monitoring page. If you did not enable SSL or Monitoring, skip to the description of the Install Progress page.Figure A.6. Configure SSL 
- In the Configure SSL page applicable only to a Proxy connecting to an RHN Satellite Server with SSL enabled, provide the information needed to generate the server certificate. The most important item is the CA certificate password, which must match the password used while enabling SSL on the parent server. The remaining fields may match the parent server's values but can differ depending on the role of the RHN Proxy Server, for instance reflecting a different geographic location. Similarly, the email address may be the same one provided earlier for the Proxy administrator, but may instead be directed to a particular certificate administrator. Certificate expiration is configurable. As always, ensure that the values provided here exist in the backups of information described in Chapter 2, Requirements. Once finished, click continue.Figure A.7. Configure Monitoring 
- In the Configure Monitoring page, provide or confirm the hostname and IP address of the parent server connected to by the RHN Proxy Server. This must be either an RHN Satellite Server or another Proxy which is in turn connected to a Satellite. You cannot achieve Monitoring through the central RHN Servers. When finished, click . The Install Progress page appears.Figure A.8. Install Progress 
- In the Install Progress page, you may monitor the steps of the installation as they take place. Click the link to any step to go to its Action Details page. When an action begins, its status goes fromQueuedtoPicked Upand then finally toCompleted. Like the earlier package installs, you can immediately trigger these steps by running therhn_checkcommand in a terminal on the system as root. When finished, the Install Progress page will display the messageThe installation is complete.You may now begin registering systems to be served by the RHN Proxy Server. Refer to the RHN Client Configuration Guide.
- When all items on the Install Progress page are Completed, the Proxy is ready for use. You can now register systems to RHN through the Proxy.
Appendix B. Sample RHN Proxy Server Configuration File
/etc/rhn/rhn.conf configuration file for the RHN Proxy Server provides a means for you to establish key settings. Be warned, however, that errors inserted into this file may cause Proxy failures. Make configuration changes with caution.
	Note
use_ssl setting to rhn.conf for testing purposes only. Set its value to 0 to turn off SSL between the Proxy and the upstream server temporarily. Note that this greatly compromises security. Return the setting to its default value of 1 to re-enable SSL, or simply remove the line from the configuration file.
		Appendix C. Revision History
| Revision History | |||||||
|---|---|---|---|---|---|---|---|
| Revision 2-5.33.400 | 2013-10-31 | ||||||
| 
 | |||||||
| Revision 2-5.33 | 2012-07-18 | ||||||
| 
 | |||||||
| Revision 2-5 | Thu Jan 5 2012 | ||||||
| 
 | |||||||
| Revision 2-4 | Mon Aug 15 2011 | ||||||
| 
 | |||||||
| Revision 2-3 | Wed Jun 22 2011 | ||||||
| 
 | |||||||
| Revision 2-2 | Wed Jun 15 2011 | ||||||
| 
 | |||||||
| Revision 2-1 | Fri May 27 2011 | ||||||
| 
 | |||||||
| Revision 2-0 | Fri May 6 2011 | ||||||
| 
 | |||||||
| Revision 1-9 | Wed April 27 2011 | ||||||
| 
 | |||||||
| Revision 1-8 | Mon Feb 7 2011 | ||||||
| 
 | |||||||
Index
A
- additional requirements, Additional Requirements
- advantages, RHN Proxy Server
- authentication, How it Works
- authentication caching
- clearing, Caching Issues
 
C
- caching issues, Caching Issues
- channel, Terms to Understand
- creating a private channel, Creating a Private Channel
 
- Channel Adminstrator, Terms to Understand
- client configuration
- subscribe to private channel, Uploading Packages
 
- connection errors, Connection Errors
D
- disk space requirements, Disk Space Requirements
G
- general problems, General Problems
H
- hardware requirements, Hardware Requirements
- host not found error
- could not determine FQDN, Host Not Found/Could Not Determine FQDN
 
- how it works, How it Works
- HTTP Proxy Caching Server
- disk space requirements, Disk Space Requirements
 
I
- inbound ports, satellite
- 5222, Additional Requirements
 
- installation
- base, Base Install
- of RHN Proxy Server, RHN Proxy Server Installation Process
- Satellite website, RHN Proxy Server Installation via Satellite Website
 
L
- log files, Log Files
O
- Organization Administrator, Terms to Understand
- outbound ports
- 80, 443, Additional Requirements
 
P
- port
- port 443, Additional Requirements
- port 4545, Additional Requirements
- port 80, Additional Requirements
- private channel, Creating a Private Channel
- Proxy Ports, Additional Requirements
Q
- questions and answers, Questions and Answers
R
- Red Hat Network
- introduction, Red Hat Network
 
- Red Hat Update Agent, Terms to Understand, How it Works
- requirements, Requirements
- additional, Additional Requirements
- disk space, Disk Space Requirements
- hardware, Hardware Requirements
- software, Software Requirements
 
- RHN Authentication Daemon, disabling
- rhn_auth_cache, stopping, Caching Issues
 
- RHN Package Manager, How it Works, RHN Package Manager
- channels, specifying, Uploading Packages
- command line options, Command Line Options
- configuration file, RHN Package Manager
- configuring, Creating a Private Channel
- create private channel, Creating a Private Channel
- installing, RHN Package Manager
- upload package headers, Uploading Packages
- verify local package list, Uploading Packages
 
- rhn-proxy
- service, Managing the Proxy Service
 
- rhn.conf
- sample file, Sample RHN Proxy Server Configuration File
 
- rhn_package_manager , Uploading Packages (see RHN Package Manager)
S
- satellite-debug, Proxy Debugging by Red Hat
- software requirements, Software Requirements
- squid caching, Caching Issues
T
- terms to understand, Terms to Understand
- topologies, Example Topologies
- multiple proxies horizontally tiered, Multiple Proxy Horizontally Tiered Topology
- multiple proxies vertically tiered, Multiple Proxy Vertically Tiered Topology
- proxies with RHN Satellite Server, Proxies with RHN Satellite Server
- single proxy, Single Proxy Topology
 
- traceback, Terms to Understand
- troubleshooting, Troubleshooting
 
     
     
     
     
     
     
     
     
     
    