Pour la communauté française qui m’a aidé sur tweeter avec cette conf ça fonctionne …
après Nothing changes with listening ports
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 660 level admin
stats timeout 30s
user haproxy
group haproxy
daemon
# Default SSL material locations
ca-base /etc/ssl/certs
crt-base /etc/ssl/private
# Default ciphers to use on SSL-enabled listening sockets.
# For more information, see ciphers(1SSL). This list is from:
# https://hynek.me/articles/hardening-your-web-servers-ssl-ciphers/
# An alternative list with additional directives can be obtained from
# https://mozilla.github.io/server-side-tls/ssl-config-generator/?server=haproxy
ssl-default-bind-ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:RSA+AESGCM:RSA+AES:!aNULL:!MD5:!DSS
ssl-default-bind-options no-sslv3
defaults
log global
mode http
option httplog
option dontlognull
timeout connect 5000
timeout client 50000
timeout server 50000
errorfile 400 /etc/haproxy/errors/400.http
errorfile 403 /etc/haproxy/errors/403.http
errorfile 408 /etc/haproxy/errors/408.http
errorfile 500 /etc/haproxy/errors/500.http
errorfile 502 /etc/haproxy/errors/502.http
errorfile 503 /etc/haproxy/errors/503.http
errorfile 504 /etc/haproxy/errors/504.http
frontend http
mode http
bind :80
default_backend web_servers
frontend rtmp
mode tcp
bind :808
default_backend rtmp
frontend tcp2195
mode tcp
bind :2195
default_backend tcp2195
frontend tcp12307
mode tcp
bind :12307
default_backend tcp12307
frontend tcp12308
mode tcp
bind :12308
default_backend tcp12308
frontend tcp443
mode tcp
bind :443
default_backend tcp443
frontend tcp8000
mode tcp
bind :8000
default_backend tcp8000
frontend tcp8001
mode tcp
bind :8001
default_backend tcp8001
backend web_servers
mode http
option forwardfor
balance source
stick store-request src
stick-table type ip size 200k expire 2m
server web1 172.16.1.205:80 check
server web2 172.16.1.206:80 check
server web3 172.16.1.207:80 check
backend rtmp
mode tcp
stick match src table web_servers
server web1 172.16.1.205:808
server web2 172.16.1.206:808
server web3 172.16.1.207:808
backend tcp2195
mode tcp
stick match src table web_servers
server web1 172.16.1.205:2195
server web2 172.16.1.206:2195
server web3 172.16.1.207:2195
backend tcp12307
mode tcp
stick match src table web_servers
server web1 172.16.1.205:12307
server web2 172.16.1.206:12307
server web3 172.16.1.207:12307
backend tcp12308
mode tcp
stick match src table web_servers
server web1 172.16.1.205:12308
server web2 172.16.1.206:12308
server web3 172.16.1.207:12308
backend tcp443
mode tcp
stick match src table web_servers
server web1 172.16.1.205:443
server web2 172.16.1.206:443
server web3 172.16.1.207:443
backend tcp8000
mode tcp
stick match src table web_servers
server web1 172.16.1.205:8000
server web2 172.16.1.206:8000
server web3 172.16.1.207:8000
backend tcp8001
mode tcp
stick match src table web_servers
server web1 172.16.1.205:8001
server web2 172.16.1.206:8001
server web3 172.16.1.207:8001
listen stats # Define a listen section called “stats”
bind :9000 # Listen on localhost:9000
mode http
stats enable # Enable stats page
stats hide-version # Hide HAProxy version
stats realm Haproxy\ Statistics # Title text for popup window
stats uri /haproxy_stats # Stats URI
#stats auth root:pwd # Authentication credential