Skip to main content
1 of 2
pioupiou
  • 926
  • 1
  • 10
  • 23

haproxy pass origin IP in galera cluster db

We have one galera cluster, mariadb version 10.3 and haproxy.

We want the users to connect like this client->haproxy->galera_cluster. The user we create in the database we allow the IP to the client. For http we found that you can use send-proxy or X-Origin IP in the header.

We want to, to the same with galera cluster, TCP protocol.

We add this in mariadb config file: "proxy_protocol_networks = haproxy_server/32"

We use ubuntu 16.04 and haproxy 1.6.

Any ideas how we can to that.

Thanks :)

pioupiou
  • 926
  • 1
  • 10
  • 23