Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #/******************************************************/
- # Exchange 2010 HAProxy Config | Updated 02/26/2020
- #/******************************************************/
- global
- setenv exchange1 10.x.x.120
- setenv exchange2 10.x.x.121
- log /dev/log local0 debug
- maxconn 4096
- pidfile /var/run/haproxy.pid
- uid 99
- gid 99
- daemon
- debug
- ssl-server-verify none
- stats socket /var/run/haproxy.stat
- defaults
- log global
- retries 3
- maxconn 1000
- timeout connect 500s
- timeout client 600s
- timeout server 600s
- timeout connect 30s
- listen stats
- bind *:8080
- mode http
- stats enable
- stats hide-version
- stats uri /s
- stats realm HAProxy\ Statistics
- #/******************************************************/
- frontend CAS-HTTP
- mode tcp
- bind :80
- option tcplog
- default_backend CAS-HTTP
- backend CAS-HTTP
- balance leastconn
- option redispatch
- option abortonclose
- stick on src
- stick-table type ip size 10240k expire 240m
- option httpchk HEAD / HTTP/1.0
- server CAS1 $exchange1 check port 80 inter 5000 rise 2 fall 2
- server CAS2 $exchange2 check port 80 inter 5000 rise 2 fall 2
- #/******************************************************/
- frontend CAS-HTTPS
- mode tcp
- bind :443
- option tcplog
- default_backend CAS-HTTPS
- backend CAS-HTTPS
- balance leastconn
- option redispatch
- option abortonclose
- stick on src
- stick-table type ip size 10240k expire 240m
- option httpchk HEAD / HTTP/1.0
- server CAS1 $exchange1 check port 443 check-ssl inter 5000 rise 2 fall 2
- server CAS2 $exchange2 check port 443 check-ssl inter 5000 rise 2 fall 2
- #/******************************************************/
- frontend CAS-SMTP
- mode tcp
- bind :25
- default_backend CAS-SMTP
- backend CAS-SMTP
- option redispatch
- option abortonclose
- balance leastconn
- server CAS1 $exchange1 check port 25 inter 5000 rise 2 fall 2
- server CAS2 $exchange2 check port 25 inter 5000 rise 2 fall 2
- #/******************************************************/
- frontend CAS-SMTPS
- mode tcp
- bind :587
- default_backend CAS-SMTPS
- backend CAS-SMTPS
- option redispatch
- option abortonclose
- balance leastconn
- server CAS1 $exchange1 check port 587 inter 5000 rise 2 fall 2
- server CAS2 $exchange2 check port 587 inter 5000 rise 2 fall 2
- #/******************************************************/
- frontend CAS-SMTP-5555
- mode tcp
- bind :5555
- default_backend CAS-SMTP-5555
- backend CAS-SMTP-5555
- option redispatch
- option abortonclose
- balance leastconn
- server CAS1 $exchange1 check port 5555 inter 5000 rise 2 fall 2
- server CAS2 $exchange2 check port 5555 inter 5000 rise 2 fall 2
- #/******************************************************/
- frontend CAS-SMTP-2525
- mode tcp
- bind :5555
- default_backend CAS-SMTP-2525
- backend CAS-SMTP-2525
- option redispatch
- option abortonclose
- balance leastconn
- server CAS1 $exchange1 check port 2525 inter 5000 rise 2 fall 2
- server CAS2 $exchange2 check port 2525 inter 5000 rise 2 fall 2
- #/******************************************************/
- frontend CAS-RPC-EndPointMapper
- mode tcp
- bind :135 name epm tcp-ut 30s
- default_backend CAS-RPC-EndPointMapper
- backend CAS-RPC-EndPointMapper
- balance leastconn
- option tcp-check
- tcp-check connect port 135
- default-server on-marked-down shutdown-sessions
- server CAS1 $exchange1 check
- server CAS2 $exchange2 check
- #/******************************************************/
- frontend CAS-RPC-Mapi
- mode tcp
- bind :60001 name mapi tcp-ut 30s
- default_backend CAS-RPC-Mapi
- backend CAS-RPC-Mapi
- balance leastconn
- option tcp-check
- tcp-check connect port 60001
- default-server on-marked-down shutdown-sessions
- server CAS1 $exchange1 check
- server CAS2 $exchange2 check
- #/******************************************************/
- frontend CAS-RPC-AddressBook
- mode tcp
- bind :60002 name addressbook tcp-ut 30s
- default_backend CAS-RPC-AddressBook
- backend CAS-RPC-AddressBook
- balance leastconn
- option tcp-check
- tcp-check connect port 60002
- default-server on-marked-down shutdown-sessions
- server CAS1 $exchange1 check
- server CAS2 $exchange2 check
- #/******************************************************/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement