Haproxy : Reverse Proxy Tcp

De www.yakakliker.org
Révision datée du 27 mai 2024 à 16:22 par Administrateur (discussion | contributions) (Page créée avec « Dans certains cas, le reverse proxy Tcp s'impose. Voici la configuration type <syntaxhighlight lang="bash"> 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 </syntaxhighlight> === Lien === https://www.haproxy.com/documentation/haproxy-configuration-tutorials/load-... »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)

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