<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tetrain.com/index.php?action=history&amp;feed=atom&amp;title=JIL_india_HA_proxy</id>
	<title>JIL india HA proxy - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tetrain.com/index.php?action=history&amp;feed=atom&amp;title=JIL_india_HA_proxy"/>
	<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=JIL_india_HA_proxy&amp;action=history"/>
	<updated>2026-07-27T11:10:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=JIL_india_HA_proxy&amp;diff=4299&amp;oldid=prev</id>
		<title>Admin: Auto-created from uploaded PDF text extraction</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=JIL_india_HA_proxy&amp;diff=4299&amp;oldid=prev"/>
		<updated>2026-07-26T16:27:09Z</updated>

		<summary type="html">&lt;p&gt;Auto-created from uploaded PDF text extraction&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;Auto-generated from the uploaded PDF [[:File:JIL_india_HA_proxy.pdf|JIL_india_HA_proxy.pdf]]. This is an extracted-text rendering for searchability; see the original PDF for exact formatting, diagrams, tables, and images.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
HA proxy Installation and configuration&lt;br /&gt;
&lt;br /&gt;
172.16.118.213 mta1.jalindia.co.in&lt;br /&gt;
172.16.118.214 mta2.jalindia.co.in&lt;br /&gt;
172.16.118.211 haproxy1.jalindia.co.in&lt;br /&gt;
172.16.118.212 haproxy2.jalindia.co.in&lt;br /&gt;
172.16.118.232 Virtual IP&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Reference Doc -&lt;br /&gt;
https://wiki.zimbra.com/wiki/Zimbra_Proxy_HA&lt;br /&gt;
&lt;br /&gt;
Configure Local repo&lt;br /&gt;
&lt;br /&gt;
Add below entry in /etc/hosts&lt;br /&gt;
172.16.118.213 mta1.jalindia.co.in&lt;br /&gt;
172.16.118.214 mta2.jalindia.co.in&lt;br /&gt;
172.16.118.211 haproxy1.jalindia.co.in&lt;br /&gt;
172.16.118.212 haproxy2.jalindia.co.in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install HA proxy package&lt;br /&gt;
   1.​yum install haproxy&lt;br /&gt;
Install keepalived package&lt;br /&gt;
   1.​yum install keepalived&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Move existing haproxy file to .bkp&lt;br /&gt;
&lt;br /&gt;
   1.​mv /etc/haproxy/haproxy.conf&lt;br /&gt;
      /etc/haproxy/haproxy.conf.bkp&lt;br /&gt;
Create new file&lt;br /&gt;
   1.​vi /etc/haproxy/haproxy.conf&lt;br /&gt;
Add below configuration&lt;br /&gt;
global&lt;br /&gt;
&lt;br /&gt;
    log /dev/log local0&lt;br /&gt;
    log /dev/log local1 notice&lt;br /&gt;
    chroot /var/lib/haproxy&lt;br /&gt;
    stats socket /run/admin.sock mode 660 level admin&lt;br /&gt;
    stats timeout 30s&lt;br /&gt;
    user haproxy&lt;br /&gt;
    group haproxy&lt;br /&gt;
    daemon&lt;br /&gt;
    tune.ssl.default-dh-param    2048&lt;br /&gt;
&lt;br /&gt;
defaults&lt;br /&gt;
    log global&lt;br /&gt;
    mode http&lt;br /&gt;
    option httplog&lt;br /&gt;
    option dontlognull&lt;br /&gt;
    option http-server-close&lt;br /&gt;
    option forwardfor&lt;br /&gt;
    timeout connect 5000ms&lt;br /&gt;
    timeout client 50000ms&lt;br /&gt;
    timeout server 50000ms&lt;br /&gt;
&lt;br /&gt;
frontend https-in&lt;br /&gt;
     bind *:443 ssl crt /etc/haproxy/certs/bundle.pem&lt;br /&gt;
     default_backend nginx-backend&lt;br /&gt;
&lt;br /&gt;
backend nginx-backend&lt;br /&gt;
    balance roundrobin&lt;br /&gt;
    http-request add-header X-Forwarded-Proto https&lt;br /&gt;
    http-request add-header X-Forwarded-Port 443&lt;br /&gt;
    option forwardfor&lt;br /&gt;
    http-response add-header Cache-Control no-cache&lt;br /&gt;
    cookie SERVER_USED insert indirect nocache&lt;br /&gt;
    server nginx1 172.16.118.213:443 check ssl verify none&lt;br /&gt;
    server nginx2 172.16.118.214:443 check ssl verify none&lt;br /&gt;
&lt;br /&gt;
frontend smtp&lt;br /&gt;
     bind *:25&lt;br /&gt;
     mode tcp&lt;br /&gt;
     log global&lt;br /&gt;
     option tcplog&lt;br /&gt;
     default_backend bk_smtp&lt;br /&gt;
&lt;br /&gt;
backend bk_smtp&lt;br /&gt;
    mode tcp&lt;br /&gt;
    log global&lt;br /&gt;
    balance leastconn&lt;br /&gt;
    option tcplog&lt;br /&gt;
    server mta1 172.16.118.213:25 check port 25&lt;br /&gt;
    server mta2 172.16.118.214:25 check port 25&lt;br /&gt;
&lt;br /&gt;
frontend submission&lt;br /&gt;
     bind *:587&lt;br /&gt;
     mode tcp&lt;br /&gt;
     default_backend bk_submission&lt;br /&gt;
&lt;br /&gt;
backend bk_submission&lt;br /&gt;
    mode tcp&lt;br /&gt;
    server submit1 172.16.118.213:587 check port 587&lt;br /&gt;
    server submit2 172.16.118.214:587 check port 587&lt;br /&gt;
&lt;br /&gt;
frontend imap&lt;br /&gt;
     bind *:143&lt;br /&gt;
     mode tcp&lt;br /&gt;
     default_backend bk_imap&lt;br /&gt;
&lt;br /&gt;
backend bk_imap&lt;br /&gt;
    mode tcp&lt;br /&gt;
    balance leastconn&lt;br /&gt;
    server imap1 172.16.118.213:143 check port 143&lt;br /&gt;
    server imap2 172.16.118.214:143 check port 143&lt;br /&gt;
&lt;br /&gt;
frontend pop3&lt;br /&gt;
     bind *:110&lt;br /&gt;
     mode tcp&lt;br /&gt;
     default_backend bk_pop3s&lt;br /&gt;
&lt;br /&gt;
backend bk_pop3s&lt;br /&gt;
    mode tcp&lt;br /&gt;
    balance leastconn&lt;br /&gt;
    stick store-request src&lt;br /&gt;
    stick-table type ip size 200k expire 30m&lt;br /&gt;
    server pop3s1 172.16.118.213:995 check port 995&lt;br /&gt;
    server pop3s2 172.16.118.214:995 check port 995&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mv existing keepalived configuration file to .bkp&lt;br /&gt;
  1.​mv /etc/keepalived/keepalived.conf&lt;br /&gt;
     /etc/keepalived/keepalived.conf.bkp&lt;br /&gt;
&lt;br /&gt;
Create new conf file&lt;br /&gt;
  1.​vi /etc/keepalived/keepalived.conf&lt;br /&gt;
Add below configuration&lt;br /&gt;
&lt;br /&gt;
Change 10.1.100.7 to our virtual IP 172.16.118.232&lt;br /&gt;
&lt;br /&gt;
Generate certificates via openssl command&lt;br /&gt;
&lt;br /&gt;
and change ssl file path in haproxy configuration file&lt;br /&gt;
&lt;br /&gt;
Restart service&lt;br /&gt;
systemctl restart keepalived haproxy&lt;br /&gt;
systemctl status keepalived haproxy&lt;br /&gt;
&lt;br /&gt;
—-------------------------------------------------------------------------------------&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>