Important notes on EPEL
1. EPEL stands for Extra Packages for Enterprise Linux. 2. EPEL is not a part of RHEL but provides a lot of open
source packages for major Linux distributions. 3. EPEL packages are maintained by the Fedora team and are fully open source, with no core duplicate packages and no compatibility issues. They are to be installed using the YUM utility. The link to download the EPEL release for RHEL 6 (32-bit) is: http://download.fedoraproject.org/pub/epel/6/i386/epelrelease-6-8.noarch.rpm And for 64 bit, it is: http://download.fedoraproject.org/pub/epel/6/x86_64/epelrelease-6-8.noarch.rpm Here, epel-release-6-8.noarch.rpm is kept at /opt: Go to the / opt directory and change the permission of the files: [root@poundgateway opt]# chmod -R 755 epel-release-6-8.noarch. rpm [root@poundgateway opt]#
Now, install ‘epel-release-6-8.noarch.rpm’: [root@poundgateway opt]# rpm -ivh --aid --force epelrelease-6-8.noarch.rpm warning: epel-release-6-8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY Preparing... ################################### ######## [100%]
1:epel-release ################################### ######## [100%] [root@poundgateway opt]#
epel-release-6-8.noarch.rpm installs the repo files necessary to download the Pound package: [root@poundgateway ~]# cd /etc/yum.repos.d/ [root@poundgateway yum.repos.d]# ll total 16 -rw-r--r-- 1 root root 957 Nov 4 2012 epel. repo -rw-r--r-- 1 root root 1056 Nov 4 2012 epeltesting.repo -rw-r--r-- 1 root root 67 Jul 27 13:30 redhat.repo -rw-r--r--. 1 root root 529 Apr 27 2011 rhelsource.repo [root@poundgateway yum.repos.d]#
As observed, epel.repo and epel-testing.repo are the new added repo files. No changes are made in epel.repo and epel-testing.repo. Move the default redhat.repo and rhelsource.repo to the backup location. Now, connect the server to the Internet and, using the yum utility, install Pound:
[root@PoundGateway ~]# yum install Pound*
This will install Pound, Pound-debuginfo and will also install required dependencies along with it.
To verify Pound’s installation, type: [root@PoundGateway ~]# rpm -qa Pound Pound-2.6-2.el6.i686 [root@PoundGateway ~]#
The location of the Pound configuration file is /etc/ pound.cfg
You can view the default Pound configuration file by using the command given below’:
[root@PoundGateway ~]# cat /etc/pound.cfg
Make the changes to the Pound configuration file as shown in the code snippet given below: We will comment the section related to “ListenHTTPS” as we do not need HTTPS for now. Add the IP address 192.168.10.30 under the ‘ListenHTTP’ section. Add the IP address 192.168.10.31 and 192.168.10.32 with Port 80 under ‘Service Backend Section’, where [192.168.10.30] is for the Pound server; [192.168.10.31] for Web Server1 and [192.168.10.32 ] for Web Server2. The edited Pound configuration file is: [root@PoundGateway ~]# cat /etc/pound.cfg # # Default pound.cfg # # Pound listens on port 80 for HTTP and port 443 for HTTPS # and distributes requests to 2 backends running on localhost. # see pound(8) for configuration directives. # You can enable/disable backends with poundctl(8). # User "pound" Group "pound" Control "/var/lib/pound/pound.cfg" ListenHTTP Address 192.168.10.30 Port 80
End
#ListenHTTPS # Address 0.0.0.0 # Port 443 # Cert "/etc/pki/tls/certs/pound.pem" #End Service BackEnd Address 192.168.10.31 Port 80 End BackEnd Address 192.168.10.32 Port 80
End End [root@PoundGateway ~]#
Now, start the Pound service: [root@PoundGateway ~]# service pound start Starting Pound: starting... [root@PoundGateway ~]#
[OK]
To configure the service to be started at boot time, type: [root@PoundGateway ~]# chkconfig pound on [root@PoundGateway ~]# chkconfig –list pound pound 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@PoundGateway ~]#