<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8718643356399755975</id><updated>2026-08-21T13:17:20.323+05:30</updated><category term="Apache"/><category term="linux"/><category term="vsftpd"/><category term="Amazon"/><category term="ftp"/><category term="mysql"/><category term="rsync"/><category term="Bind in redhat"/><category term="CPU SMP Affinity"/><category term="Certificate Authority"/><category term="Cloud"/><category term="Control Panel"/><category term="DNS backup"/><category term="DNS in rhel6"/><category term="ELB"/><category term="GUI in Linux"/><category term="Health check module in nginx"/><category term="High Availability"/><category term="Interrupts"/><category term="Kernel compile"/><category term="Linux panel"/><category term="Loda Balancing"/><category term="Nginx as a Load Balancer"/><category term="PHP"/><category term="Plesk"/><category term="Route53"/><category term="Webmin"/><category term="Zabbix"/><category term="Zabbix installation"/><category term="Zabbix master"/><category term="Zabbix master Installation"/><category term="Zabbix with postgresql"/><category term="apache_modules"/><category term="autoincrement in mysql"/><category term="bind configuration"/><category term="ca"/><category term="certificate based vsftpd"/><category term="chroot"/><category term="cli53"/><category term="compile kernel 3.9"/><category term="configure Bind in linux"/><category term="configure DNS in linux"/><category term="cpu affinity"/><category term="cpu isolation"/><category term="cpu pinning"/><category term="cpuidle"/><category term="database replication"/><category term="ethernet cluster"/><category term="fix network name"/><category term="ftp only user"/><category term="ftp with virtual user"/><category term="ftps"/><category term="grub lock"/><category term="grub protection"/><category term="grub-md5-crypt"/><category term="ha"/><category term="haproxy"/><category term="httpd"/><category term="installation of haproxy"/><category term="installation of plesk in linux"/><category term="keepalived"/><category term="kernel 3.9 compile"/><category term="lan bonding"/><category term="lan clister"/><category term="lan cluster"/><category term="latest kernel compile"/><category term="master slave DNS"/><category term="mod_status"/><category term="modules"/><category term="monitoring"/><category term="mysql install"/><category term="mysql install in rhel 5"/><category term="mysql multimaster replication"/><category term="mysql replication"/><category term="mysql source code install"/><category term="nginx"/><category term="password-less ssh"/><category term="per user setting in vsftp"/><category term="pgsql"/><category term="pgsql cheetsheet"/><category term="phpmyadmin"/><category term="postgres"/><category term="postgresql"/><category term="postgresql cheetsheet"/><category term="proftpd"/><category term="proxypass in nginx"/><category term="rsync as daemon"/><category term="rsync daemon"/><category term="rsync only key"/><category term="scp"/><category term="scp only key"/><category term="ssh in script"/><category term="sshpass"/><category term="ssl in ftp"/><category term="ssl in vsftpd"/><category term="ssl over vsftpd"/><category term="sudo"/><category term="sudo examples"/><category term="sudoers"/><category term="upstream module in nginx"/><category term="user wise setting in vsftpd"/><category term="visudo"/><title type='text'>Linux Worms</title><subtitle type='html'>A site of open source Lovers</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.linuxworms.in/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://www.linuxworms.in/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Amit</name><uri>http://www.blogger.com/profile/11325460583960515380</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSgOg8f7MBgN1FyVZ1xxvcwSVFn67YuvU6Yb5knmaClkFlLQBJ47J0v29OBXu33ADnO8hSthUHmeLTv8kMlYZUiXob6EGVa4ZQp8AwoiozmcliFoCRyo9pMppfdix1UA/s113/Photo0327.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>48</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8718643356399755975.post-3842777134058824489</id><published>2026-08-10T21:35:50.534+05:30</published><updated>2026-08-10T21:35:50.534+05:30</updated><title type='text'>Renew k8s certificates</title><content type='html'>&lt;p&gt;&lt;b&gt;Check If certificate expires:&lt;/b&gt;&lt;/p&gt;&lt;p&gt;amikum@~:03:06:54(⎈ |local-cluster:default):sudo kubeadm certs check-expiration&lt;/p&gt;&lt;p&gt;CERTIFICATE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; EXPIRES&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RESIDUAL TIME&amp;nbsp; &amp;nbsp;CERTIFICATE AUTHORITY&amp;nbsp; &amp;nbsp;EXTERNALLY MANAGED&lt;/p&gt;&lt;p&gt;admin.conf&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Jan 12, 2024 03:08 UTC&amp;nbsp; &amp;nbsp;1y&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; no&lt;/p&gt;&lt;p&gt;apiserver&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Jun 08, 2023 09:36 UTC&amp;nbsp; &amp;nbsp;364d&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ca&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; no&lt;/p&gt;&lt;p&gt;apiserver-etcd-client&amp;nbsp; &amp;nbsp; &amp;nbsp; Apr 15, 2022 06:46 UTC&amp;nbsp; &amp;nbsp;&amp;lt;invalid&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;etcd-ca&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;no&lt;/p&gt;&lt;p&gt;apiserver-kubelet-client&amp;nbsp; &amp;nbsp;Apr 15, 2022 06:46 UTC&amp;nbsp; &amp;nbsp;&amp;lt;invalid&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ca&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; no&lt;/p&gt;&lt;p&gt;controller-manager.conf&amp;nbsp; &amp;nbsp; Apr 15, 2022 06:46 UTC&amp;nbsp; &amp;nbsp;&amp;lt;invalid&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;no&lt;/p&gt;&lt;p&gt;etcd-healthcheck-client&amp;nbsp; &amp;nbsp; Apr 15, 2022 06:46 UTC&amp;nbsp; &amp;nbsp;&amp;lt;invalid&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;etcd-ca&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;no&lt;/p&gt;&lt;p&gt;etcd-peer&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Apr 15, 2022 06:46 UTC&amp;nbsp; &amp;nbsp;&amp;lt;invalid&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;etcd-ca&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;no&lt;/p&gt;&lt;p&gt;etcd-server&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Apr 15, 2022 06:46 UTC&amp;nbsp; &amp;nbsp;&amp;lt;invalid&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;etcd-ca&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;no&lt;/p&gt;&lt;p&gt;front-proxy-client&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Apr 15, 2022 06:46 UTC&amp;nbsp; &amp;nbsp;&amp;lt;invalid&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;front-proxy-ca&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; no&lt;/p&gt;&lt;p&gt;scheduler.conf&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Apr 15, 2022 06:46 UTC&amp;nbsp; &amp;nbsp;&amp;lt;invalid&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;no&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;CERTIFICATE AUTHORITY&amp;nbsp; &amp;nbsp;EXPIRES&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RESIDUAL TIME&amp;nbsp; &amp;nbsp;EXTERNALLY MANAGED&lt;/p&gt;&lt;p&gt;ca&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Apr 13, 2031 06:46 UTC&amp;nbsp; &amp;nbsp;8y&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; no&lt;/p&gt;&lt;p&gt;etcd-ca&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Apr 13, 2031 06:46 UTC&amp;nbsp; &amp;nbsp;8y&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; no&lt;/p&gt;&lt;p&gt;front-proxy-ca&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Apr 13, 2031 06:46 UTC&amp;nbsp; &amp;nbsp;8y&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; no&lt;/p&gt;&lt;p&gt;===========================================&lt;/p&gt;&lt;p&gt;&lt;b&gt;renew the certificate&lt;/b&gt;&lt;/p&gt;&lt;p&gt;amikum@~:03:07:35(⎈ |local-cluster:default):sudo kubeadm certs renew apiserver-etcd-client&lt;/p&gt;&lt;p&gt;[renew] Reading configuration from the cluster...&lt;/p&gt;&lt;p&gt;[renew] FYI: You can look at this config file with &#39;kubectl -n kube-system get cm kubeadm-config -o yaml&#39;&lt;/p&gt;&lt;p&gt;[renew] Error reading configuration from the Cluster. Falling back to default configuration&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;certificate the apiserver uses to access etcd renewed&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;amikum@~:03:09:06(⎈ |local-cluster:default):sudo kubeadm certs check-expiration&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;CERTIFICATE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; EXPIRES&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RESIDUAL TIME&amp;nbsp; &amp;nbsp;CERTIFICATE AUTHORITY&amp;nbsp; &amp;nbsp;EXTERNALLY MANAGED&lt;/p&gt;&lt;p&gt;admin.conf&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Jan 12, 2024 03:08 UTC&amp;nbsp; &amp;nbsp;1y&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; no&lt;/p&gt;&lt;p&gt;apiserver&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Jun 08, 2023 09:36 UTC&amp;nbsp; &amp;nbsp;364d&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ca&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; no&lt;/p&gt;&lt;p&gt;apiserver-etcd-client&amp;nbsp; &amp;nbsp; &amp;nbsp; Jun 08, 2023 09:37 UTC&amp;nbsp; &amp;nbsp;364d&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; etcd-ca&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;no&lt;/p&gt;&lt;p&gt;apiserver-kubelet-client&amp;nbsp; &amp;nbsp;Jun 08, 2023 09:38 UTC&amp;nbsp; &amp;nbsp;364d&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ca&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; no&lt;/p&gt;&lt;p&gt;controller-manager.conf&amp;nbsp; &amp;nbsp; Jun 08, 2023 09:38 UTC&amp;nbsp; &amp;nbsp;364d&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; no&lt;/p&gt;&lt;p&gt;etcd-healthcheck-client&amp;nbsp; &amp;nbsp; Jun 08, 2023 09:38 UTC&amp;nbsp; &amp;nbsp;364d&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; etcd-ca&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;no&lt;/p&gt;&lt;p&gt;etcd-peer&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Jun 08, 2023 09:38 UTC&amp;nbsp; &amp;nbsp;364d&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; etcd-ca&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;no&lt;/p&gt;&lt;p&gt;etcd-server&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Jun 08, 2023 09:38 UTC&amp;nbsp; &amp;nbsp;364d&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; etcd-ca&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;no&lt;/p&gt;&lt;p&gt;front-proxy-client&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Jun 08, 2023 09:38 UTC&amp;nbsp; &amp;nbsp;364d&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; front-proxy-ca&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; no&lt;/p&gt;&lt;p&gt;scheduler.conf&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Jun 08, 2023 09:38 UTC&amp;nbsp; &amp;nbsp;364d&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; no&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;CERTIFICATE AUTHORITY&amp;nbsp; &amp;nbsp;EXPIRES&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RESIDUAL TIME&amp;nbsp; &amp;nbsp;EXTERNALLY MANAGED&lt;/p&gt;&lt;p&gt;ca&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Apr 13, 2031 06:46 UTC&amp;nbsp; &amp;nbsp;8y&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; no&lt;/p&gt;&lt;p&gt;etcd-ca&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Apr 13, 2031 06:46 UTC&amp;nbsp; &amp;nbsp;8y&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; no&lt;/p&gt;&lt;p&gt;front-proxy-ca&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Apr 13, 2031 06:46 UTC&amp;nbsp; &amp;nbsp;8y&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; no&lt;/p&gt;&lt;p&gt;=======================&lt;/p&gt;&lt;p&gt;&lt;b&gt;Regenerate new admin kubeconfig&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;root@NO2ECIVM03:/etc/kubernetes# kubeadm init phase kubeconfig admin&lt;/b&gt;&lt;/p&gt;&lt;p&gt;I0608 15:27:16.743911&amp;nbsp; &amp;nbsp;30150 version.go:254] remote version is much newer: v1.24.1; falling back to: stable-1.21&lt;/p&gt;&lt;p&gt;[kubeconfig] Writing &quot;admin.conf&quot; kubeconfig file&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.linuxworms.in/feeds/3842777134058824489/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.linuxworms.in/2026/08/renew-k8s-certificates.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/3842777134058824489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/3842777134058824489'/><link rel='alternate' type='text/html' href='http://www.linuxworms.in/2026/08/renew-k8s-certificates.html' title='Renew k8s certificates'/><author><name>Amit</name><uri>http://www.blogger.com/profile/11325460583960515380</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSgOg8f7MBgN1FyVZ1xxvcwSVFn67YuvU6Yb5knmaClkFlLQBJ47J0v29OBXu33ADnO8hSthUHmeLTv8kMlYZUiXob6EGVa4ZQp8AwoiozmcliFoCRyo9pMppfdix1UA/s113/Photo0327.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8718643356399755975.post-505466759034848146</id><published>2026-08-10T21:35:05.229+05:30</published><updated>2026-08-10T21:35:05.229+05:30</updated><title type='text'>Allow internet access through proxy and ssh port forwarding</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div&gt;
&lt;b&gt;Step 1) install squid on 132.1.16.100 box&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;dev@kvm2:~$ sudo apt-get install squid3&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
dev@kvm2:~$ ps ax|grep squid&lt;/div&gt;
&lt;div&gt;
11700 ?&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Ss&amp;nbsp; &amp;nbsp; &amp;nbsp;0:00 /usr/sbin/squid3 -N -YC -f /etc/squid3/squid.conf&lt;/div&gt;
&lt;div&gt;
11704 ?&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Ss&amp;nbsp; &amp;nbsp; &amp;nbsp;0:00 (logfile-daemon) /var/log/squid3/access.log&lt;/div&gt;
&lt;div&gt;
11783 pts/3&amp;nbsp; &amp;nbsp; S+&amp;nbsp; &amp;nbsp; &amp;nbsp;0:00 grep --color=auto squid&lt;/div&gt;
&lt;div&gt;
dev@kvm2:~$ telnet localhost 3128&lt;/div&gt;
&lt;div&gt;
Trying 127.0.0.1...&lt;/div&gt;
&lt;div&gt;
Connected to localhost.&lt;/div&gt;
&lt;div&gt;
Escape character is &#39;^]&#39;.&lt;/div&gt;
&lt;div&gt;
^]&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
dev@kvm2:~$ export HTTP_PROXY=&quot;localhost:3128&quot;&lt;/div&gt;
&lt;div&gt;
dev@kvm2:~$ wget --proxy=on &lt;a data-saferedirecturl=&quot;https://www.google.com/url?q=http://google.com&amp;amp;source=gmail&amp;amp;ust=1540020320411000&amp;amp;usg=AFQjCNG9tU0mTRGbxjIfccw9mP-977FoMg&quot; href=&quot;http://google.com/&quot; target=&quot;_blank&quot;&gt;google.com&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;[ &amp;lt;=&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;] 14,396&amp;nbsp; &amp;nbsp; &amp;nbsp; --.-K/s&amp;nbsp; &amp;nbsp;in 0.01s&lt;/div&gt;
&lt;div&gt;
2018-10-19 11:32:09 (1.21 MB/s) - ‘index.html’ saved [14426]&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
dev@kvm2:~$ export HTTPS_PROXY=&quot;localhost:3128&quot;&lt;/div&gt;
&lt;div&gt;
dev@kvm2:~$ wget --proxy=on &lt;a data-saferedirecturl=&quot;https://www.google.com/url?q=http://google.com&amp;amp;source=gmail&amp;amp;ust=1540020320411000&amp;amp;usg=AFQjCNG9tU0mTRGbxjIfccw9mP-977FoMg&quot; href=&quot;http://google.com/&quot; target=&quot;_blank&quot;&gt;google.com&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; [ &amp;lt;=&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;] 14,396&amp;nbsp; &amp;nbsp; &amp;nbsp; --.-K/s&amp;nbsp; &amp;nbsp;in 0.01s&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
2018-10-19 11:32:26 (1.19 MB/s) - ‘index.html.1’ saved [14396]&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
root@kvm2:~# grep &quot;http_access allow all&quot; /etc/squid3/squid.conf&lt;/div&gt;
&lt;div&gt;
http_access allow all&lt;/div&gt;
&lt;div&gt;
root@kvm2:~#&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
restart the squid service&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
root@kvm2:~# ps -ef | grep squid&lt;/div&gt;
&lt;div&gt;
root&amp;nbsp; &amp;nbsp; &amp;nbsp;13143&amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; 0 11:38 ?&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 00:00:00 sudo /usr/sbin/squid3 -N -YC -f /etc/squid3/squid.conf&lt;/div&gt;
&lt;div&gt;
proxy&amp;nbsp; &amp;nbsp; 13144 13143&amp;nbsp; 0 11:38 ?&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 00:00:07 /usr/sbin/squid3 -N -YC -f /etc/squid3/squid.conf&lt;/div&gt;
&lt;div&gt;
proxy&amp;nbsp; &amp;nbsp; 13145 13144&amp;nbsp; 0 11:38 ?&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 00:00:00 (logfile-daemon) /var/log/squid3/access.log&lt;/div&gt;
&lt;div&gt;
root&amp;nbsp; &amp;nbsp; &amp;nbsp;37164 37034&amp;nbsp; 0 16:44 pts/6&amp;nbsp; &amp;nbsp; 00:00:00 grep --color=auto squid&lt;/div&gt;
&lt;div&gt;
root@kvm2:~#&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;step 2) ssh port forward on 172.16.30153&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
C:\Users\opsadmin&amp;gt;ssh -R 9002:&lt;a data-saferedirecturl=&quot;https://www.google.com/url?q=http://132.1.16.100:3128&amp;amp;source=gmail&amp;amp;ust=1540019895321000&amp;amp;usg=AFQjCNHuGzzk6BagEkQbaS7wqCZbXEmlow&quot; href=&quot;http://132.1.16.100:3128/&quot; target=&quot;_blank&quot;&gt;132.1.16.100:3128&lt;/a&gt; &lt;a href=&quot;mailto:ansible@172.16.30.153&quot; target=&quot;_blank&quot;&gt;ansible@172.16.30.153&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Last login: Fri Oct 19 11:45:22 2018 from 10.212.134.202&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
ansible@ubuntuTest:~$ telnet localhost 9002&lt;/div&gt;
&lt;div&gt;
Trying ::1...&lt;/div&gt;
&lt;div&gt;
Connected to localhost.&lt;/div&gt;
&lt;div&gt;
Escape character is &#39;^]&#39;.&lt;/div&gt;
&lt;div&gt;
^]&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
ansible@ubuntuTest:~$ export http_proxy=&quot;localhost:9002&quot;&lt;/div&gt;
&lt;div&gt;
ansible@ubuntuTest:~$ export https_proxy=&quot;localhost:9002&quot;&lt;/div&gt;
&lt;div&gt;
ansible@ubuntuTest:~$ wget --proxy=on &lt;a data-saferedirecturl=&quot;https://www.google.com/url?q=http://google.com&amp;amp;source=gmail&amp;amp;ust=1540019895321000&amp;amp;usg=AFQjCNF-cNjpOmIaIqLJOmyCqMx7uelEcw&quot; href=&quot;http://google.com/&quot; target=&quot;_blank&quot;&gt;google.com&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
--2018-10-19 11:49:20--&amp;nbsp; &lt;a data-saferedirecturl=&quot;https://www.google.com/url?q=http://google.com/&amp;amp;source=gmail&amp;amp;ust=1540019895321000&amp;amp;usg=AFQjCNHABONUgzyGm2x3gFigTGmRaIbo-Q&quot; href=&quot;http://google.com/&quot; target=&quot;_blank&quot;&gt;http://google.com/&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
Resolving localhost (localhost)... ::1, 127.0.0.1&lt;/div&gt;
&lt;div&gt;
Connecting to localhost (localhost)|::1|:9002... connected.&lt;/div&gt;
&lt;div&gt;
Proxy request sent, awaiting response... 301 Moved Permanently&lt;/div&gt;
&lt;div&gt;
Location: &lt;a data-saferedirecturl=&quot;https://www.google.com/url?q=http://www.google.com/&amp;amp;source=gmail&amp;amp;ust=1540019895321000&amp;amp;usg=AFQjCNE4CfxxHzV-R_NRqctUFP0ABUf_lg&quot; href=&quot;http://www.google.com/&quot; target=&quot;_blank&quot;&gt;http://www.google.com/&lt;/a&gt; [following]&lt;/div&gt;
&lt;div&gt;
--2018-10-19 11:49:21--&amp;nbsp; &lt;a data-saferedirecturl=&quot;https://www.google.com/url?q=http://www.google.com/&amp;amp;source=gmail&amp;amp;ust=1540019895321000&amp;amp;usg=AFQjCNE4CfxxHzV-R_NRqctUFP0ABUf_lg&quot; href=&quot;http://www.google.com/&quot; target=&quot;_blank&quot;&gt;http://www.google.com/&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
Reusing existing connection to [localhost]:9002.&lt;/div&gt;
&lt;div&gt;
Proxy request sent, awaiting response... 200 OK&lt;/div&gt;
&lt;div&gt;
Length: unspecified [text/html]&lt;/div&gt;
&lt;div&gt;
Saving to: ‘index.html’&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; [ &amp;lt;=&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;] 14,393&amp;nbsp; &amp;nbsp; &amp;nbsp; --.-K/s&amp;nbsp; &amp;nbsp;in 0.03s&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
2018-10-19 11:49:21 (550 KB/s) - ‘index.html’ saved [14393]&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
root@ubuntuTest:/var/www/html/zabbix# cat /etc/apt/apt.conf&lt;/div&gt;
&lt;div&gt;
Acquire::http::Proxy &quot;http://localhost:9002&quot;;&lt;/div&gt;
&lt;div&gt;
Acquire::https::Proxy &quot;https://localhost:9002&quot;;&lt;/div&gt;
&lt;div&gt;
Acquire::ftp::Proxy &quot;ftp://localhost:9002&quot;;&lt;/div&gt;
&lt;div&gt;
root@ubuntuTest:/var/www/html/zabbix#&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.linuxworms.in/feeds/505466759034848146/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.linuxworms.in/2018/10/allow-internet-access-through-proxy-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/505466759034848146'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/505466759034848146'/><link rel='alternate' type='text/html' href='http://www.linuxworms.in/2018/10/allow-internet-access-through-proxy-and.html' title='Allow internet access through proxy and ssh port forwarding'/><author><name>Amit</name><uri>http://www.blogger.com/profile/11325460583960515380</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSgOg8f7MBgN1FyVZ1xxvcwSVFn67YuvU6Yb5knmaClkFlLQBJ47J0v29OBXu33ADnO8hSthUHmeLTv8kMlYZUiXob6EGVa4ZQp8AwoiozmcliFoCRyo9pMppfdix1UA/s113/Photo0327.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8718643356399755975.post-6250777537106871937</id><published>2018-09-19T11:38:00.001+05:30</published><updated>2018-09-19T11:38:27.574+05:30</updated><title type='text'>Apache access control via Ldap</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Friend,&lt;br /&gt;
&lt;br /&gt;
We have an application (Logsniffer) running And We were looking for some access control on it.&lt;br /&gt;
&lt;br /&gt;
Below are config file for Apache access control via ldap.&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: UbuntuMono, courier, monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;root@ip-10-101-2-145:/etc/apache2/sites-enabled# cat logsniffer-ssl.conf
Listen 443
&amp;lt;VirtualHost *:443&amp;gt;
  ServerName logsniffer-cme.atpl.com
  ServerAlias logsniffer-cme.atpl.com
  SSLEngine On
  SSLCertificateFile /etc/apache2/ssl/crt/8b47601b81cb83cf.crt
  SSLCertificateKeyFile /etc/apache2/ssl/key/acceletrade.key
  SSLCertificateChainFile /etc/apache2/ssl/key/gd_bundle-g2-g1.crt

  ProxyRequests     Off
  ProxyPass         /  http://localhost:8082/
  ProxyPassReverse  /  http://localhost:8082/
#  ProxyPassReverse  /  http://www.logsniffer.my.domain/
  &amp;lt;Proxy http://localhost:8082/*&amp;gt;
        Order deny,allow
        Deny from All
        AuthName &quot;Valid Ldap Authorisation for LDap Domain&quot;
        AuthType Basic
        AuthBasicProvider ldap
#        AuthzLDAPAuthoritative on
        AuthLDAPUrl &quot;ldap://132.1.16.104:389/cn=users,cn=accounts,dc=atpl,dc=com?uid&quot;
        Require ldap-group cn=cme,cn=groups,cn=accounts,dc=atpl,dc=com
        Satisfy any
&amp;lt;/Proxy&amp;gt;
  ProxyPreserveHost on
&amp;lt;/VirtualHost&amp;gt;
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; white-space: pre-wrap;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.linuxworms.in/feeds/6250777537106871937/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.linuxworms.in/2018/09/apache-access-control-via-ldap.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/6250777537106871937'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/6250777537106871937'/><link rel='alternate' type='text/html' href='http://www.linuxworms.in/2018/09/apache-access-control-via-ldap.html' title='Apache access control via Ldap'/><author><name>Amit</name><uri>http://www.blogger.com/profile/11325460583960515380</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSgOg8f7MBgN1FyVZ1xxvcwSVFn67YuvU6Yb5knmaClkFlLQBJ47J0v29OBXu33ADnO8hSthUHmeLTv8kMlYZUiXob6EGVa4ZQp8AwoiozmcliFoCRyo9pMppfdix1UA/s113/Photo0327.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8718643356399755975.post-363125953418560703</id><published>2018-09-03T13:49:00.002+05:30</published><updated>2018-09-03T13:49:32.116+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="fix network name"/><title type='text'>Assign fix netwrk interface name</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi Friends,&lt;br /&gt;
&lt;br /&gt;
After network hardware or os up-gradation, We normally loose network interface names.&lt;br /&gt;
&lt;br /&gt;
And If you are working in remote location, It become pain to change interfaces settings (ex- ip, rx-tx settings).&lt;br /&gt;
&lt;br /&gt;
Please use below settings to avoid this:-&lt;br /&gt;
&lt;br /&gt;
1) # In /etc/default/grub - ensures eth0/1/2/x like names&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: ubuntumono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
GRUB_CMDLINE_LINUX=&quot;net.ifnames=0 biosdevname=0&quot;&lt;/div&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
2) # MAC address can be read using following command&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;root@abc:~# ls /sys/class/net/ | xargs -IX sh -c &#39;echo X $(cat /sys/class/net/X/address)&#39;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;eth0 88:d7:f6:d4:be:37&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;eth1 88:d7:f6:d4:be:36&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;eth2 64:3f:5f:01:5a:dc&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;eth3 64:3f:5f:01:5a:dd&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;eth4 64:3f:5f:01:5a:c8&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;eth5 64:3f:5f:01:5a:c9&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;lo 00:00:00:00:00:00&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
3) Create /etc/udev/rules.d/70-persistent-net.rules !! FIX MAC ADDRESSES LIST !!&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: ubuntumono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
# Create /etc/udev/rules.d/70-persistent-net.rules !! FIX MAC ADDRESSES LIST !!&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
SUBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot;, DRIVERS==&quot;?*&quot;, ATTR{address}==&quot;2c:4d:54:46:60:49&quot;, ATTR{dev_id}==&quot;0x0&quot;, ATTR{type}==&quot;1&quot;, KERNEL==&quot;eth*&quot;, NAME=&quot;eth0&quot;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
SUBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot;, DRIVERS==&quot;?*&quot;, ATTR{address}==&quot;2c:4d:54:46:60:4a&quot;, ATTR{dev_id}==&quot;0x0&quot;, ATTR{type}==&quot;1&quot;, KERNEL==&quot;eth*&quot;, NAME=&quot;eth1&quot;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
SUBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot;, DRIVERS==&quot;?*&quot;, ATTR{address}==&quot;64:3f:5f:01:2e:d8&quot;, ATTR{dev_id}==&quot;0x0&quot;, ATTR{type}==&quot;1&quot;, KERNEL==&quot;eth*&quot;, NAME=&quot;eth2&quot;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
SUBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot;, DRIVERS==&quot;?*&quot;, ATTR{address}==&quot;64:3f:5f:01:2e:d9&quot;, ATTR{dev_id}==&quot;0x0&quot;, ATTR{type}==&quot;1&quot;, KERNEL==&quot;eth*&quot;, NAME=&quot;eth3&quot;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
SUBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot;, DRIVERS==&quot;?*&quot;, ATTR{address}==&quot;64:3f:5f:01:2d:af&quot;, ATTR{dev_id}==&quot;0x0&quot;, ATTR{type}==&quot;1&quot;, KERNEL==&quot;eth*&quot;, NAME=&quot;eth4&quot;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
SUBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot;, DRIVERS==&quot;?*&quot;, ATTR{address}==&quot;64:3f:5f:01:2d:ae&quot;, ATTR{dev_id}==&quot;0x0&quot;, ATTR{type}==&quot;1&quot;, KERNEL==&quot;eth*&quot;, NAME=&quot;eth5&quot;&lt;/div&gt;
&lt;/pre&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.linuxworms.in/feeds/363125953418560703/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.linuxworms.in/2018/09/assign-fix-netwrk-interface-name.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/363125953418560703'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/363125953418560703'/><link rel='alternate' type='text/html' href='http://www.linuxworms.in/2018/09/assign-fix-netwrk-interface-name.html' title='Assign fix netwrk interface name'/><author><name>Amit</name><uri>http://www.blogger.com/profile/11325460583960515380</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSgOg8f7MBgN1FyVZ1xxvcwSVFn67YuvU6Yb5knmaClkFlLQBJ47J0v29OBXu33ADnO8hSthUHmeLTv8kMlYZUiXob6EGVa4ZQp8AwoiozmcliFoCRyo9pMppfdix1UA/s113/Photo0327.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8718643356399755975.post-6336543832031853767</id><published>2018-07-02T21:52:00.000+05:30</published><updated>2018-07-03T09:22:30.343+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ha"/><category scheme="http://www.blogger.com/atom/ns#" term="High Availability"/><category scheme="http://www.blogger.com/atom/ns#" term="keepalived"/><title type='text'>Keepalived configure for Failover </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;Friends,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;Today I am showing Haproxy setup along with Keepalived. In this blog I will setup Keep alive. HaProxy setup will be done on my next blog.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;Keepalived is used to achieve high availability by assigning a VIP to two or more servers.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Installation:-&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;I am doing this on two ubuntu servers having ip 172.16.1.209 and 172.16.1.211. The virtual IP will be 172.16.1.210.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;Install packages&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;apt-get install keepalived&lt;/pre&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;b&gt;Configuring keepalived&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;Create the config file on the first server (172.16.1.209):&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;vim /etc/keepalived/keepalived.conf&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;global_defs {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; router_id NM-PRD-HAPROXY-209&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;vrrp_script haproxy {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;script &quot;killall -0 haproxy&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;interval 1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;weight 2&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;vrrp_instance 50 {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;virtual_router_id 50&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;advert_int 1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;priority 101&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;state MASTER&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;interface eth0&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;virtual_ipaddress {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;172.16.1.210&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; track_script {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;haproxy&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;authentication {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; auth_type PASS&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; auth_pass We$,J)Og&amp;amp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/pre&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;Create the config file on the second server (172.16.1.211)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;vim /etc/keepalived/keepalived.conf&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;global_defs {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; router_id NM-PRD-HAPROXY-211&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;vrrp_script haproxy {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;&amp;nbsp; script &quot;killall -0 haproxy&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;&amp;nbsp; interval 1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;&amp;nbsp; weight 2&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;vrrp_instance 50 {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; virtual_router_id 50&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; advert_int 1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; priority 102&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; state MASTER&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; interface eth0&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; virtual_ipaddress {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; 172.16.1.210&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; track_script {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; haproxy&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;authentication {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; auth_type PASS&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; auth_pass&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;We$,J)Og&amp;amp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/pre&gt;
&lt;h4 style=&quot;background-color: white; box-sizing: border-box; color: #080808; font-family: &amp;quot;Open Sans&amp;quot;, Calibri, Candara, Arial, sans-serif; font-size: 19px; font-weight: 300; line-height: 20px; margin-bottom: 10.5px; margin-top: 10px; padding-top: 10px; text-rendering: optimizeLegibility;&quot;&gt;
Note :-&lt;/h4&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #555555; font-family: &amp;quot;Open Sans&amp;quot;, Calibri, Candara, Arial, sans-serif; font-size: 15px; margin-bottom: 10.5px;&quot;&gt;
We need to enable sysctl setting for no local ip binding allow on the Kernel.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #555555; font-family: &amp;quot;Open Sans&amp;quot;, Calibri, Candara, Arial, sans-serif; font-size: 15px; margin-bottom: 10.5px;&quot;&gt;
Temporary:&lt;/div&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-radius: 0px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; color: #333333; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 1.42857; margin-bottom: 10.5px; padding: 10px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;code style=&quot;background-color: transparent; border-radius: 0px; border: 0px; box-sizing: border-box; color: inherit; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: inherit; padding: 0px;&quot;&gt;echo 1 &amp;gt; /proc/sys/net/ipv4/ip_nonlocal_bind&lt;/code&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #555555; font-family: &amp;quot;Open Sans&amp;quot;, Calibri, Candara, Arial, sans-serif; font-size: 15px; margin-bottom: 10.5px;&quot;&gt;
Permanent:&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #555555; font-family: &amp;quot;Open Sans&amp;quot;, Calibri, Candara, Arial, sans-serif; font-size: 15px; margin-bottom: 10.5px;&quot;&gt;
Add this to&amp;nbsp;&lt;code style=&quot;background-color: #f9f2f4; border-radius: 0px; box-sizing: border-box; color: #c7254e; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13.5px; padding: 2px 4px; white-space: nowrap;&quot;&gt;/etc/sysctl.conf&lt;/code&gt;:&lt;/div&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-radius: 0px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; color: #333333; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 1.42857; margin-bottom: 10.5px; padding: 10px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;code style=&quot;background-color: transparent; border-radius: 0px; border: 0px; box-sizing: border-box; color: inherit; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: inherit; padding: 0px;&quot;&gt;net.ipv4.ip_nonlocal_bind = 1
&lt;/code&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #555555; font-family: &amp;quot;Open Sans&amp;quot;, Calibri, Candara, Arial, sans-serif; font-size: 15px; margin-bottom: 10.5px;&quot;&gt;
Enable with:&lt;/div&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-radius: 0px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; color: #333333; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 1.42857; margin-bottom: 10.5px; padding: 10px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;code style=&quot;background-color: transparent; border-radius: 0px; border: 0px; box-sizing: border-box; color: inherit; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: inherit; padding: 0px;&quot;&gt;sysctl -p&lt;/code&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #555555; font-family: &amp;quot;Open Sans&amp;quot;, Calibri, Candara, Arial, sans-serif; font-size: 15px; margin-bottom: 10.5px;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;Start service&lt;/b&gt;&lt;br /&gt;
When our Haproxy setup done, We need to start Keepalived on both servers:&lt;/div&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-radius: 0px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; color: #333333; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 1.42857; margin-bottom: 10.5px; padding: 10px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;code style=&quot;background-color: transparent; border-radius: 0px; border: 0px; box-sizing: border-box; color: inherit; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: inherit; padding: 0px;&quot;&gt;service keepalived start&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.linuxworms.in/feeds/6336543832031853767/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.linuxworms.in/2018/07/keepalived-configure-for-failover.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/6336543832031853767'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/6336543832031853767'/><link rel='alternate' type='text/html' href='http://www.linuxworms.in/2018/07/keepalived-configure-for-failover.html' title='Keepalived configure for Failover '/><author><name>Amit</name><uri>http://www.blogger.com/profile/11325460583960515380</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSgOg8f7MBgN1FyVZ1xxvcwSVFn67YuvU6Yb5knmaClkFlLQBJ47J0v29OBXu33ADnO8hSthUHmeLTv8kMlYZUiXob6EGVa4ZQp8AwoiozmcliFoCRyo9pMppfdix1UA/s113/Photo0327.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8718643356399755975.post-2462203401520072836</id><published>2018-07-02T16:45:00.000+05:30</published><updated>2018-07-04T10:20:10.433+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="rsync"/><category scheme="http://www.blogger.com/atom/ns#" term="rsync as daemon"/><category scheme="http://www.blogger.com/atom/ns#" term="rsync daemon"/><title type='text'>Run Rsync as daemon</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Friends,&lt;br /&gt;
&lt;br /&gt;
We all know rsync is a good tool to sync files/directories.&lt;br /&gt;
Every time your want to sync, you need to run rsync commands. But what if you want to run rsync as a&amp;nbsp; daemon? Every change in the source will be synced to destination location manually?&lt;br /&gt;
&lt;br /&gt;
Below is a small script to do this&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;On source location&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; word-wrap: break-word;&quot;&gt;&lt;div&gt;
&lt;span style=&quot;font-family: times new roman;&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;archival@cme103:~$ mkdir rsync-as-daemon ;cd rsync-as-daemon&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: times new roman;&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;archival@cme103:~$touch /home/archival/rsync-as-daemon/rsync.lock;touch /home/archival/rsync-as-daemon/rsync.log&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: times new roman;&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;archival@cme103:~$ cat rsyncd.conf&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: times new roman;&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;pid file = /home/archival/rsync-as-daemon/rsyncd.pid&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: times new roman;&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;lock file = /home/archival/rsync-as-daemon/rsync.lock&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: times new roman;&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;log file = /home/archival/rsync-as-daemon/rsync.log&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: times new roman;&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;use chroot = false&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: times new roman;&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;port = 15000&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: times new roman;&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;reverse lookup = no&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: times new roman;&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;[app_logs]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: times new roman;&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;path = /home/archival/log/&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: times new roman;&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;comment = Logs Rsync&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: times new roman;&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;read only = true&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: times new roman;&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;timeout = 300&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: #333333; font-family: ubuntumono, courier, monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;div&gt;
Now run rsync as a daemon&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;archival@cme103:~$&lt;span style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;; font-size: small; white-space: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;; font-size: small; white-space: normal;&quot;&gt;rsync --daemon --config=/home/archival/rsync-as-daemon/rsyncd.conf&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;On Destination Please configure as below&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; word-wrap: break-word;&quot;&gt;&lt;div&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;ubuntumono&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;logmanager@ip-10-101-2-145:~ mkdir rsync-client;cd rsync-client

logmanager@ip-10-101-2-145:~ cat rsync_client.sh

#!/bin/bash
SCRIPT_DIR=$(dirname $0)
cd $SCRIPT_DIR
TARGET_BASE_DIR=&quot;/opt/rsync_logs/&quot;
RSYNC_INCLUDES=&quot;$SCRIPT_DIR/rsync_includes.cfg&quot;
while true ;
do
    SERVER_URL=($(cat &quot;$SCRIPT_DIR/rsync_url.list&quot; | xargs))
    for URL in &quot;${SERVER_URL[@]}&quot;
    do
        IP=$(echo $URL | cut -d&#39;:&#39; -f 1)
        TARGET_DIR=&quot;$TARGET_BASE_DIR/$IP&quot;
        if [ ! -f $TARGET_DIR ]; then
            mkdir -p $TARGET_DIR
        fi
        rsync -rtm --append --include-from $RSYNC_INCLUDES --exclude &#39;*&#39; rsync://${URL} ${TARGET_DIR}
    done
done

logmanager@ip-10-101-2-145:~/rsync-client$ cat rsync_includes.cfg
### Directories and file that should be synced  
*/
platform*.log

logmanager@ip-10-101-2-145:~/ rsync-client$ cat rsync_url.list
## URL for Rsync
192.168.201.103:15000/app_logs/
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
Now run rsync client&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;logmanager@ip-10-101-2-145:~/rsync-client$/home/logmanager/rsync-client/rsync_client.sh&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.linuxworms.in/feeds/2462203401520072836/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.linuxworms.in/2018/07/run-rsync-as-daemon.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/2462203401520072836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/2462203401520072836'/><link rel='alternate' type='text/html' href='http://www.linuxworms.in/2018/07/run-rsync-as-daemon.html' title='Run Rsync as daemon'/><author><name>Amit</name><uri>http://www.blogger.com/profile/11325460583960515380</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSgOg8f7MBgN1FyVZ1xxvcwSVFn67YuvU6Yb5knmaClkFlLQBJ47J0v29OBXu33ADnO8hSthUHmeLTv8kMlYZUiXob6EGVa4ZQp8AwoiozmcliFoCRyo9pMppfdix1UA/s113/Photo0327.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8718643356399755975.post-8022255457623171628</id><published>2018-07-02T14:57:00.004+05:30</published><updated>2018-07-02T14:57:44.289+05:30</updated><title type='text'>Bash to save history with time stamp</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Some Useful bashrc stuff&lt;br /&gt;
&lt;br /&gt;
Please put below in /etc/bash.bashrc&lt;br /&gt;
&lt;br /&gt;
## No duplicates in the history&lt;br /&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;export HISTCONTROL=ignoredups&lt;/pre&gt;
&lt;br /&gt;
## for setting history length see HISTSIZE and HISTFILESIZE in bash&lt;br /&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
export HISTSIZE=100000&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
export HISTFILESIZE=100000&lt;/div&gt;
&lt;/pre&gt;
&lt;br /&gt;
## Timestamp history&lt;br /&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;export HISTTIMEFORMAT=&quot;%b %d %a %T &quot;&lt;/pre&gt;
&lt;br /&gt;
## Don&#39;t Overwrite. Append to bash history.&lt;br /&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;shopt -s histappend&lt;/pre&gt;
&lt;br /&gt;
##Adding costume $PATH&lt;br /&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;export PATH=&quot;/usr/local/zabbix/bin:$PATH&quot;&lt;/pre&gt;
&lt;br /&gt;
##Adding Vim as default editor&lt;br /&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;export EDITOR=vim&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.linuxworms.in/feeds/8022255457623171628/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.linuxworms.in/2018/07/bash-to-save-history-with-time-stamp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/8022255457623171628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/8022255457623171628'/><link rel='alternate' type='text/html' href='http://www.linuxworms.in/2018/07/bash-to-save-history-with-time-stamp.html' title='Bash to save history with time stamp'/><author><name>Amit</name><uri>http://www.blogger.com/profile/11325460583960515380</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSgOg8f7MBgN1FyVZ1xxvcwSVFn67YuvU6Yb5knmaClkFlLQBJ47J0v29OBXu33ADnO8hSthUHmeLTv8kMlYZUiXob6EGVa4ZQp8AwoiozmcliFoCRyo9pMppfdix1UA/s113/Photo0327.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8718643356399755975.post-7923375038189808820</id><published>2018-07-02T13:46:00.001+05:30</published><updated>2018-07-02T15:00:26.508+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="pgsql"/><category scheme="http://www.blogger.com/atom/ns#" term="pgsql cheetsheet"/><category scheme="http://www.blogger.com/atom/ns#" term="postgres"/><category scheme="http://www.blogger.com/atom/ns#" term="postgresql"/><category scheme="http://www.blogger.com/atom/ns#" term="postgresql cheetsheet"/><title type='text'>postgress basic commands</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
1) Install Postgress in Ubuntu&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;airflow@ip-10-1-1-4:~/airflow$ sudo apt-get install postgresql postgresql-contrib&lt;/pre&gt;
2) Login to postgress DataBase&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
ansible@ip-10-101-2-142:~$ sudo -u postgres psql&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
or&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
ansible@ip-10-101-2-142:~$ psql -h&quot;localhost&quot; -p 5432 -Uairflow airflow -W&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
Password for user airflow:&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
psql (9.5.12)&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
SSL connection (protocol: TLSv1.2, cipher: ECDHE-RSA-AES256-GCM-SHA384, bits: 256, compression: off)&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
Type &quot;help&quot; for help.&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
airflow=#&lt;/div&gt;
&lt;/pre&gt;
&lt;br /&gt;
3) create DataBase&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
airflow@ip-10-1-1-4:~/airflow$ sudo -u postgres createdb airflow&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
or&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&amp;nbsp;airflow=# createdb airflow&amp;nbsp;&lt;span style=&quot;color: #333333; font-family: &amp;quot;ubuntumono&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: 13px; white-space: pre-wrap;&quot;&gt;WITH ENCODING=&#39;UTF-8&#39;;&lt;/span&gt;&lt;/div&gt;
&lt;/pre&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
4) show database&lt;/div&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
airflow=# \d+&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; List of relations&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
&amp;nbsp;Schema |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp;Type&amp;nbsp; &amp;nbsp;|&amp;nbsp; Owner&amp;nbsp; |&amp;nbsp; &amp;nbsp; Size&amp;nbsp; &amp;nbsp; | Description&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
--------+-------------------------+----------+---------+------------+-------------&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
&amp;nbsp;public | sqpl_airflow_hosts&amp;nbsp; &amp;nbsp; &amp;nbsp; | table&amp;nbsp; &amp;nbsp; | airflow | 16 kB&amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
(1 rows)&lt;/div&gt;
&lt;/pre&gt;
5) Create user&lt;br /&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;postgres=# CREATE USER airflow WITH ENCRYPTED PASSWORD &#39;Ubuntu@123&#39;;&lt;/pre&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
6) GRANT Permission to user&lt;/div&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
postgres=# GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public to airflow;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
GRANT&lt;/div&gt;
&lt;/pre&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
7) connection info&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
airflow=# \conninfo&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
You are connected to database &quot;airflow&quot; as user &quot;airflow&quot; via socket in &quot;/var/run/postgresql&quot; at port &quot;5432&quot;.&lt;/div&gt;
&lt;/pre&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
8) Show config file&lt;/div&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
airflow=# SHOW hba_file;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
hba_file&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
--------------------------------------&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
/etc/postgresql/9.5/main/pg_hba.conf&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
(1 row)&lt;/div&gt;
&lt;/pre&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
9) Create Table&lt;/div&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
CREATE TABLE sqpl_airflow_hosts(&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
&amp;nbsp; &amp;nbsp;ip character varying(15) NOT NULL,&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
&amp;nbsp; &amp;nbsp;logical_group&amp;nbsp; character varying(200) NOT NULL,&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
&amp;nbsp; &amp;nbsp;queue_name character varying(100) NOT NULL,&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
&amp;nbsp; &amp;nbsp;param_kwargs character varying(1000) NOT NULL,&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
&amp;nbsp; &amp;nbsp;host_state host_state_enum,&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
&amp;nbsp; &amp;nbsp;primary key (logical_group,param_kwargs)&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
);&lt;/div&gt;
&lt;/pre&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
10) Describe table&lt;/div&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
airflow-# \d+ sqpl_airflow_hosts&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
&amp;nbsp;ip&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| character varying(15)&amp;nbsp; &amp;nbsp; &amp;nbsp;| not null&amp;nbsp; | extended |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
&amp;nbsp;logical_group&amp;nbsp; | character varying(200)&amp;nbsp; &amp;nbsp; | not null&amp;nbsp; | extended |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
&amp;nbsp;queue_name&amp;nbsp; &amp;nbsp; &amp;nbsp;| character varying(100)&amp;nbsp; &amp;nbsp;| not null&amp;nbsp; | extended |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
&amp;nbsp;param_kwargs&amp;nbsp; | character varying(1000) | not null&amp;nbsp; | extended |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
&amp;nbsp;host_state&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | host_state_enum&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | plain&amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;/pre&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
11) select query&lt;/div&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
airflow=# select * from sqpl_airflow_hosts;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
&amp;nbsp;ip | logical_group | queue_name | param_kwargs | host_state&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
----+---------------+------------+--------------+------------&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
(0 rows)&lt;/div&gt;
&lt;/pre&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
12) Insert Query&lt;/div&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
airflow=# insert into sqpl_airflow_hosts values (&#39;xxx&#39;,&#39;cme_engines&#39;,&#39;10.101.2.253_queue&#39;,&#39;--ip 192.168.201.105 --engine_id 12&#39;,&#39;RUNNING&#39;);&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
INSERT 0 1&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
airflow=# select * from sqpl_airflow_hosts;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
&amp;nbsp;ip&amp;nbsp; | logical_group |&amp;nbsp; &amp;nbsp; &amp;nbsp;queue_name&amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; param_kwargs&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| host_state&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
-----+---------------+--------------------+-------------------------------------+------------&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
&amp;nbsp;xxx | cme_engines&amp;nbsp; &amp;nbsp;| 10.101.2.253_queue | --ip 192.168.201.105 --engine_id 12 | RUNNING&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
(1 row)&lt;/div&gt;
&lt;/pre&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
13) Alter Table&lt;/div&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;airflow=# alter table sqpl_airflow_hosts add column params character varying[];&lt;/pre&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
airflow=# \d+ sqpl_airflow_hosts&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Table &quot;public.sqpl_airflow_hosts&quot;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
&amp;nbsp; &amp;nbsp; Column&amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Type&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| Modifiers | Storage&amp;nbsp; | Stats target | Description&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
---------------+-------------------------+-----------+----------+--------------+-------------&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
&amp;nbsp;ip&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | character varying(15)&amp;nbsp; &amp;nbsp;| not null&amp;nbsp; | extended |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
&amp;nbsp;logical_group | character varying(200)&amp;nbsp; | not null&amp;nbsp; | extended |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
&amp;nbsp;queue_name&amp;nbsp; &amp;nbsp; | character varying(100)&amp;nbsp; | not null&amp;nbsp; | extended |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
&amp;nbsp;param_kwargs&amp;nbsp; | character varying(1000) | not null&amp;nbsp; | extended |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
&amp;nbsp;host_state&amp;nbsp; &amp;nbsp; | host_state_enum&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| plain&amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
&amp;nbsp;command&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| character varying&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| extended |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
&amp;nbsp;params&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | character varying[]&amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| extended |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
Indexes:&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-bottom: 0.5cm; white-space: normal;&quot;&gt;
&amp;nbsp; &amp;nbsp; &quot;sqpl_airflow_hosts_pkey&quot; PRIMARY KEY, btree (logical_group, param_kwargs)&lt;/div&gt;
&lt;/pre&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
airflow=# alter table sqpl_airflow_hosts drop column param_kwargs;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
airflow=# alter table sqpl_airflow_hosts add constraint pkey unique(logical_group, command, params);&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
ALTER TABLE&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
airflow=# \d+ sqpl_airflow_hosts&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Table &quot;public.sqpl_airflow_hosts&quot;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
&amp;nbsp; &amp;nbsp; Column&amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Type&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | Modifiers | Storage&amp;nbsp; | Stats target | Description&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
---------------+------------------------+-----------+----------+--------------+-------------&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
&amp;nbsp;logical_group | character varying(200) | not null&amp;nbsp; | extended |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
&amp;nbsp;queue_name&amp;nbsp; &amp;nbsp; | character varying(100) | not null&amp;nbsp; | extended |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
&amp;nbsp;host_state&amp;nbsp; &amp;nbsp; | host_state_enum&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| plain&amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
&amp;nbsp;command&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| character varying&amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| extended |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
&amp;nbsp;params&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | character varying[]&amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| extended |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
Indexes:&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
&amp;nbsp; &amp;nbsp; &quot;pkey&quot; UNIQUE CONSTRAINT, btree (logical_group, command, params)&lt;/div&gt;
&lt;/div&gt;
&lt;/pre&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;ALTER TABLE&amp;nbsp; sqpl_airflow_hosts ALTER COLUMN logical_group TYPE character varying(100);&lt;/pre&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
14) Update table&lt;/div&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;airflow=# update sqpl_airflow_hosts set command = &#39;start.sh&#39;, params = {&#39;--ip = 192.168.201.105&#39;, &#39;--engine_id 12&#39;} ;&lt;/pre&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
15) Getting Size of DB&lt;/div&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0.5cm;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;monaco&amp;quot; , &amp;quot;consolas&amp;quot; , &amp;quot;bitstream vera sans mono&amp;quot; , &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;airflow=# select pg_relation_size(&#39;sqpl_airflow_hosts&#39;);
 pg_relation_size
------------------
             8192
(1 row)&lt;span style=&quot;color: cyan;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;div&gt;
airflow=# select pg_size_pretty(pg_database_size(current_database()));&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;pg_size_pretty&lt;/div&gt;
&lt;div&gt;
----------------&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;11 MB&lt;/div&gt;
&lt;div&gt;
(1 row)&lt;/div&gt;
&lt;/div&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
16) Know who is connected&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
airflow=# SELECT datname,usename,client_addr,client_port FROM pg_stat_activity ;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&amp;nbsp;datname | usename | client_addr&amp;nbsp; | client_port&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
---------+---------+--------------+-------------&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&amp;nbsp;airflow | airflow | 127.0.0.1&amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;46896&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&amp;nbsp;airflow | airflow | 127.0.0.1&amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;37942&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&amp;nbsp;airflow | airflow | 127.0.0.1&amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;45694&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&amp;nbsp;airflow | airflow | 10.101.2.82&amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;52146&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&amp;nbsp;airflow | airflow | 10.101.2.105 |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;35482&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&amp;nbsp;airflow | airflow | 10.101.2.253 |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;38740&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&amp;nbsp;airflow | airflow | 127.0.0.1&amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;52116&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&amp;nbsp;airflow | airflow | 127.0.0.1&amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;40694&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&amp;nbsp;airflow | airflow | 127.0.0.1&amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;53752&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&amp;nbsp;airflow | airflow | 127.0.0.1&amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;53454&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&amp;nbsp;airflow | airflow | 127.0.0.1&amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;40546&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&amp;nbsp;airflow | airflow | 127.0.0.1&amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;35432&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&amp;nbsp;airflow | airflow | 127.0.0.1&amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;40392&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&amp;nbsp;airflow | airflow | 127.0.0.1&amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;40848&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&amp;nbsp;airflow | airflow | 127.0.0.1&amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;37928&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
(15 rows)&lt;/div&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
17 ) Reload postgress configuration file&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;pre style=&quot;border: 1px dashed rgb(193, 180, 150); color: black; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;monaco&amp;quot; , &amp;quot;consolas&amp;quot; , &amp;quot;bitstream vera sans mono&amp;quot; , &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;span style=&quot;font-size: 16px; white-space: pre-wrap;&quot;&gt;select pg_reload_conf();&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;code class=&quot;sql plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap; width: auto !important;&quot;&gt;&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;
&lt;code class=&quot;sql plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap; width: auto !important;&quot;&gt;18 ) Show DataBase directory&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;
&lt;code class=&quot;sql plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap; width: auto !important;&quot;&gt;&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;
&lt;code class=&quot;sql plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap; width: auto !important;&quot;&gt;&lt;/code&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;code class=&quot;sql plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap; width: auto !important;&quot;&gt;airflow=# SHOW data_directory;
        data_directory
------------------------------
 /var/lib/postgresql/9.5/main
(1 row)&lt;/code&gt;&lt;/pre&gt;
&lt;code class=&quot;sql plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap; width: auto !important;&quot;&gt;
&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;
&lt;code class=&quot;sql plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap; width: auto !important;&quot;&gt;&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;
&lt;code class=&quot;sql plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap; width: auto !important;&quot;&gt;19) Insert into table&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;
&lt;code class=&quot;sql plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap; width: auto !important;&quot;&gt;&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;
&lt;code class=&quot;sql plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap; width: auto !important;&quot;&gt;&lt;/code&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;code class=&quot;sql plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap; width: auto !important;&quot;&gt;insert into sqpl_airflow_hosts values (&#39;cme_engines&#39;,&#39;10.101.2.253_queue&#39;,&#39;RUNNING&#39;,&#39;cd /home/deployment &amp;amp;&amp;amp; /home/deployment/airflow_scripts/start_engine.py&#39;, &#39;{&quot;--ip=192.168.201.105&quot;, &quot;--engine_id=28&quot;}&#39;);&lt;/code&gt;&lt;/pre&gt;
&lt;code class=&quot;sql plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap; width: auto !important;&quot;&gt;
&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;
&lt;code class=&quot;sql plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap; width: auto !important;&quot;&gt;&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;
&lt;code class=&quot;sql plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap; width: auto !important;&quot;&gt;20) Some Select examples&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;
&lt;code class=&quot;sql plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap; width: auto !important;&quot;&gt;&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;
&lt;code class=&quot;sql plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap; width: auto !important;&quot;&gt;&lt;/code&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
&lt;code class=&quot;sql plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap; width: auto !important;&quot;&gt;&lt;code class=&quot;sql plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap; width: auto !important;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;monaco&amp;quot; , &amp;quot;consolas&amp;quot; , &amp;quot;bitstream vera sans mono&amp;quot; , &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;airflow=# select concat(command, &#39; &#39;, array_to_string(params, &#39; &#39;)) from sqpl_airflow_hosts ;
                                                   concat
-------------------------------------------------------------------------------------------------------------
 cd /home/deployment &amp;amp;&amp;amp; /home/deployment/airflow_scripts/start_engine.py --ip=192.168.201.105 --engine_id=12
 cd /home/deployment &amp;amp;&amp;amp; /home/deployment/airflow_scripts/start_engine.py --ip=192.168.201.105 --engine_id=13
 cd /home/deployment &amp;amp;&amp;amp; /home/deployment/airflow_scripts/start_engine.py --ip=192.168.201.105 --engine_id=15
 cd /home/deployment &amp;amp;&amp;amp; /home/deployment/airflow_scripts/start_engine.py --ip=192.168.201.105 --engine_id=17
 cd /home/deployment &amp;amp;&amp;amp; /home/deployment/airflow_scripts/start_engine.py --ip=192.168.201.105 --engine_id=19
 cd /home/deployment &amp;amp;&amp;amp; /home/deployment/airflow_scripts/start_engine.py --ip=192.168.201.105 --engine_id=21
 cd /home/deployment &amp;amp;&amp;amp; /home/deployment/airflow_scripts/start_engine.py --ip=192.168.201.105 --engine_id=22
 cd /home/deployment &amp;amp;&amp;amp; /home/deployment/airflow_scripts/start_engine.py --ip=192.168.201.105 --engine_id=23
 cd /home/deployment &amp;amp;&amp;amp; /home/deployment/airflow_scripts/start_engine.py --ip=192.168.201.105 --engine_id=24
 cd /home/deployment &amp;amp;&amp;amp; /home/deployment/airflow_scripts/start_engine.py --ip=192.168.201.105 --engine_id=28
(10 rows)&lt;/span&gt;&lt;/code&gt;&lt;code class=&quot;sql plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap; width: auto !important;&quot;&gt;
&lt;/code&gt;&lt;/code&gt;&lt;/div&gt;
&lt;code class=&quot;sql plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap; width: auto !important;&quot;&gt;
&lt;div&gt;
&lt;code class=&quot;sql plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap; width: auto !important;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;monaco&amp;quot; , &amp;quot;consolas&amp;quot; , &amp;quot;bitstream vera sans mono&amp;quot; , &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;code class=&quot;sql plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap; width: auto !important;&quot;&gt;
&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;
&lt;code class=&quot;sql plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap; width: auto !important;&quot;&gt;&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.linuxworms.in/feeds/7923375038189808820/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.linuxworms.in/2018/07/postgress-basic-commands.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/7923375038189808820'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/7923375038189808820'/><link rel='alternate' type='text/html' href='http://www.linuxworms.in/2018/07/postgress-basic-commands.html' title='postgress basic commands'/><author><name>Amit</name><uri>http://www.blogger.com/profile/11325460583960515380</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSgOg8f7MBgN1FyVZ1xxvcwSVFn67YuvU6Yb5knmaClkFlLQBJ47J0v29OBXu33ADnO8hSthUHmeLTv8kMlYZUiXob6EGVa4ZQp8AwoiozmcliFoCRyo9pMppfdix1UA/s113/Photo0327.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8718643356399755975.post-6368787758552136880</id><published>2018-07-02T11:28:00.003+05:30</published><updated>2018-07-02T12:21:36.616+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="sudo"/><category scheme="http://www.blogger.com/atom/ns#" term="sudo examples"/><category scheme="http://www.blogger.com/atom/ns#" term="sudoers"/><category scheme="http://www.blogger.com/atom/ns#" term="visudo"/><title type='text'>SUDO COMMANDS EXAMPLES</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Syntax for sudoers file is as below&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;USER_ALIAS HOST_ALIAS=EFECTIVE_USER) COMMAND_ALIAS&lt;/pre&gt;
&lt;br /&gt;
Now Let&#39;s understand the components.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;USER_ALIAS &lt;/b&gt;: User aliases are used to specify users, groups or netgroups.&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;examples&lt;/b&gt;:&lt;br /&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
User_Alias ADMINS = %admin&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
User_Alias WEBMASTERS = tom,rob&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
User_Alias LIMITED_USERS = !WEBMASTERS, !ADMINS&lt;/div&gt;
&lt;/pre&gt;
&lt;br /&gt;
&lt;b&gt;HOST_ALIAS:&amp;nbsp;&lt;/b&gt;list of hostname, ip addresses, networks and netgroups&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;examples&lt;/b&gt;:&lt;br /&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
Host_Alias SERVERS = 192.168.0.1, 192.168.0.2, server1&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
Host_Alias WORKSTATIONS = 192.168.0.0/255.255.255.0, !SERVERS&lt;/div&gt;
&lt;/pre&gt;
&lt;br /&gt;
&lt;b&gt;EFECTIVE_USER &lt;/b&gt;: Who can run what as who&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;examples:&lt;/b&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;User_Alias EFECTIVE_USER = sam,rob&lt;/pre&gt;
&lt;br /&gt;
&lt;b&gt;COMMAND_ALIAS: L&lt;/b&gt;ists of commands ( full path of commands) and directories&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;examples&lt;/b&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
Cmnd_Alias&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SBIN_CMDS = /sbin&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;
Cmnd_Alias&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; APP_CMDS =&amp;nbsp; /usr/bin/passwd, /sbin/service httpd *, /sbin/ifconfig : DB_CMDS = /bin/su – admin, /home/admin/zabbix_server : ADMIN_CMDS = /sbin/, /usr/sbin/&lt;/div&gt;
&lt;/pre&gt;
&lt;br /&gt;
Now let&#39;s try some usecase&lt;br /&gt;
&lt;br /&gt;
1) user rob to run /bin/su command with root privileges. Same time it restricts using any options/argument and login to root.&lt;br /&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;rob&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ALL = (root)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /bin/su [!-]*[!root]*&lt;/pre&gt;
&lt;br /&gt;
2) This lets the admins run all the admin commands on the servers&lt;br /&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;ADMINS SERVERS= ADMIN_CMDS&lt;/pre&gt;
&lt;br /&gt;
3) This lets &quot;rob&quot; shutdown his own machine without a password&lt;br /&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;rob rob-machine= NOPASSWD: SHUTDOWN_CMDS&lt;/pre&gt;
&lt;br /&gt;
4) rob should run command hwclock only ( without any arguments)&lt;br /&gt;
&lt;pre style=&quot;background-color: #f3f3f3; border: 1px dashed rgb(193, 180, 150); color: #333333; font-family: UbuntuMono, courier, monospace; font-size: 13px; line-height: 16px; margin-bottom: 8px; padding: 4pt; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;rob&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ALL = (ALL)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /sbin/hwclock “”&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.linuxworms.in/feeds/6368787758552136880/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.linuxworms.in/2018/07/sudo-commands-examples.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/6368787758552136880'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/6368787758552136880'/><link rel='alternate' type='text/html' href='http://www.linuxworms.in/2018/07/sudo-commands-examples.html' title='SUDO COMMANDS EXAMPLES'/><author><name>Amit</name><uri>http://www.blogger.com/profile/11325460583960515380</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSgOg8f7MBgN1FyVZ1xxvcwSVFn67YuvU6Yb5knmaClkFlLQBJ47J0v29OBXu33ADnO8hSthUHmeLTv8kMlYZUiXob6EGVa4ZQp8AwoiozmcliFoCRyo9pMppfdix1UA/s113/Photo0327.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8718643356399755975.post-8825165317615287114</id><published>2018-06-28T12:33:00.000+05:30</published><updated>2018-06-28T12:35:57.878+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="rsync"/><category scheme="http://www.blogger.com/atom/ns#" term="rsync only key"/><category scheme="http://www.blogger.com/atom/ns#" term="scp"/><category scheme="http://www.blogger.com/atom/ns#" term="scp only key"/><title type='text'>Restrict ssh-key to rsync only</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Friends,&lt;br /&gt;
&lt;br /&gt;
In this blog I am sharing how to restrict your ssh-key. Just take an example for below ssh key&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;example 1)&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: #242729; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;from=&quot;192.168.101.221&quot;,command=&quot;if [[ \&quot;$SSH_ORIGINAL_COMMAND\&quot; =~ ^scp.? ]]; then $SSH_ORIGINAL_COMMAND ; else echo Access Denied; fi&quot;,no-pty,no-port-forwarding,no-agent-forwarding,no-X11-forwarding ssh-rsa .... &lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;b&gt;Details are below,&lt;/b&gt;&lt;br /&gt;
from= Restrict from specific host&lt;br /&gt;
command=Specifies that the command is executed whenever this key is used for authentication&lt;br /&gt;
no-port-forwarding=&amp;nbsp;Forbids TCP forwarding&lt;br /&gt;
no-agent-forwarding=Forbids authentication agent forwarding&lt;br /&gt;
no-X11-forwarding=Forbids X11 forwarding&lt;br /&gt;
&lt;br /&gt;
So basically this key can use for having scp-only access from particular host.&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;example 2 )&lt;/b&gt;&lt;br /&gt;
command=&quot;if [[ \&quot;$SSH_ORIGINAL_COMMAND\&quot; =~ ^scp[[:space:]]-f[[:space:]]/home/user/data/.? ]]; then $SSH_ORIGINAL_COMMAND ; else echo Access Denied; fi&quot; ssh-rsa ....&lt;br /&gt;
&lt;br /&gt;
Above&amp;nbsp; will restrict user to scp only for&lt;b&gt; /home/user/data/ &lt;/b&gt;folder&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Example 3)&lt;/b&gt; Now take a example to allow only rsync.&lt;br /&gt;
&lt;br /&gt;
cat /home/$USERNAME/rsync-check.sh&lt;br /&gt;
&lt;pre style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: #242729; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&quot;&gt;&lt;pre style=&quot;border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;#!/bin/sh
case &quot;$SSH_ORIGINAL_COMMAND&quot; in 
*\&amp;amp;*) 
echo &quot;Rejected&quot; 
;; 
*\(*) 
echo &quot;Rejected&quot; 
;; 
*\{*) 
echo &quot;Rejected&quot; 
;; 
*\;*) 
echo &quot;Rejected&quot; 
;; 
*\&amp;lt;*) 
echo &quot;Rejected&quot; 
;; 
*\&amp;gt;*) 
echo &quot;Rejected&quot; 
;; 
*\`*) 
echo &quot;Rejected&quot; 
;; 
*\|*) 
echo &quot;Rejected&quot; 
;; 
rsync\ --server*) 
$SSH_ORIGINAL_COMMAND 
;; 
*) 
echo &quot;Rejected&quot; 
;; 
esac&lt;/code&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;div style=&quot;border: 0px; box-sizing: inherit; clear: both; color: #242729; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;code style=&quot;background-color: white; border: 0px; box-sizing: inherit; font-size: 15px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 1px 5px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Now change your&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;code style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 1px 5px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;authorized_keys&lt;/code&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 15px;&quot;&gt;&amp;nbsp;file as below&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: #242729; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;command=&quot;/home/$USERNAME/rsync-check.sh&quot; ssh-rsa....&lt;/code&gt;&lt;/pre&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;example 4)&lt;/b&gt; Just take an example of&amp;nbsp;&lt;code style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: #242729; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 1px 5px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;authorized_keys&lt;/code&gt;&lt;span style=&quot;color: #242729; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 15px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;file for aws server.&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: #242729; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&quot;&gt;no-port-forwarding,no-agent-forwarding,no-X11-forwarding,command=&quot;echo &#39;Please login as the user \&quot;ubuntu\&quot; rather than the user \&quot;root\&quot;.&#39;;echo;sleep 10&quot; ssh-rsa ...&lt;/pre&gt;
&lt;br /&gt;
Now you can understand how we were getting warning to use right user name error while connecting aws boxes.&lt;br /&gt;
&lt;br /&gt;
Note: Just check man page of sshd and make your own use case.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.linuxworms.in/feeds/8825165317615287114/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.linuxworms.in/2018/06/restrict-ssh-key-to-rsync-only.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/8825165317615287114'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/8825165317615287114'/><link rel='alternate' type='text/html' href='http://www.linuxworms.in/2018/06/restrict-ssh-key-to-rsync-only.html' title='Restrict ssh-key to rsync only'/><author><name>Amit</name><uri>http://www.blogger.com/profile/11325460583960515380</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSgOg8f7MBgN1FyVZ1xxvcwSVFn67YuvU6Yb5knmaClkFlLQBJ47J0v29OBXu33ADnO8hSthUHmeLTv8kMlYZUiXob6EGVa4ZQp8AwoiozmcliFoCRyo9pMppfdix1UA/s113/Photo0327.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8718643356399755975.post-4359590257174143883</id><published>2016-09-30T13:33:00.002+05:30</published><updated>2016-09-30T13:36:15.434+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="cpu affinity"/><category scheme="http://www.blogger.com/atom/ns#" term="CPU SMP Affinity"/><category scheme="http://www.blogger.com/atom/ns#" term="Interrupts"/><title type='text'>Interrupts and CPU SMP Affinity</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Interrupts&lt;/b&gt;:&lt;br /&gt;
&lt;br /&gt;
Interrupts are signal that are sent across IRQ (Interrupt Request Line) by a hardware or software. Interrupts allow devices like keyboard, serial cards and parallel ports to indicate that it needs CPU attention.&lt;br /&gt;
&lt;br /&gt;
On a Linux machine, the file /proc/interrupts contains information about the interrupts in use and how many times processor has been interrupted.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;SMP_AFFINITY:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Symmetric multiprocessing is the processing of programs by multiple processors.&lt;br /&gt;
&lt;br /&gt;
smp_affinity file holds interrupt affinity value for a IRQ number. The smp_affinity file associated with each IRQ number is stored in /proc/irq/IRQ_NUMBER/smp_affinity file. The value in the file is stored in hexadecimal bit-mask representing all CPU cores in the system. smp_affinity works for device that has IO-APIC enabled device drivers.&lt;br /&gt;
&lt;br /&gt;
For example, smp_affinity entry for Ethernet driver is shown below:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;root@test007:grep eth0 /proc/interrupts&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CPU0 &amp;nbsp; &amp;nbsp; &amp;nbsp; CPU1 &amp;nbsp; &amp;nbsp; &amp;nbsp; CPU2 &amp;nbsp; &amp;nbsp; &amp;nbsp; CPU3 &amp;nbsp; &amp;nbsp; &amp;nbsp; CPU4 &amp;nbsp; &amp;nbsp; &amp;nbsp; CPU5 &amp;nbsp; &amp;nbsp; &amp;nbsp; CPU6 &amp;nbsp; &amp;nbsp; &amp;nbsp; CPU7&lt;br /&gt;
&lt;br /&gt;
67: &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;0 &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;23834931 &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;0 &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;0 &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;0&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;0 &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;0&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;0&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;IO-APIC-level eth0&lt;br /&gt;
&lt;br /&gt;
IRQ number for eth0 is 67 and corresponding smp_affinity file will be located at:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;root@test007: cat /proc/irq/67/smp_affinity&lt;/b&gt;&lt;br /&gt;
10&lt;br /&gt;
&lt;br /&gt;
The decimal equivalent for hexadecimal value ‘10’ is ‘2’. ie All the interrupt related to Ethernet driver will be serviced by 2nd cpu (CPU1)&lt;br /&gt;
&lt;br /&gt;
============&lt;br /&gt;
&lt;br /&gt;
&quot;10&quot; is the hexadecimal representation for the decimal number 2&lt;br /&gt;
and the binary pattern of &quot;0010&quot;. &amp;nbsp;Each of the places in the binary pattern&lt;br /&gt;
corresponds to a CPU in the server, which means we can use the following&lt;br /&gt;
chart to represent the CPU bit patterns:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Binary &amp;nbsp; &amp;nbsp; &amp;nbsp; Hex&lt;br /&gt;
&amp;nbsp; &amp;nbsp; CPU 0 &amp;nbsp; &amp;nbsp;0001 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; CPU 1 &amp;nbsp; &amp;nbsp;0010 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; CPU 2 &amp;nbsp; &amp;nbsp;0100 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4&lt;br /&gt;
&amp;nbsp; &amp;nbsp; CPU 3 &amp;nbsp; &amp;nbsp;1000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8&lt;br /&gt;
&lt;br /&gt;
By combining these bit patterns (basically, just adding the Hex values), we&lt;br /&gt;
can address more than one processor at a time. &amp;nbsp; For example, if I wanted&lt;br /&gt;
to talk to both CPU0 and CPU2 at the same time, the result is:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Binary &amp;nbsp; &amp;nbsp; &amp;nbsp; Hex&lt;br /&gt;
&amp;nbsp; &amp;nbsp; CPU 0 &amp;nbsp; &amp;nbsp;0001 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;br /&gt;
&amp;nbsp; + CPU 2 &amp;nbsp; &amp;nbsp;0100 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4&lt;br /&gt;
&amp;nbsp; &amp;nbsp; -----------------------&lt;br /&gt;
&amp;nbsp; &amp;nbsp; both &amp;nbsp; &amp;nbsp; 0101 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5&lt;br /&gt;
&lt;br /&gt;
If I want to address all four of the processors at once, then the result is:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Binary &amp;nbsp; &amp;nbsp; &amp;nbsp; Hex&lt;br /&gt;
&amp;nbsp; &amp;nbsp; CPU 0 &amp;nbsp; &amp;nbsp;0001 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; CPU 1 &amp;nbsp; &amp;nbsp;0010 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; CPU 2 &amp;nbsp; &amp;nbsp;0100 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4&lt;br /&gt;
&amp;nbsp; + CPU 3 &amp;nbsp; &amp;nbsp;1000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8&lt;br /&gt;
&amp;nbsp; &amp;nbsp; -----------------------&lt;br /&gt;
&amp;nbsp; &amp;nbsp; both &amp;nbsp; &amp;nbsp; 1111 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; f&lt;br /&gt;
&lt;br /&gt;
Given that, we now know that if we have a eight processor system, we can&lt;br /&gt;
assign any different CPU combinations to an IRQ.&lt;br /&gt;
&lt;br /&gt;
example:&lt;br /&gt;
&lt;br /&gt;
echo &quot;01&quot; &amp;gt; /proc/irq/67/smp_affinity for 1st core&lt;br /&gt;
echo &quot;03&quot; &amp;gt; /proc/irq/67/smp_affinity for assign on 1st and 2nd core&lt;br /&gt;
echo &quot;05&quot; &amp;gt; /proc/irq/67/smp_affinity for assigning 1st and 3rd core&lt;br /&gt;
echo &quot;f0&quot; &amp;gt; /proc/irq/67/smp_affinity for assigning 5th to 8th core&lt;br /&gt;
====================&lt;br /&gt;
&lt;b&gt;Note &lt;/b&gt;: If you are not good in hex to bin conversion, please use this &lt;a href=&quot;http://www.online-toolz.com/tools/hex-binary-convertor.php&quot; target=&quot;_blank&quot;&gt;site&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;IRQ Balance&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Irqbalance is a utility that distributes interrupts over the processor cores in your computer system. which helps to improve performance.&lt;br /&gt;
&lt;br /&gt;
It&#39;s goal is to find a balance between power saving and optimal performance.&lt;br /&gt;
&lt;br /&gt;
Irqbalance is especially useful on systems with multi-core processors, as interrupts will typically only be serviced by the first core.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.linuxworms.in/feeds/4359590257174143883/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.linuxworms.in/2016/09/interrupts-and-cpu-smp-affinity.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/4359590257174143883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/4359590257174143883'/><link rel='alternate' type='text/html' href='http://www.linuxworms.in/2016/09/interrupts-and-cpu-smp-affinity.html' title='Interrupts and CPU SMP Affinity'/><author><name>Amit</name><uri>http://www.blogger.com/profile/11325460583960515380</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSgOg8f7MBgN1FyVZ1xxvcwSVFn67YuvU6Yb5knmaClkFlLQBJ47J0v29OBXu33ADnO8hSthUHmeLTv8kMlYZUiXob6EGVa4ZQp8AwoiozmcliFoCRyo9pMppfdix1UA/s113/Photo0327.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8718643356399755975.post-8731195355002106777</id><published>2016-09-24T20:23:00.000+05:30</published><updated>2016-09-24T20:23:34.977+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="cpu isolation"/><category scheme="http://www.blogger.com/atom/ns#" term="cpu pinning"/><category scheme="http://www.blogger.com/atom/ns#" term="cpuidle"/><title type='text'>Run a program on specific CPU core</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Run a particular process with cpu cores 4 and 5&lt;br /&gt;
taskset -cp 4,5 &amp;lt;process_id&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
[root@masterDNS ~]# taskset &lt;b&gt;03&lt;/b&gt; /usr/bin/watch -n1 w&lt;br /&gt;
&lt;br /&gt;
Now check if it&#39;s really working&lt;br /&gt;
&lt;br /&gt;
[root@masterDNS ~]# ps -ef | grep watch&lt;br /&gt;
root &amp;nbsp; &amp;nbsp; &lt;b&gt;14590&lt;/b&gt; 14365 &amp;nbsp;0 20:00 pts/0 &amp;nbsp; &amp;nbsp;00:00:00 /usr/bin/watch -n1 w&lt;br /&gt;
root &amp;nbsp; &amp;nbsp; 14644 14609 &amp;nbsp;0 20:00 pts/1 &amp;nbsp; &amp;nbsp;00:00:00 grep watch&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[root@masterDNS ~]# taskset -p &lt;b&gt;14590&lt;/b&gt;&lt;br /&gt;
pid 14590&#39;s current affinity mask: &lt;b&gt;3&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If We want to dedicate a whole CPU core to a particular program and no other then your process should use this core.&lt;br /&gt;
Then use &quot;isolcpus&quot; kernel parameter in grub option.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;GRUB_CMDLINE_LINUX_DEFAULT=&quot;cpuidle.off=1 idle=poll isolcpus=5 nohz_full=5 maxcpus=6&quot;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
update-grub&lt;br /&gt;
&lt;br /&gt;
Note: below are meaning&lt;br /&gt;
&lt;br /&gt;
cpuidle.off=1 (Do not make cpu idle)&lt;br /&gt;
isolcpus=5 &amp;nbsp;(Isolate cpu core 5)&lt;br /&gt;
maxcpus=6 (Use only 6 core (out of 8 cores of system) for )&lt;br /&gt;
idle=poll (Poll forces a polling idle loop)&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.linuxworms.in/feeds/8731195355002106777/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.linuxworms.in/2016/09/run-program-on-specific-cpu-core.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/8731195355002106777'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/8731195355002106777'/><link rel='alternate' type='text/html' href='http://www.linuxworms.in/2016/09/run-program-on-specific-cpu-core.html' title='Run a program on specific CPU core'/><author><name>Amit</name><uri>http://www.blogger.com/profile/11325460583960515380</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSgOg8f7MBgN1FyVZ1xxvcwSVFn67YuvU6Yb5knmaClkFlLQBJ47J0v29OBXu33ADnO8hSthUHmeLTv8kMlYZUiXob6EGVa4ZQp8AwoiozmcliFoCRyo9pMppfdix1UA/s113/Photo0327.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8718643356399755975.post-8506390630220382931</id><published>2016-08-25T10:45:00.000+05:30</published><updated>2016-08-25T10:45:16.588+05:30</updated><title type='text'>Mac binding in DHCP along with mobile phone restriction </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
As we have setup &lt;a href=&quot;http://www.linuxworms.in/2016/08/bind-with-tsig-transfer-key.html&quot; target=&quot;_blank&quot;&gt;TSIG &lt;/a&gt;along with &lt;a href=&quot;http://www.linuxworms.in/2014/01/configure-master-slave-bind-replication.html&quot; target=&quot;_blank&quot;&gt;master-slave&lt;/a&gt; of bind DNS. Now we are configuring dhcp setup.&lt;br /&gt;
Below are the steps.&lt;br /&gt;
&lt;br /&gt;
[root@dlp ~]# yum -y install dhcp&lt;br /&gt;
&lt;br /&gt;
[root@dlp ~]# vi /etc/dhcp/dhcpd.conf&lt;br /&gt;
================&lt;br /&gt;
#&lt;br /&gt;
# DHCP Server Configuration file.&lt;br /&gt;
# &amp;nbsp; see /usr/share/doc/dhcp*/dhcpd.conf.sample&lt;br /&gt;
# &amp;nbsp; see &#39;man 5 dhcpd.conf&#39;&lt;br /&gt;
#&lt;br /&gt;
# atpl-subnet&lt;br /&gt;
ddns-updates on;&lt;br /&gt;
ddns-update-style interim;&lt;br /&gt;
&lt;br /&gt;
set vendor-string = option vendor-class-identifier;&lt;br /&gt;
&lt;br /&gt;
class &quot;android&quot; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; match if substring (option vendor-class-identifier,0,6) = &quot;dhcpcd&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
class &quot;android-1&quot; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; match if substring (option vendor-class-identifier,0,7) = &quot;android&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
class &quot;BlackBerry&quot; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; match if substring (option vendor-class-identifier,0,10) = &quot;BlackBerry&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
class &quot;iPhones&quot; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; match if suffix (option host-name,6) = &quot;iPhone&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
key rndc-key {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; algorithm hmac-md5;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; secret e511iZsuCmKS4BPfBje7hQ==;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
allow client-updates;&lt;br /&gt;
authoritative;&lt;br /&gt;
#update-optimization off;&lt;br /&gt;
&lt;br /&gt;
subnet 172.24.40.0 netmask 255.255.255.0 {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; interface eth0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pool {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; deny members of &quot;android&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; deny members of &quot;android-1&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; deny members of &quot;BlackBerry&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; deny members of &quot;iPhones&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; range 172.24.40.1 172.24.40.200;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; option broadcast-address 172.24.40.255;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; option subnet-mask 255.255.255.0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; option routers 172.24.40.253;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; option domain-name &quot;domain40.example.com&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; option domain-name-servers 172.24.40.100;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; default-lease-time 900;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; max-lease-time 900;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
host station-x.domain40.example.com. {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hardware ethernet 00:8e:f2:5d:07:17;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fixed-address 172.24.40.100;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
host station-y.domain40.example.com. {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hardware ethernet 00:26:b9:86:02:73;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fixed-address 172.24.40.101;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
zone domain40.example.com. {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; primary localhost;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; key rndc-key;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
zone 40.24.192.in-addr.arpa. {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; primary localhost;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; key rndc-key;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
====================================&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.linuxworms.in/feeds/8506390630220382931/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.linuxworms.in/2016/08/mac-binding-in-dhcp-along-with-mobile.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/8506390630220382931'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/8506390630220382931'/><link rel='alternate' type='text/html' href='http://www.linuxworms.in/2016/08/mac-binding-in-dhcp-along-with-mobile.html' title='Mac binding in DHCP along with mobile phone restriction '/><author><name>Amit</name><uri>http://www.blogger.com/profile/11325460583960515380</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSgOg8f7MBgN1FyVZ1xxvcwSVFn67YuvU6Yb5knmaClkFlLQBJ47J0v29OBXu33ADnO8hSthUHmeLTv8kMlYZUiXob6EGVa4ZQp8AwoiozmcliFoCRyo9pMppfdix1UA/s113/Photo0327.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8718643356399755975.post-2435270539977239026</id><published>2016-08-25T10:29:00.000+05:30</published><updated>2016-08-25T10:29:14.635+05:30</updated><title type='text'>Bind with TSIG Transfer key</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
As we have configured master slave DNS on my previous &lt;a href=&quot;http://www.linuxworms.in/2014/01/configure-master-slave-bind-replication.html&quot; target=&quot;_blank&quot;&gt;link&lt;/a&gt;. Lets have replication with TSIG.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 1) On system-x&lt;/b&gt;&lt;br /&gt;
# cd /var/named/chroot/etc&lt;br /&gt;
# dnssec-keygen -a HMAC-MD5 -b 128 -n HOST station-x-station-y.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Now two files will be create&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
# cat &amp;nbsp;Kstation-x-station-y.+157+01233.private &amp;nbsp;(copy the key from here)&lt;br /&gt;
&lt;br /&gt;
# cp -p rndc.key transfer.key&lt;br /&gt;
# vim transfer.key&lt;br /&gt;
key &quot;station-x-station-y.&quot; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; algorithm &amp;nbsp; &amp;nbsp; &amp;nbsp; hmac-md5;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; secret &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&quot;e511iZsuCmKS4BPfBje7hQ==&quot;;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
# vim named.conf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
include &quot;/etc/transfer.key&quot;;&lt;br /&gt;
acl mylan {172.24.40.0/24;};&lt;br /&gt;
&lt;br /&gt;
allow-transfer {key station-x-station-y.; };&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; allow-query &amp;nbsp; &amp;nbsp; { localhost; mylan; any; };&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; allow-query-cache { localhost; mylan; any; };&lt;br /&gt;
&lt;br /&gt;
(save)&lt;br /&gt;
&lt;br /&gt;
# &amp;nbsp;ln -s transfer.key /etc/transfer.key&lt;br /&gt;
#service named restart&lt;br /&gt;
#named-checkconf named.conf&lt;br /&gt;
&lt;br /&gt;
#scp transfer.key station-y:/var/named/chroot/etc/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# vi domain40.example.com.forward (add one more record)&lt;br /&gt;
&lt;br /&gt;
secret-x.domain40.example.com. &amp;nbsp;IN A &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;172.24.40.100&lt;br /&gt;
&lt;br /&gt;
(save)&lt;br /&gt;
&lt;br /&gt;
# /etc/init.d/named restart&lt;br /&gt;
&lt;br /&gt;
On system -y&lt;br /&gt;
# chgrp named transfer.key&lt;br /&gt;
&lt;br /&gt;
# vim named.conf&lt;br /&gt;
&lt;br /&gt;
include &quot;/etc/transfer.key&quot;;&lt;br /&gt;
acl mylan {172.24.40.0/24;};&lt;br /&gt;
server 172.24.40.100 {&lt;br /&gt;
keys {station-x-station-y.; };&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# rndc refresh domain40.example.com&lt;br /&gt;
&lt;br /&gt;
# grep -i tsig /var/log/messages --color&lt;br /&gt;
&lt;br /&gt;
# /etc/init.d/named restart&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.linuxworms.in/feeds/2435270539977239026/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.linuxworms.in/2016/08/bind-with-tsig-transfer-key.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/2435270539977239026'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/2435270539977239026'/><link rel='alternate' type='text/html' href='http://www.linuxworms.in/2016/08/bind-with-tsig-transfer-key.html' title='Bind with TSIG Transfer key'/><author><name>Amit</name><uri>http://www.blogger.com/profile/11325460583960515380</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSgOg8f7MBgN1FyVZ1xxvcwSVFn67YuvU6Yb5knmaClkFlLQBJ47J0v29OBXu33ADnO8hSthUHmeLTv8kMlYZUiXob6EGVa4ZQp8AwoiozmcliFoCRyo9pMppfdix1UA/s113/Photo0327.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8718643356399755975.post-1241389999211346189</id><published>2015-03-08T20:20:00.000+05:30</published><updated>2015-03-08T20:20:03.761+05:30</updated><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;404 (NOT FOUND) error redirection to your&amp;nbsp;custom&amp;nbsp;page in nginx.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
Hi Friends,&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
As per my company requirement I had to configure redirection for 404 error to our custom page &quot;404.html&quot; in nginx.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Follow below steps :-&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Step #1. Make your&amp;nbsp;custom&amp;nbsp;page 404.html which you want to display.&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Step #2. Keep 404.html at any location my location is&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&quot;/var/www/web1/domains/www.example.com/web/error/&quot;.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Step #3. Edit your nginx config file.&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[root@ip ~]# vim /etc/nginx/conf.d/example.com.conf&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; server {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; server_name &amp;nbsp;marriage.com;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rewrite ^ $scheme://www.example$request_uri redirect;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;}&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; server {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; server_name www.example.com;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; root /var/www/web1/domains/www.example.com/web;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; index &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;index.php index.html index.htm;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;access_log &amp;nbsp; &amp;nbsp; /var/log/nginx/example.com_access.log &amp;nbsp;upstream;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;error_log &amp;nbsp; &amp;nbsp; &amp;nbsp;/var/log/nginx/example.com_error.log;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
## Below code redirect all &amp;nbsp;page not found error to 404.thml page&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp;error_page &amp;nbsp;404 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/404.html;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp;location = /404.html {&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; root &amp;nbsp; /var/www/web1/domains/www.example.com/web/error/;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp;}&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Save and Exit.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Step #4 Reload nginx&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;#service nginx reload&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.linuxworms.in/feeds/1241389999211346189/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.linuxworms.in/2015/03/404-not-found-error-redirection-to-your.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/1241389999211346189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/1241389999211346189'/><link rel='alternate' type='text/html' href='http://www.linuxworms.in/2015/03/404-not-found-error-redirection-to-your.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8718643356399755975.post-71561506870731452</id><published>2015-02-21T20:30:00.000+05:30</published><updated>2015-02-21T20:30:49.837+05:30</updated><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Install Memcached Caching System on Redhat/CentOs&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Linux man page :-&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
Memcached is a flexible memory object caching daemon designed to alleviate database load in dynamic web applications by storing objects in memory. It&#39;s based on libevent to scale to any size needed, and is specifically optimized to avoid swapping and always use non-blocking I/O.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step #1 : Download and install EPEL Repo&lt;/b&gt;&lt;br /&gt;rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 2# : Install memcached&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;yum --enablerepo=epel,remi install memcached&amp;nbsp; php-pecl-memcache&lt;br /&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Step #3 : Configure memcached&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;[root@app02 web]# vim /etc/sysconfig/memcached&lt;br /&gt;PORT=&quot;11211&quot;&lt;br /&gt;USER=&quot;memcached&quot;&lt;br /&gt;MAXCONN=&quot;1024&quot;&lt;br /&gt;CACHESIZE=&quot;1024&quot;&lt;br /&gt;# listen to loopback ip 127.0.0.1, for network connection use real ip e.g., 10.0.0.4&lt;br /&gt;OPTIONS=&quot;-l 127.0.0.1&quot;&lt;br /&gt;&lt;br /&gt;The above using 1GB of memory, and listening on IP 127.0.0.1, port 11211. Save and close the file&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step #4 : Restart memcached services&lt;/b&gt;&lt;br /&gt;[root@app02 web]#service memcached start&lt;br /&gt;[root@app02 web]#chkconfig memcached on&lt;br /&gt;&lt;br /&gt;Note :- If you want to run memcached on socket please make below changes in /etc/sysconfig/memcached&lt;br /&gt;&lt;br /&gt;[root@app02 web]# vim /etc/sysconfig/memcached&lt;br /&gt;PORT=&quot;11211&quot;&lt;br /&gt;USER=&quot;memcached&quot;&lt;br /&gt;MAXCONN=&quot;1024&quot;&lt;br /&gt;CACHESIZE=&quot;1024&quot;&lt;br /&gt;# listen to loopback ip 127.0.0.1, for network connection use real ip e.g., 10.0.0.4&lt;br /&gt;#OPTIONS=&quot;-l 127.0.0.1&quot; (Uncomment)&lt;br /&gt;OPTIONS=&quot;-s /var/run/memcached/memcached.sock -a 0666&quot;&lt;br /&gt;&lt;br /&gt;[root@app02 web]#service memcached start&lt;br /&gt;[root@app02 web]#chkconfig memcached on&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Check mamcached Listening on socket:--&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;[root@vsrv02 /]# netstat -nlp | grep memcached&lt;br /&gt;
unix&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ ACC ]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STREAM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LISTENING&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2782009389 23554/memcached&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /var/run/memcached/memcached.sock&lt;br /&gt;
&lt;br /&gt;
Note:- Unix Socket can only be accessed localy.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.linuxworms.in/feeds/71561506870731452/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.linuxworms.in/2015/02/install-memcached-caching-system-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/71561506870731452'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/71561506870731452'/><link rel='alternate' type='text/html' href='http://www.linuxworms.in/2015/02/install-memcached-caching-system-on.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8718643356399755975.post-6924081186651429965</id><published>2014-01-16T14:52:00.000+05:30</published><updated>2014-01-16T14:53:09.054+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="grub lock"/><category scheme="http://www.blogger.com/atom/ns#" term="grub protection"/><category scheme="http://www.blogger.com/atom/ns#" term="grub-md5-crypt"/><title type='text'>Password Protecting GRUB</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: LiberationSans; font-size: 10pt; line-height: 115%;&quot;&gt;Hello Friends,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: LiberationSans; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: LiberationSans; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: LiberationSans;&quot;&gt;We could configure boot
loader password for preventing unauthorised access of grub menu.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: LiberationSans; font-size: 10.0pt; mso-bidi-font-family: LiberationSans;&quot;&gt;But this
solution does not prevent an attacker from booting into an insecure operating&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: LiberationSans; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: LiberationSans;&quot;&gt;system in a dual-boot
environment.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: LiberationSans; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: LiberationSans;&quot;&gt;So we could use &lt;b&gt;lock&lt;/b&gt; directive for such prevention.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: LiberationSans; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: LiberationSans;&quot;&gt;Below are steps for the same.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: LiberationSans; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: LiberationSans;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: LiberationSans; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: LiberationSans;&quot;&gt;&lt;b&gt;Step 1) Generate md5
encrypted password&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: LiberationSans; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: LiberationSans;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: LiberationSans; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: LiberationSans;&quot;&gt;=============================&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: LiberationSans; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: LiberationSans;&quot;&gt;[root@station-x ~]# grub-md5-crypt&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: LiberationSans; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: LiberationSans;&quot;&gt;Password:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: LiberationSans; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: LiberationSans;&quot;&gt;Retype password:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: LiberationSans; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: LiberationSans;&quot;&gt;$1$pgjiX1$PVxHe8rI0a1S.Cgh4AKzB.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: LiberationSans; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: LiberationSans;&quot;&gt;==================================&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: LiberationSans; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: LiberationSans;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: LiberationSans; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: LiberationSans;&quot;&gt;&lt;b&gt;Step 2) Edit grub.conf as
shown below&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: LiberationSans; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: LiberationSans;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: LiberationSans; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: LiberationSans;&quot;&gt;=================================&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
title Red Hat Enterprise Linux (2.6.32-220.el6.x86_64)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;lock&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;password --md5 &lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: LiberationSans; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: LiberationSans;&quot;&gt;$1$pgjiX1$PVxHe8rI0a1S.Cgh4AKzB.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
root (hd0,0)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
kernel /vmlinuz-2.6.32-220.el6.x86_64 ro
root=UUID=224b3aa3-6cd2-4634-a409-1a834c46fa9c rd_NO_LUKS rd_NO_LVM
LANG=en_US.UTF-8 rd_NO_MD quiet SYSFONT=latarcyrheb-sun16 rhgb
crashkernel=auto&amp;nbsp; KEYBOARDTYPE=pc
KEYTABLE=us rd_NO_DM&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
initrd /initramfs-2.6.32-220.el6.x86_64.img&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
===============================================&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.linuxworms.in/feeds/6924081186651429965/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.linuxworms.in/2014/01/password-protecting-grub.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/6924081186651429965'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/6924081186651429965'/><link rel='alternate' type='text/html' href='http://www.linuxworms.in/2014/01/password-protecting-grub.html' title='Password Protecting GRUB'/><author><name>Amit</name><uri>http://www.blogger.com/profile/11325460583960515380</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSgOg8f7MBgN1FyVZ1xxvcwSVFn67YuvU6Yb5knmaClkFlLQBJ47J0v29OBXu33ADnO8hSthUHmeLTv8kMlYZUiXob6EGVa4ZQp8AwoiozmcliFoCRyo9pMppfdix1UA/s113/Photo0327.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8718643356399755975.post-4750761119080172906</id><published>2014-01-09T10:28:00.001+05:30</published><updated>2014-01-09T10:31:11.815+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="bind configuration"/><category scheme="http://www.blogger.com/atom/ns#" term="Bind in redhat"/><category scheme="http://www.blogger.com/atom/ns#" term="configure Bind in linux"/><category scheme="http://www.blogger.com/atom/ns#" term="configure DNS in linux"/><category scheme="http://www.blogger.com/atom/ns#" term="DNS in rhel6"/><category scheme="http://www.blogger.com/atom/ns#" term="master slave DNS"/><title type='text'>Configure Master Slave bind replication in RHEL6</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Hi friends,&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Lets learn bind DNS master-slave&amp;nbsp; configuration in chrooted jail environment.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
We have DNS Master server
(station-x.domain40.example.com/172.24.40.100) and slave server (station-y.domain40.example.com/172.24.40.110)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Step1) Install bind packages on master server.&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@station-x ~]#yum install bind-* caching-nameserver -y&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Step 2) copy and configure named.conf file&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@station-x ~]#cp -p /etc/named.conf
/var/named/chroot/etc/&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@station-x ~]#vim /var/named/chroot/etc/named.conf&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
==================================&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
acl mylan {172.24.40.0/24; };&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
options {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; listen-on port
53 { 127.0.0.1; 172.24.40.100; };&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; directory&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;/var/named&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dump-file&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&quot;/var/named/data/cache_dump.db&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
statistics-file &quot;/var/named/data/named_stats.txt&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
memstatistics-file &quot;/var/named/data/named_mem_stats.txt&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
allow-query&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { localhost;
mylan; any; };&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allow-transfer
{172.24.40.110; };&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;recursion no;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
};&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
logging {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; channel
default_debug {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file
&quot;data/named.run&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
severity dynamic;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
};&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
zone &quot;.&quot; IN {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type hint;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file
&quot;named.ca&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
};&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
include &quot;/etc/named.rfc1912.zones&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
===================================&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@station-x ~]#cp -p /etc/named.rfc1912.zones /var/named/chroot/etc/named.rfc1912.zones&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@station-x ~]#vim /var/named/chroot/etc/named.rfc1912.zones&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
==================================================&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
zone &quot;localhost.localdomain&quot; IN {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type master;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file
&quot;named.localhost&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allow-update {
none; };&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
};&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
zone &quot;localhost&quot; IN {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type master;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file
&quot;named.localhost&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allow-update {
none; };&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
};&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
zone &quot;1.0.0.127.in-addr.arpa&quot; IN {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type master;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file
&quot;named.loopback&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allow-update {
none; };&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
};&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
zone &quot;0.in-addr.arpa&quot; IN {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type master;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file
&quot;named.empty&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allow-update {
none; };&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
};&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
zone &quot;domain40.example.com&quot; IN {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type master;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file
&quot;domain40.example.com.forward&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allow-update {
none; };&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
};&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
zone &quot;40.24.172.in-addr.arpa&quot; IN {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type master;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file
&quot;domain40.example.com.reverse&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allow-update {
none; };&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
};&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
====================================================&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;step 3) create and configure zone files.&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@station-x ~]#vi /var/named/chroot/var/named/domain40.example.com.forward&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
===========================================&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
$TTL&amp;nbsp;&amp;nbsp;&amp;nbsp; 86400&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
@&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IN
SOA&amp;nbsp; station-x.domain40.example.com.
root.station-x.domain40.example.com. (&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 51&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; serial (d. adams)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3H&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; refresh&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
15M&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; retry&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1W&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; expiry&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1D
)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; minimum&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IN
NS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
station-x.domain40.example.com.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IN MX
10 mail.domain40.example.com.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
station-x IN A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
172.24.40.100&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
station-y IN A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
172.24.40.110&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
www.station-x&amp;nbsp;&amp;nbsp; IN A
172.24.40.100&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
mail&amp;nbsp;&amp;nbsp;&amp;nbsp; IN A&amp;nbsp;&amp;nbsp;&amp;nbsp; 172.24.40.100&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
ftp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IN A
172.24.40.100&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
=============================&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@station-x ~]#vim /var/named/chroot/var/named/domain40.example.com.reverse&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
====================================&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
$TTL&amp;nbsp;&amp;nbsp;&amp;nbsp; 86400&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
@&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SOA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
station-x.domain40.example.com. root.station-x.domain40.example.com.&amp;nbsp; (&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
1997022703 ; Serial&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
28800&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Refresh&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
14400&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Retry&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
3600000&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Expire&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 86400
)&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Minimum&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
station-x.domain40.example.com.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
100&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PTR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
station-x.domain40.example.com.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
110&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PTR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
station-y.domain40.example.com.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
============================&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Step 4) check syntex of zone/config files and restart named
service.&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@station-x ~]# named-checkconf
/var/named/chroot/etc/named.conf&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@station-x ~]# named-checkconf
/var/named/chroot/etc/named.rfc1912.zones&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@station-x ~]# named-checkzone
&quot;40.24.172.in-addr.arpa&quot;
/var/named/chroot/var/named/domain40.example.com.reverse&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
zone 40.24.172.in-addr.arpa/IN: loaded serial 1997022703&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
OK&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@station-x ~]# named-checkzone domain40.example.com
/var/named/chroot/var/named/domain40.example.com.forward&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
zone domain40.example.com/IN: loaded serial 51&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
OK&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@station-x ~]# /etc/init.d/named restart;chkconfig
named on&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Stopping named: .&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
[&amp;nbsp; OK&amp;nbsp; ]&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Starting named:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
[&amp;nbsp; OK&amp;nbsp; ]&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;step 5) entry in resolve.conf and query for zone records&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@station-x ~]# vi /etc/resolve.conf&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
search domain40.example.com&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
nameserver 172.24.40.100&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
nameserver172.24.40.110&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
dig station-x.domain40.example.com +short&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
dig -x 172.24.40.100 +short&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Step 6) Install and configure&amp;nbsp; bind packages in Slave server&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@station-y ~]# yum -y install bind-* caching-nameserver&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@station-y ~]# vi &quot;/var/named/chroot/etc/named.conf&quot;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
======================================&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
acl mylan {172.24.40.0/24; };&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
options {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; listen-on port
53 { 127.0.0.1; 172.24.40.110; };&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; directory&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;/var/named&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dump-file&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&quot;/var/named/data/cache_dump.db&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
statistics-file &quot;/var/named/data/named_stats.txt&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
memstatistics-file &quot;/var/named/data/named_mem_stats.txt&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
allow-query&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { localhost;
mylan; any; };&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; recursion no;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
};&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
logging {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; channel
default_debug {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file
&quot;data/named.run&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
severity dynamic;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
};&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
zone &quot;.&quot; IN {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type hint;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file
&quot;named.ca&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
};&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
include &quot;/etc/named.rfc1912.zones&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
==============================&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@station-y ~]# vi /var/named/chroot/etc/named.rfc1912.zones&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
===========================&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
zone &quot;localhost.localdomain&quot; IN {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type master;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file
&quot;named.localhost&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allow-update {
none; };&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
};&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
zone &quot;localhost&quot; IN {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type master;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file
&quot;named.localhost&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allow-update {
none; };&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
};&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
zone
&quot;1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa&quot;
IN {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type master;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file
&quot;named.loopback&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allow-update {
none; };&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
};&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
zone &quot;1.0.0.127.in-addr.arpa&quot; IN {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type master;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file
&quot;named.loopback&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allow-update {
none; };&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
};&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
zone &quot;0.in-addr.arpa&quot; IN {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type master;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file
&quot;named.empty&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allow-update {
none; };&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
};&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
zone &quot;domain40.example.com&quot; IN {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type slave;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; masters
{172.24.40.100;};&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file
&quot;slaves/domain40.example.com.forward&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allow-update {
none; };&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
};&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
zone &quot;40.24.172.in-addr.arpa&quot; IN {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type slave;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; masters
{172.24.40.100;};&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file
&quot;slaves/domain40.example.com.reverse&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allow-update {
none; };&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
};zone &quot;localhost.localdomain&quot; IN {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type master;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file
&quot;named.localhost&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allow-update {
none; };&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
};&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;zone &quot;localhost&quot; IN {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type master;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file
&quot;named.localhost&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allow-update {
none; };&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
};&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
zone
&quot;1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa&quot;
IN {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type master;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file
&quot;named.loopback&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allow-update {
none; };&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
};&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
zone &quot;1.0.0.127.in-addr.arpa&quot; IN {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type master;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file
&quot;named.loopback&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allow-update {
none; };&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
};&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
zone &quot;0.in-addr.arpa&quot; IN {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type master;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file
&quot;named.empty&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allow-update {
none; };&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
};&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
zone &quot;domain40.example.com&quot; IN {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type slave;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; masters
{172.24.40.100;};&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file
&quot;slaves/domain40.example.com.forward&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allow-update {
none; };&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
};&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
zone &quot;40.24.172.in-addr.arpa&quot; IN {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type slave;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; masters
{172.24.40.100;};&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file
&quot;slaves/domain40.example.com.reverse&quot;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allow-update {
none; };&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
};&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
=====================================&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@station-y ~]# vi /etc/resolve.conf&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
================&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
search domain40.example.com&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
nameserver 172.24.40.110&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
nameserver172.24.40.100&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
==========================&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@station-y ~]# /etc/init.d/named restart;chkconfig
named on&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@station-y ~]# dig station-x.domain40.example.com
@172.24.40.110 +short&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@station-y ~]# dig -x 172.24.40.100 @172.24.40.110 +short&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Note :- For basic troubleshooting please keep points to remember.&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
1) Please check server Selinux status.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
2) Please check both system should have same time.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
3) Please check proper permission and ownership of all
config and zone files.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
4)For replicating zone files over master and slaves, please
use below command on slave&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;[root@station-y ~]# rndc reload domain40.example.com&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;[root@station-y ~]# rndc refresh edomain40.example.com&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.linuxworms.in/feeds/4750761119080172906/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.linuxworms.in/2014/01/configure-master-slave-bind-replication.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/4750761119080172906'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/4750761119080172906'/><link rel='alternate' type='text/html' href='http://www.linuxworms.in/2014/01/configure-master-slave-bind-replication.html' title='Configure Master Slave bind replication in RHEL6'/><author><name>Amit</name><uri>http://www.blogger.com/profile/11325460583960515380</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSgOg8f7MBgN1FyVZ1xxvcwSVFn67YuvU6Yb5knmaClkFlLQBJ47J0v29OBXu33ADnO8hSthUHmeLTv8kMlYZUiXob6EGVa4ZQp8AwoiozmcliFoCRyo9pMppfdix1UA/s113/Photo0327.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8718643356399755975.post-5235436451782624049</id><published>2013-06-28T22:33:00.000+05:30</published><updated>2013-06-28T22:33:30.813+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="compile kernel 3.9"/><category scheme="http://www.blogger.com/atom/ns#" term="kernel 3.9 compile"/><category scheme="http://www.blogger.com/atom/ns#" term="Kernel compile"/><category scheme="http://www.blogger.com/atom/ns#" term="latest kernel compile"/><title type='text'>Compiling Latest Linux Kernel</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi Friends,&lt;br /&gt;
&lt;br /&gt;
As per requirement of our client, recently I compiled latest stable Linux kernel (linux-3.9.7) on my CentOS-6.3.&lt;br /&gt;
So as usual I wanna share steps for compiling the kernel :)&lt;br /&gt;
&lt;br /&gt;
Below are the steps. Please follow if you also want to do the same.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 1) Download latest stable Linux Kernel from&amp;nbsp;&lt;a href=&quot;http://kernel.org/&quot;&gt;http://kernel.org/&lt;/a&gt;&amp;nbsp;and untar the package.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
[root@localhost ~]# cd /usr/src/&lt;br /&gt;
&lt;div&gt;
[root@localhost src]# wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.9.7.tar.xz&lt;/div&gt;
&lt;div&gt;
[root@localhost src]#tar -xvf linux-3.9.7.tar.xz&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;step 2) Choose appropriate Module&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
[root@localhost src]# cd linux-3.9.7&lt;/div&gt;
&lt;div&gt;
[root@localhost linux-3.9.7 ]# make menuconfig&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Note: This will show kernel configuration screen . Navigate and deselect things (drivers) you do not need. In case of doubt just leave the initial option/selection. Save the configuration and exit the menu.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
After saving your configuration (it is stored in the &quot;.config&quot; file) exit from screen.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Step 3)&amp;nbsp;compile the kernel&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
[root@localhost linux-3.9.7 ]#make&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Note: This is time consuming task and will take more then hr&#39;s depending on your hardware. &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Step 4)&amp;nbsp;copy all the modules to a new directory, &quot;/lib/modules/3.9.7&quot;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[root@localhost linux-3.9.7 ]#make modules_install&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Step 5) copy compiled files into appropriate locations&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[root@localhost linux-3.9.7 ]#make install&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Step 6)&amp;nbsp;Remove all generated files + config + various backup files&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[root@localhost linux-3.9.7 ]#make mrproper&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
That&#39;s all about Kernel compiling. And Please don&#39;t forget to edit grub.conf to change default boot option with new kernel.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Enjoy !!!!!!!&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.linuxworms.in/feeds/5235436451782624049/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.linuxworms.in/2013/06/compiling-latest-linux-kernel.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/5235436451782624049'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/5235436451782624049'/><link rel='alternate' type='text/html' href='http://www.linuxworms.in/2013/06/compiling-latest-linux-kernel.html' title='Compiling Latest Linux Kernel'/><author><name>Amit</name><uri>http://www.blogger.com/profile/11325460583960515380</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSgOg8f7MBgN1FyVZ1xxvcwSVFn67YuvU6Yb5knmaClkFlLQBJ47J0v29OBXu33ADnO8hSthUHmeLTv8kMlYZUiXob6EGVa4ZQp8AwoiozmcliFoCRyo9pMppfdix1UA/s113/Photo0327.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8718643356399755975.post-1752065975012810414</id><published>2013-06-27T16:01:00.001+05:30</published><updated>2013-06-27T16:01:21.924+05:30</updated><title type='text'>SSH Port Forwarding</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Hi Friends,&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Let’s understand SSH Port forwarding concept with below
examples.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
I have two machine station-y (172.24.40.110) and station-z(172.24.40.120)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Example 1)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@station-z ~]#
ssh -L 8080:yahoo.com:80 -N root@172.24.40.110&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
(I, SSH Client will listen for traffic on my host&#39;s port
8080 and send it to you, SSHD on 172.24.40.110.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
You will decrypt it and forward
that traffic to port 80 on yahoo.com)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
So after executing above command on station-z, when
station-z tries to access &lt;a href=&quot;http://localhost/&quot;&gt;http://localhost&lt;/a&gt; it
will redirect to yahoo.com &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Example 2) &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@station-z ~]# ssh -R 8080:127.0.0.1:25 -N
172.24.40.110&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
(You the SSHD on 172.24.40.110 will listen for the traffic
on your port 8080 and send it to me. I, ssh client will decrypt it and forward
that traffic to port 25 on me as if it came from me.)&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
So after executing above command on station-z, when
station-y tries to access their local port 8080 ([root@station-y ~]# telnet 0
8080) &amp;nbsp;it will redirect to port 25 of
station-z&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.linuxworms.in/feeds/1752065975012810414/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.linuxworms.in/2013/06/ssh-port-forwarding.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/1752065975012810414'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/1752065975012810414'/><link rel='alternate' type='text/html' href='http://www.linuxworms.in/2013/06/ssh-port-forwarding.html' title='SSH Port Forwarding'/><author><name>Amit</name><uri>http://www.blogger.com/profile/11325460583960515380</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSgOg8f7MBgN1FyVZ1xxvcwSVFn67YuvU6Yb5knmaClkFlLQBJ47J0v29OBXu33ADnO8hSthUHmeLTv8kMlYZUiXob6EGVa4ZQp8AwoiozmcliFoCRyo9pMppfdix1UA/s113/Photo0327.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8718643356399755975.post-5914713795722156814</id><published>2013-06-26T20:42:00.002+05:30</published><updated>2013-06-26T20:42:23.765+05:30</updated><title type='text'>Firewall Port Redirection through Iptables</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Friends,&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Recently I implemented firewall rule for incoming traffic on
port 80 on firewall (10.10.0.100) will redirect to port 8080 of internal
webserver(172.24.40.110). &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Below is the command that I executed on my Linux based
Firewall&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;[root@station-z ]#iptables -t nat -I PREROUTING-p tcp
--dport 80 -d 10.10.0.100 -j DNAT --to 172.24.40.110:8080&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.linuxworms.in/feeds/5914713795722156814/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.linuxworms.in/2013/06/firewall-port-redirection-through.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/5914713795722156814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/5914713795722156814'/><link rel='alternate' type='text/html' href='http://www.linuxworms.in/2013/06/firewall-port-redirection-through.html' title='Firewall Port Redirection through Iptables'/><author><name>Amit</name><uri>http://www.blogger.com/profile/11325460583960515380</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSgOg8f7MBgN1FyVZ1xxvcwSVFn67YuvU6Yb5knmaClkFlLQBJ47J0v29OBXu33ADnO8hSthUHmeLTv8kMlYZUiXob6EGVa4ZQp8AwoiozmcliFoCRyo9pMppfdix1UA/s113/Photo0327.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8718643356399755975.post-8354559628449462479</id><published>2013-06-26T20:00:00.002+05:30</published><updated>2013-06-26T20:00:28.647+05:30</updated><title type='text'>IPTABLES NAT Rule Implementation</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Friend,&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Recently my network Admin has blocked Facebook access to all
our Desktop-PC.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
But fortunately I have access of one of Linux system where
then haven’t implemented firewall rule.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
So I MASQUERADE my outgoing traffic from my PC to that Linux
System to get Facebook Access. &lt;span style=&quot;font-family: Wingdings; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;&quot;&gt;J&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Wingdings; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
It’s Very easy &amp;amp; if you want you could also test this on
your Lab.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Example: - My PC (eth0:
172.24.40.110)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Linux PC [eth0: 172.24.40.120 (Lan Interface) eth1:
10.10.20.1 (Wan Interface)]&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Step 1) On My PC (eth0: 172.24.40.110) set “Default Gatway to
Linux machine(eth0: 172.24.40.120) &lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Step 2) On Linux machine set IP Forwarding&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@station-y ]#vi /etc/sysctl.conf&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
net.ipv4.ip_forward = 1&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Step 3) Apply NAT rule to MASQUERADE all traffic to eth1 (Wan
Interface) &lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@station-y ]# iptables -t nat -I POSTROUTING -s
172.24.40.0/24 -o eth1 -j MASQUERADE&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.linuxworms.in/feeds/8354559628449462479/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.linuxworms.in/2013/06/iptables-nat-rule-implementation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/8354559628449462479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/8354559628449462479'/><link rel='alternate' type='text/html' href='http://www.linuxworms.in/2013/06/iptables-nat-rule-implementation.html' title='IPTABLES NAT Rule Implementation'/><author><name>Amit</name><uri>http://www.blogger.com/profile/11325460583960515380</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSgOg8f7MBgN1FyVZ1xxvcwSVFn67YuvU6Yb5knmaClkFlLQBJ47J0v29OBXu33ADnO8hSthUHmeLTv8kMlYZUiXob6EGVa4ZQp8AwoiozmcliFoCRyo9pMppfdix1UA/s113/Photo0327.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8718643356399755975.post-3417571825814731114</id><published>2013-06-21T18:33:00.001+05:30</published><updated>2015-03-25T12:03:03.484+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Zabbix"/><category scheme="http://www.blogger.com/atom/ns#" term="Zabbix installation"/><category scheme="http://www.blogger.com/atom/ns#" term="Zabbix master"/><category scheme="http://www.blogger.com/atom/ns#" term="Zabbix master Installation"/><category scheme="http://www.blogger.com/atom/ns#" term="Zabbix with postgresql"/><title type='text'>Installing Zabbix with postgresql in CentOS6</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Friend , recently
I configured Zabbix with postgresql in my office infrastructure.&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;We have one zabbix
master server (192.168.0.1) and one pgsql database server (192.168.0.2)&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Below are the step
that I performs on configuring zabbix.&lt;u&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Step 1) Download and install RPM’s for postgresql in database
server&lt;u&gt; (192.168.0.2)&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@localhost ~]#wget &lt;a href=&quot;http://yum.postgresql.org/9.1/redhat/rhel-6-x86_64/pgdg-redhat91-9.1-5.noarch.rpm&quot;&gt;http://yum.postgresql.org/9.1/redhat/rhel-6-x86_64/pgdg-redhat91-9.1-5.noarch.rpm&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@localhost ~]#rpm -ivh pgdg-redhat91-9.1-5.noarch.rpm&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@localhost ~]#yum install postgresql91-server postgresql91-contrib&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@localhost ~]#/etc/init.d/postgresql-9.1 restart&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@localhost ~]#service
postgresql-9.1 initdb&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Step 2) Configure Postgresql on &lt;u&gt;(192.168.0.2)&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@localhost ~]# su – postgres&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
-bash-4.1$ psql&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
postgres=# CREATE DATABASE zabbix WITH ENCODING=&#39;UTF-8&#39;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
postgres=# CREATE USER zabbix WITH PASSWORD &#39;zabbix&#39;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
postgres=# GRANT ALL ON DATABASE zabbix TO zabbix;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
postgres=#&amp;nbsp;&lt;span style=&quot;background-color: #f9f9f9; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 12px; line-height: 16.7999992370605px; text-align: justify;&quot;&gt;GRANT ALL PRIVILEGES ON DATABASE zabbix to postgres;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
postgres=# ALTER USER Postgres WITH PASSWORD &#39;redhat&#39;;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
postgres=# \q&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
-bash-4.1$&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
-bash-4.1$ logout&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@localhost ~]#vi /var/lib/pgsql/9.1/data/pg_hba.conf&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
****************&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
# &quot;local&quot; is for Unix domain socket connections
only&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
local&amp;nbsp;&amp;nbsp; all&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; all&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; md5&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
# IPv4 local connections:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
host&amp;nbsp;&amp;nbsp;&amp;nbsp; all&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; all&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 127.0.0.1/32&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; md5&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
host&amp;nbsp;&amp;nbsp;&amp;nbsp; all&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; all&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10.10.2.0/16&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; md5&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
******************&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@localhost ~]#vi /var/lib/pgsql/9.1/data/ postgresql.conf&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
**************&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
listen_addresses = &#39;192.168.0.2&#39;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # what IP address(es) to listen on;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #
comma-separated list of addresses;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;# defaults to &#39;localhost&#39;, &#39;*&#39; = all&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #
(change requires restart)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
port = 5432&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
**************&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@localhost ~]#/etc/init.d/postgresql-9.1 restart&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Step 3) Configure php.ini in Zabbix server &lt;u&gt;(192.168.0.1)&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@localhost ~]#yum -y install gcc net-snmp-devel curl-devel gcc make
curl-devel httpd php php-pgsql php-bcmath php-gd php-mbstring net-snmp-devel
fping e2fsprogs-devel zlib-devel libgssapi-devel krb5-devel openssl-devel
libidn-devel iksemel-devel libXpm openssh-clients&amp;nbsp; php-xmlrpc sharutils OpenIPMI-devel libssh2-devel
php-xml&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@localhost ~]#vi /etc/php.ini&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
*******&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
max_execution_time =&amp;nbsp;300&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
memory_limit = 128M&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
post_max_size = 16M&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
upload_max_filesize = 2M&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
max_input_time = 300&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
date.timezone =&amp;nbsp;Asia/Kolkata&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
*******&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Step 4) Download and install zabbix from source code for
zabbix frontend &lt;u&gt;(192.168.0.1)&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@localhost ~]#groupadd zabbix&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@localhost ~]#useradd -g zabbix –s /sbin/nologin zabbix &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@localhost ~]#wget http://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/2.0.6/zabbix-2.0.6.tar.gz&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@localhost ~]#mv zabbix-2.0.6.tar.gz /opt/;cd /opt&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@localhost ~]#tar -xvzf /opt/zabbix-2.0.6.tar.gz&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@localhost ]#cd zabbix-2.0.0.6&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@localhost ]#./configure --prefix=/opt/zabbix --enable-server
--enable-agent --with-net-snmp --with-postgresql=/usr/pgsql-9.1/bin/pg_config
--with-ssh2 --with-openipmi --with-libcurl&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@localhost ]#make;make install&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Step 5) Configure frontend&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@localhost ~]#cp -R /opt/zabbix-2.0.6/frontends/php /var/www/html/zabbix&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@localhost ~]#Service httpd restart&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Step 5) Configure zabbix config files &lt;u&gt;(192.168.0.1)&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@localhost ]#vi /opt/zabbix/etc/zabbix_server.conf&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
*********&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
ListenPort=10051&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
LogFile=/opt/zabbix/log/zabbix_server.log&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;PidFile=/opt/zabbix/log/zabbix_server.pid&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;DBHost=192.168.0.2&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
DBName=zabbix&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
DBUser=zabbix&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;DBPassword=zabbix&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;StartPollers=10&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;DisableHousekeeping=1&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;CacheSize=128M&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;HistoryCacheSize=128M&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;TrendCacheSize=64M&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;HistoryTextCacheSize=128M&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;Timeout=30&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
***********&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@localhost ]#vi /opt/zabbix/etc/zabbix_agentd.conf&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
************&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
LogFile=/tmp/zabbix_agentd.log&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Server=127.0.0.1&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
ServerActive=127.0.0.1&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Hostname=Zabbix server&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
************&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Step 6) Import zabbix database to postgresql server &lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@localhost ]#cd /opt/zabbix-2.0.6/database/postgresql&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;[root@localhost ]# &amp;nbsp;&amp;nbsp;psql -U zabbix -h 192.168.0.2 -d zabbix -f
schema.sql&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp; [root@localhost ]#psql -U zabbix -h 192.168.0.2 -d zabbix -f
images.sql&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp; [root@localhost ]#psql -U zabbix -h 192.168.0.2 -d zabbix -f
data.sql&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Step 7) Installing Zabbix through web&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Go to web browser and type below link&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;&lt;a href=&quot;http://172.24.40.110/zabbix&quot;&gt;http://192.168.0.1/zabbix&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPwEDtLJqJIT1crVMMXLcbQVTziSZpJQBfTd-l2aLmsGjfDk_R3dRhfzz5chOASdZQeFwJYLKV5JiOr_Ulz7LyuEleIRENYkXDnvSIwZqWC5tr2ZnHhzXnTBGncVBBqWwYaWj5TnmykAfW/s1600/1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPwEDtLJqJIT1crVMMXLcbQVTziSZpJQBfTd-l2aLmsGjfDk_R3dRhfzz5chOASdZQeFwJYLKV5JiOr_Ulz7LyuEleIRENYkXDnvSIwZqWC5tr2ZnHhzXnTBGncVBBqWwYaWj5TnmykAfW/s320/1.jpg&quot; height=&quot;180&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgH_CRd5BMWsYgrT_md0R1j-FF_Zg2G9OPr62nK4-mgIaz59AH0plpFKmogqqqSSclaRPILlKYMfl3pw-nuPjfu28PjbgoLg6gfwGrscdtNQ2XQpGdCTA17TNRC6leTXIMSqUCc3-hham0R/s1600/2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgH_CRd5BMWsYgrT_md0R1j-FF_Zg2G9OPr62nK4-mgIaz59AH0plpFKmogqqqSSclaRPILlKYMfl3pw-nuPjfu28PjbgoLg6gfwGrscdtNQ2XQpGdCTA17TNRC6leTXIMSqUCc3-hham0R/s320/2.jpg&quot; height=&quot;180&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgisrRMThIGv4gIwnp7RgIWp6r1cA4baYq4kxJV6RFv1esO7Q-va0B3UwlLfDrzY8jZarIWUWn72kmPhI-kDlE-JadXj2ASAUA9dfBw_jDzQ-ZfQnddhuUKF9k6G0-3ash_3nTGat_MdIxf/s1600/3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgisrRMThIGv4gIwnp7RgIWp6r1cA4baYq4kxJV6RFv1esO7Q-va0B3UwlLfDrzY8jZarIWUWn72kmPhI-kDlE-JadXj2ASAUA9dfBw_jDzQ-ZfQnddhuUKF9k6G0-3ash_3nTGat_MdIxf/s320/3.jpg&quot; height=&quot;180&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhti-1ZGCWyXIBslele_lX56qbNTFIBlggILM3OvLQABWSV5eKZEK_3_2745nkuSv_nK9lbHxaIM9Tbi1kzT32lS1C1qP8YypYN34Aq2rw8NCFfPR_GjDSruSViTJJ11-gRzwnjfrTjCHN4/s1600/4.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhti-1ZGCWyXIBslele_lX56qbNTFIBlggILM3OvLQABWSV5eKZEK_3_2745nkuSv_nK9lbHxaIM9Tbi1kzT32lS1C1qP8YypYN34Aq2rw8NCFfPR_GjDSruSViTJJ11-gRzwnjfrTjCHN4/s320/4.jpg&quot; height=&quot;180&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiA5d6wwXNURcI2onS_vuvx-nk9cCR3YkMA6uTAQwY_0RMi98PR0FxfbPUdnCVe9XmOalWEH2c6H5sSF68kie_EiPDsmPsyQncShZtwnbJXO-eavdPu7aNN-LiNTAc5BjeJ9Lk_Ws4jCuil/s1600/5.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiA5d6wwXNURcI2onS_vuvx-nk9cCR3YkMA6uTAQwY_0RMi98PR0FxfbPUdnCVe9XmOalWEH2c6H5sSF68kie_EiPDsmPsyQncShZtwnbJXO-eavdPu7aNN-LiNTAc5BjeJ9Lk_Ws4jCuil/s320/5.jpg&quot; height=&quot;180&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Download the config file and paste it to the location /var/www/html/zabbix/conf/zabbix.conf.php&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Step 7) Copy init script for zabbix_server and zabbix_agentd&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@localhost ]#cp /root/zabbix.2.0.6/misc/init.d/fedora/core/zabbix_server
/etc/init.d/&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@localhost ]#cp /root/zabbix.2.0.6/misc/init.d/fedora/core/zabbix_agentd
/etc/init.d/&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@localhost ]#vi /etc/init.d/ zabbix_server&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
**************&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
# Zabbix-Directory&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
BASEDIR=/opt/zabbix&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Binary File&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
BINARY_NAME=zabbix_server&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;# Full Binary
File Call&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
FULLPATH=$BASEDIR/sbin/$BINARY_NAME&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # PID file&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PIDFILE=/opt/zabbix/log/$BINARY_NAME.pid&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
******************&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@localhost ]#vi /etc/init.d/ zabbix_agentd&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
*****************&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #
Zabbix-Directory&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
BASEDIR=/opt/zabbix&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Binary File&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
BINARY_NAME=zabbix_agentd&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Full Binary
File Call&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
FULLPATH=$BASEDIR/sbin/$BINARY_NAME&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # PID file&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
PIDFILE=/tmp/$BINARY_NAME.pid&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
************&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@localhost ]# service zabbix_server restart&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[root@localhost ]# service zabbix_agentd restart&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Now You have done your installation part. Try to login with credentials&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
URL: http://192.168.0.1/zabbix&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
User: Admin&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Password: zabbix&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.linuxworms.in/feeds/3417571825814731114/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.linuxworms.in/2013/06/installing-zabbix-with-postgresql-in.html#comment-form' title='22 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/3417571825814731114'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/3417571825814731114'/><link rel='alternate' type='text/html' href='http://www.linuxworms.in/2013/06/installing-zabbix-with-postgresql-in.html' title='Installing Zabbix with postgresql in CentOS6'/><author><name>Amit</name><uri>http://www.blogger.com/profile/11325460583960515380</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSgOg8f7MBgN1FyVZ1xxvcwSVFn67YuvU6Yb5knmaClkFlLQBJ47J0v29OBXu33ADnO8hSthUHmeLTv8kMlYZUiXob6EGVa4ZQp8AwoiozmcliFoCRyo9pMppfdix1UA/s113/Photo0327.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPwEDtLJqJIT1crVMMXLcbQVTziSZpJQBfTd-l2aLmsGjfDk_R3dRhfzz5chOASdZQeFwJYLKV5JiOr_Ulz7LyuEleIRENYkXDnvSIwZqWC5tr2ZnHhzXnTBGncVBBqWwYaWj5TnmykAfW/s72-c/1.jpg" height="72" width="72"/><thr:total>22</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8718643356399755975.post-5757015842227072839</id><published>2013-06-12T17:22:00.000+05:30</published><updated>2013-06-12T17:22:06.872+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="password-less ssh"/><category scheme="http://www.blogger.com/atom/ns#" term="ssh in script"/><category scheme="http://www.blogger.com/atom/ns#" term="sshpass"/><title type='text'>sshpass, A great tool for non-interactive ssh login</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Friend,&lt;br /&gt;
&lt;br /&gt;
Recently I needed to perform some maintenance activity on some of my Linux machines.&lt;br /&gt;
&lt;br /&gt;
I got a list of 100 Linux machine.&lt;br /&gt;
&lt;br /&gt;
Problem was that, We haven&#39;t configured password-less SSH but the good point is that all Linux machine have same root password. :)&lt;br /&gt;
&lt;br /&gt;
So First I installed &quot;sshpass&quot; command and wrapped ssh over ssh pass on a script.&lt;br /&gt;
&lt;br /&gt;
Below is the sample script to get Uptime of all hosts&lt;br /&gt;
================&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
for i in `cat /tmp/data.txt`&lt;br /&gt;
do&lt;br /&gt;
&lt;b&gt;sshpass -p &#39;password&#39; ssh -o StrictHostKeyChecking=no root@$i &quot;hostname;uptime|awk &#39;{print $3,$4}&#39;&quot; &amp;gt;&amp;gt;/tmp/uptime_detail_txt&lt;/b&gt;&lt;br /&gt;
done&lt;br /&gt;
===========================&lt;br /&gt;
&lt;br /&gt;
Where &amp;nbsp;StrictHostKeyChecking is for&amp;nbsp;disable host key checking&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.linuxworms.in/feeds/5757015842227072839/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.linuxworms.in/2013/06/sshpass-great-tool-for-non-interactive.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/5757015842227072839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/5757015842227072839'/><link rel='alternate' type='text/html' href='http://www.linuxworms.in/2013/06/sshpass-great-tool-for-non-interactive.html' title='sshpass, A great tool for non-interactive ssh login'/><author><name>Amit</name><uri>http://www.blogger.com/profile/11325460583960515380</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSgOg8f7MBgN1FyVZ1xxvcwSVFn67YuvU6Yb5knmaClkFlLQBJ47J0v29OBXu33ADnO8hSthUHmeLTv8kMlYZUiXob6EGVa4ZQp8AwoiozmcliFoCRyo9pMppfdix1UA/s113/Photo0327.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8718643356399755975.post-6320923185936031712</id><published>2013-06-04T16:25:00.001+05:30</published><updated>2013-07-02T22:06:50.281+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="haproxy"/><category scheme="http://www.blogger.com/atom/ns#" term="installation of haproxy"/><title type='text'>Installation and configuration HAproxy on CentOS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Step1)&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b&gt;Linux server has a development environment set up&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;yum
update&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;yum
-y groupinstall &#39;Development Tools&#39;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Step 2) Download and uncompress haproxy
from source code.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;wget
&lt;a href=&quot;http://haproxy.1wt.eu/download/1.4/src/haproxy-1.4.23.tar.gz&quot;&gt;http://haproxy.1wt.eu/download/1.4/src/haproxy-1.4.23.tar.gz&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;tar
xzf haproxy-1.4.23.tar.gz&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;cd haproxy-1.4.23&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;make TARGET=linux26&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;step3) copy the configuration
files&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;mkdir
/etc/haproxy&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;cp haproxy /usr/sbin/haproxy&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;step 4) configure haproxy.cfg
file according to your need.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;vi
/etc/haproxy.cfg&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;*********************&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;global&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; maxconn 4096&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pidfile /var/run/haproxy.pid&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; daemon&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;defaults&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; log global&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;option dontlognull&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; balance leastconn&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clitimeout 60000&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; srvtimeout 60000&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; contimeout 5000&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; retries 3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; option redispatch&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;listen
exchange-http 10.10.3.156:80&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mode http&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stats enable&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stats uri /haproxy-stats&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; balance source&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; option forwardfor&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; server cas1 10.10.3.145:80 check port 80
inter 20 rise 1 fall 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; server cas2 10.10.3.146:80 check port 80
inter 20 rise 1 fall 1 backup&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;listen
exchange-https-tr 10.10.3.156:444&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mode tcp&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; balance source&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; maxconn 10000&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; server webserver1 10.10.3.145:444 check
port 444 inter 20 rise 1 fall 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; server webserver2 10.10.3.146:444 check
port 444 inter 20 rise 1 fall 1 backup&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;listen
exchange-https 10.10.3.156:443&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mode tcp&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; balance source&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; maxconn 10000&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; server webserver1 10.10.3.145:443 check
port 443 inter 20 rise 1 fall 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #222222; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; server webserver2 10.10.3.146:443 check
port 443 inter 20 rise 1 fall 1 backup&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
listen exchange-https 10.10.3.156:25&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mode tcp&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; balance source&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; maxconn 10000&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; server webserver1
10.10.3.145:25 check port 25 inter 20 rise 1 fall 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; server webserver2
10.10.3.146:25 check port 25 inter 20 rise 1 fall 1 backup&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Step 5)
Start HAproxy as daemon&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
/usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg –d&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Step 6) If
all goes well the create a init script for HAproxy&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Vi /etc/init.d/haproxy&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
****************&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;#!/bin/sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;#&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;# chkconfig: - 85 15&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;# description: HA-Proxy is a TCP/HTTP
reverse proxy which is particularly suited \&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for high availability
environments.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;# processname: haproxy&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;# config: /etc/haproxy/haproxy.cfg&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;# pidfile: /var/run/haproxy.pid&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;# Script Author: Simon Matter
&amp;lt;simon.matter@invoca.ch&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;# Version: 2004060600&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;# Source function library.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;if [ -f /etc/init.d/functions ]; then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
. /etc/init.d/functions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;elif [ -f /etc/rc.d/init.d/functions ]
; then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
. /etc/rc.d/init.d/functions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
exit 0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;# Source networking configuration.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;. /etc/sysconfig/network&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;# Check that networking is up.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;[ ${NETWORKING} = &quot;no&quot; ]
&amp;amp;&amp;amp; exit 0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;# This is our service name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;BASENAME=`basename $0`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;if [ -L $0 ]; then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
BASENAME=`find $0 -name $BASENAME -printf %l`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
BASENAME=`basename $BASENAME`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;[ -f /etc/$BASENAME/$BASENAME.cfg ] ||
exit 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;RETVAL=0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;start() {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
/usr/sbin/$BASENAME -c -q -f /etc/$BASENAME/$BASENAME.cfg&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
if [ $? -ne 0 ]; then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
echo &quot;Errors found in configuration file, check it with &#39;$BASENAME
check&#39;.&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
return 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
echo -n &quot;Starting $BASENAME: &quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
daemon /usr/sbin/$BASENAME -D -f /etc/$BASENAME/$BASENAME.cfg -p
/var/run/$BASENAME.pid&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
RETVAL=$?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
echo&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
[ $RETVAL -eq 0 ] &amp;amp;&amp;amp; touch /var/lock/subsys/$BASENAME&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
return $RETVAL&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;stop() {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
echo -n &quot;Shutting down $BASENAME: &quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
killproc $BASENAME -USR1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
RETVAL=$?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
echo&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
[ $RETVAL -eq 0 ] &amp;amp;&amp;amp; rm -f /var/lock/subsys/$BASENAME&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
[ $RETVAL -eq 0 ] &amp;amp;&amp;amp; rm -f /var/run/$BASENAME.pid&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
return $RETVAL&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;restart() {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
/usr/sbin/$BASENAME -c -q -f /etc/$BASENAME/$BASENAME.cfg&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
if [ $? -ne 0 ]; then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
echo &quot;Errors found in configuration file, check it with &#39;$BASENAME
check&#39;.&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
return 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
stop&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
start&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;reload() {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
/usr/sbin/$BASENAME -c -q -f /etc/$BASENAME/$BASENAME.cfg&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
if [ $? -ne 0 ]; then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
echo &quot;Errors found in configuration file, check it with &#39;$BASENAME
check&#39;.&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
return 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
/usr/sbin/$BASENAME -D -f /etc/$BASENAME/$BASENAME.cfg -p
/var/run/$BASENAME.pid -sf $(cat /var/run/$BASENAME.pid)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;check() {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
/usr/sbin/$BASENAME -c -q -V -f /etc/$BASENAME/$BASENAME.cfg&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;rhstatus() {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
status $BASENAME&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;condrestart() {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
[ -e /var/lock/subsys/$BASENAME ] &amp;amp;&amp;amp; restart || :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;# See how we were called.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;case &quot;$1&quot; in&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
start)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
start&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
stop)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
stop&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
restart)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
restart&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
reload)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
reload&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
condrestart)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
condrestart&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
status)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
rhstatus&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
check)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
check&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;
*)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
echo $&quot;Usage: $BASENAME
{start|stop|restart|reload|condrestart|status|check}&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
exit 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;esac&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;border-bottom: dotted windowtext 3.0pt; border: none; mso-element: para-border-div; padding: 0in 0in 1.0pt 0in;&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-bottom-alt: dotted windowtext 3.0pt; mso-padding-alt: 0in 0in 1.0pt 0in; padding: 0in;&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;exit
$?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0in 0.0001pt;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
chmod 755 /etc/init.d/haproxy&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
service haproxy restart&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
chkconfig haproxy on&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.linuxworms.in/feeds/6320923185936031712/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.linuxworms.in/2013/06/installation-and-configuration-haproxy.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/6320923185936031712'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8718643356399755975/posts/default/6320923185936031712'/><link rel='alternate' type='text/html' href='http://www.linuxworms.in/2013/06/installation-and-configuration-haproxy.html' title='Installation and configuration HAproxy on CentOS'/><author><name>Amit</name><uri>http://www.blogger.com/profile/11325460583960515380</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSgOg8f7MBgN1FyVZ1xxvcwSVFn67YuvU6Yb5knmaClkFlLQBJ47J0v29OBXu33ADnO8hSthUHmeLTv8kMlYZUiXob6EGVa4ZQp8AwoiozmcliFoCRyo9pMppfdix1UA/s113/Photo0327.jpg'/></author><thr:total>0</thr:total></entry></feed>