I have configured percona cluster and in front of it using percona -ha so to redirect request primary and replica but i want to handle in ha proxy so it should send the client ip at backend and we can whitelist that client ip using pg_hba.conf
This is not solving the problem as we want HA proxy to send the client IP in the backward and through which we can handle client using pg_hba.conf as currently it is set for 0.0.0.0/0