Haproxy : Reverse Proxy Tcp

De www.yakakliker.org

Dans certains cas, le reverse proxy Tcp s'impose. Voici la configuration type

frontend MonTCP
    mode tcp
    bind *:3306
          
    default_backend TSE

backend TSE
    mode tcp
    balance leastconn
    server S1 192.168.1.50:3306 check
    server S2 192.168.2.50:3306 check
    stick-table type ip size 1m expire 30m


Lien

https://www.haproxy.com/documentation/haproxy-configuration-tutorials/load-balancing/tcp/

https://discourse.haproxy.org/t/haproxy-forwarding-https-ok-tcp-not-ok-please-help/3872/5

https://www.haproxy.com/blog/introduction-to-haproxy-stick-tables

https://www.haproxy.com/documentation/haproxy-configuration-tutorials/core-concepts/stick-tables/