Advertisement
grep65535

haproxy config, exchange 2010

Feb 24th, 2020
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.89 KB | None | 0 0
  1. #/******************************************************/
  2. # Exchange 2010 HAProxy Config | Updated 02/26/2020
  3. #/******************************************************/
  4.  
  5. global
  6.         setenv exchange1 10.x.x.120
  7.         setenv exchange2 10.x.x.121
  8.         log /dev/log local0 debug
  9.         maxconn 4096
  10.         pidfile /var/run/haproxy.pid
  11.         uid 99
  12.         gid 99
  13.         daemon
  14.         debug
  15.         ssl-server-verify none
  16.         stats socket /var/run/haproxy.stat
  17.  
  18. defaults
  19.         log global
  20.         retries 3
  21.         maxconn 1000
  22.         timeout connect 500s
  23.         timeout client 600s
  24.         timeout server 600s
  25.         timeout connect 30s
  26.  
  27. listen stats
  28.         bind *:8080
  29.         mode http
  30.         stats enable
  31.         stats hide-version
  32.         stats uri /s
  33.         stats realm HAProxy\ Statistics
  34.  
  35. #/******************************************************/
  36. frontend CAS-HTTP
  37.         mode tcp
  38.         bind :80
  39.                 option tcplog
  40.         default_backend CAS-HTTP
  41.  
  42. backend CAS-HTTP
  43.         balance leastconn
  44.         option redispatch
  45.         option abortonclose
  46.         stick on src
  47.         stick-table type ip size 10240k expire 240m
  48.         option httpchk HEAD / HTTP/1.0
  49.         server CAS1 $exchange1 check port 80 inter 5000 rise 2 fall 2
  50.         server CAS2 $exchange2 check port 80 inter 5000 rise 2 fall 2
  51. #/******************************************************/
  52.  
  53. frontend CAS-HTTPS
  54.         mode tcp
  55.         bind :443
  56.                 option tcplog
  57.         default_backend CAS-HTTPS
  58.  
  59. backend CAS-HTTPS
  60.         balance leastconn
  61.         option redispatch
  62.         option abortonclose
  63.         stick on src
  64.         stick-table type ip size 10240k expire 240m
  65.         option httpchk HEAD / HTTP/1.0
  66.         server CAS1 $exchange1 check port 443 check-ssl inter 5000 rise 2 fall 2
  67.         server CAS2 $exchange2 check port 443 check-ssl inter 5000 rise 2 fall 2
  68. #/******************************************************/
  69.  
  70. frontend CAS-SMTP
  71.         mode tcp
  72.         bind :25
  73.         default_backend CAS-SMTP
  74.  
  75. backend CAS-SMTP
  76.         option redispatch
  77.         option abortonclose
  78.         balance leastconn
  79.         server CAS1 $exchange1 check port 25 inter 5000 rise 2 fall 2
  80.         server CAS2 $exchange2 check port 25 inter 5000 rise 2 fall 2
  81. #/******************************************************/
  82.  
  83. frontend CAS-SMTPS
  84.         mode tcp
  85.         bind :587
  86.         default_backend CAS-SMTPS
  87.  
  88. backend CAS-SMTPS
  89.         option redispatch
  90.         option abortonclose
  91.         balance leastconn
  92.         server CAS1 $exchange1 check port 587 inter 5000 rise 2 fall 2
  93.         server CAS2 $exchange2 check port 587 inter 5000 rise 2 fall 2
  94. #/******************************************************/
  95.  
  96. frontend CAS-SMTP-5555
  97.         mode tcp
  98.         bind :5555
  99.         default_backend CAS-SMTP-5555
  100.  
  101. backend CAS-SMTP-5555
  102.         option redispatch
  103.         option abortonclose
  104.         balance leastconn
  105.         server CAS1 $exchange1 check port 5555 inter 5000 rise 2 fall 2
  106.         server CAS2 $exchange2 check port 5555 inter 5000 rise 2 fall 2
  107. #/******************************************************/
  108.  
  109. frontend CAS-SMTP-2525
  110.         mode tcp
  111.         bind :5555
  112.         default_backend CAS-SMTP-2525
  113.  
  114. backend CAS-SMTP-2525
  115.         option redispatch
  116.         option abortonclose
  117.         balance leastconn
  118.         server CAS1 $exchange1 check port 2525 inter 5000 rise 2 fall 2
  119.         server CAS2 $exchange2 check port 2525 inter 5000 rise 2 fall 2
  120. #/******************************************************/
  121.  
  122. frontend CAS-RPC-EndPointMapper
  123.         mode tcp
  124.         bind :135 name epm tcp-ut 30s
  125.         default_backend CAS-RPC-EndPointMapper
  126.  
  127. backend CAS-RPC-EndPointMapper
  128.         balance leastconn
  129.         option tcp-check
  130.                 tcp-check connect port 135
  131.         default-server on-marked-down shutdown-sessions
  132.         server CAS1 $exchange1 check
  133.         server CAS2 $exchange2 check
  134. #/******************************************************/
  135.  
  136. frontend CAS-RPC-Mapi
  137.         mode tcp
  138.         bind :60001 name mapi tcp-ut 30s
  139.         default_backend CAS-RPC-Mapi
  140.  
  141. backend CAS-RPC-Mapi
  142.         balance leastconn
  143.         option tcp-check
  144.                 tcp-check connect port 60001
  145.         default-server on-marked-down shutdown-sessions
  146.         server CAS1 $exchange1 check
  147.         server CAS2 $exchange2 check
  148. #/******************************************************/
  149.  
  150. frontend CAS-RPC-AddressBook
  151.         mode tcp
  152.         bind :60002 name addressbook tcp-ut 30s
  153.         default_backend CAS-RPC-AddressBook
  154.  
  155. backend CAS-RPC-AddressBook
  156.         balance leastconn
  157.         option tcp-check
  158.                 tcp-check connect port 60002
  159.         default-server on-marked-down shutdown-sessions
  160.         server CAS1 $exchange1 check
  161.         server CAS2 $exchange2 check
  162. #/******************************************************/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement