Dear all,

are problem with haproxy 1.7.3 on FreeBSD 11.0-p8 known?

I have the problem that I got a lot of timeout for all websites that are
behind haproxy.

Haproxy does terminate the SSL connection and forwards to nginx. Before
haproxy I have a sslh running.


Downgrading to version 1.7.2 fixed the problem.


Here my config (I removed some fqdns and username and password):
global
                maxconn 2048
                user haproxy
                group haproxy
                daemon
                tune.ssl.default-dh-param 2048

                # logging
                ulimit-n 65536
                #log /var/run/log local0 info
                log /var/run/log local0 err

                # Configure chipers to not use, see
https://mozilla.github.io/server-side-tls/ssl-config-generator/
                ssl-default-bind-ciphers
ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS
                ssl-default-bind-options no-sslv3 no-tls-tickets
                ssl-default-server-ciphers
ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS
                ssl-default-server-options no-sslv3 no-tls-tickets

        defaults
                mode http
                log global
                option httplog
                #option dontlog-normal
                timeout connect 80s
                timeout client 80s
                timeout server 80s
                #timeout check 1s
                #timeout http-keep-alive 1s
                #timeout http-request 400s # slowloris protection
                option forwardfor
                option http-server-close
                default-server inter 3s fall 2 rise 2 slowstart 60s
                compression algo gzip
                compression type text/html text/plain text/css

        frontend www-http
                bind *:80
                redirect scheme https code 301 if !{ ssl_fc }
                reqadd X-Forwarded-Proto:\ http
                default_backend nginx-backend

        frontend www-https
                mode tcp
                bind 192.168.0.251:8443 ssl crt
/usr/local/etc/haproxy/certs/ alpn h2,http/1.1
                bind 192.168.200.6:8443 ssl crt
/usr/local/etc/haproxy/certs/ alpn h2,http/1.1
                bind localhost:443 ssl crt /usr/local/etc/haproxy/certs/
alpn h2,http/1.1
                bind 127.0.0.1:443 ssl crt /usr/local/etc/haproxy/certs/
alpn h2,http/1.1

                acl use_nginx ssl_fc_sni -i fqdn1 fqdn2
                acl http2 ssl_fc_alpn -i h2
                use_backend nginx-http2-backend if http2
                use_backend nginx-http-backend if use_nginx

                default_backend nginx-http-backend

        backend nginx-backend
                server www-1 127.0.0.1:8082 check send-proxy

        backend nginx-http2-backend
                mode tcp
                server www-1 127.0.0.1:8083 check send-proxy

        backend nginx-http-backend
                mode tcp
                server www-1 127.0.0.1:8082 check send-proxy

        frontend haproxy-stats
                bind 192.168.0.251:9001
                mode http
                stats enable
                stats hide-version
                stats realm Haproxy\ Statistics
                stats uri /haproxy_stats
                stats auth <user>:<passwordhash>

Gruß
Matthias

-- 

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook



Reply via email to