April 2024
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  

Categories

April 2024
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  

Pound Loadbalancer

Pound Loadbalancer

Pound is a bit more specific to HTTP/Web scenarios. It functions as a 100% Layer-7 load balancer as it does full HTTP(S) integration and has full access to the HTTP stack. What this means is that you can do some fancy routing based on cookies, url regex, and do this with SSL termination. You can combine the two and have Pound decrypt the traffic and forward to HAProxy but your setting up a scaling issue if you do.

wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
rpm –import RPM-GPG-KEY.dag.txt
rm -f RPM-GPG-KEY.dag.txt
vi /etc/yum.repos.d/dag.repo
yum –enablerepo=dag install pound

vi /etc/pound.cfg

ListenHTTP
Address 192.168.1.11
Port 80
Service
BackEnd
Address 192.168.1.14
Port 80
End
BackEnd
Address 192.168.1.15
Port 80
End
End
End

openssl req -x509 -newkey rsa:1024 -keyout local.server.pem -out local.server.pem -days 365 -nodes

ListenHTTP
Address 192.168.1.11
Port 80
END

ListenHTTPS
Address 192.168.1.11
Port 443
Cert “/root/software/local.server.pem”
Client 20
End
Service
BackEnd
Address 192.168.1.14
Port 80
End
BackEnd
Address 192.168.1.15
Port 80
End
End

ListenHTTP
Address 192.168.1.11
CheckURL “(^\/|\.html|\.css|\.jpg|favicon\.ico|robots\.txt|\.png)$”
HeadRemove “X-Forwarded-For”
MaxRequest 1024
Port 80
xHTTP 0
Service
Redirect “https://www.mohan.com”
End
Service
Redirect “https://mohan.com”
End
END

ListenHTTPS
Address 192.168.1.11
Port 443
Cert “/root/software/local.server.pem”
Client 20
End
Service
BackEnd
Address 192.168.1.14
Port 80
End
BackEnd
Address 192.168.1.15
Port 80
End
End

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>