-
-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HAProxy transparent proxy mode #239
Comments
Here is my configuration lsmod | grep -i tproxy
iptables -t mangle -vL
ip rule
ip route show table 100
sysctl -p
cat haproxy.cfg
grep -i TPROXY /boot/config-5.10.0-20-amd64
haproxy -vv
|
HAProxy transparent proxy mode is currently not supported by this playbook. This advanced HAProxy setup is outside the scope of this project. I will try to find time to solve this problem, but for now you need to work on it yourself. |
Hi, |
Ok, figured out i think. |
@honibis you have to edit confd configuration |
@vitabaks without transparent mode hba becomes useless cause every connection goes from 127.0.0.1 Any suggestions? |
Yes. In HAProxy mode, there is no need to manage rules in pg_hba.conf |
and how to solve the issue of security and access control? Do you have any solution? |
Firewall. |
What about never tried such type. |
When using HAProxy (Type-A) or Pgbouncer (all types, optional) You will always receive local connections (127.0.0.1) on the database server, because this services does not forward clients IP Addresses.
You will see the IP addresses of the clients directly in Postgres if your setup does not use PgBouncer ( |
What is wrong with my config (below)?
Tried these tutorials
https://www.haproxy.com/blog/howto-transparent-proxying-and-binding-with-haproxy-and-aloha-load-balancer/
https://serverfault.com/questions/980615/haproxy-unable-to-switch-to-transparent-mode
but still no success, can't conect to pgbouncer
The text was updated successfully, but these errors were encountered: