-
Notifications
You must be signed in to change notification settings - Fork 978
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
Implementation of PROXY protocol V1 #4600
Conversation
This commit introduces: - class ProxyProtocolInfo() , that: - performs parsing - validates subnet - run automated tests in DEBUG build - variable mysql-proxy_protocol_networks . Accepted values: - empty string: disables PROXY protocol - '*' : allows connections from any IP - comma separated list of subnets - automated testing in DEBUG build during start - export of PROXY protocol information in internal session, using PROXY_V1 - a TAP test to verify various connections
retest this please |
Documentation draft: ProxySQL PROXY Protocol Support DocumentationThis document outlines the new PROXY protocol support in ProxySQL. It provides information on how to enable and configure the protocol, its functionalities, and potential use cases. IntroductionThe PROXY protocol is a simple mechanism for transparently forwarding client IP addresses through a network load balancer. It allows applications behind a network load balancer to identify the original client's IP address, even if the connection is made through a network load balancer. ProxySQL now supports the PROXY protocol version 1, which is suitable for database environments. Version 2 of the PROXY protocol enhances version 1 but it provides a lot of features that while commonly used in web environments, are not suitable for database environments. Enabling PROXY Protocol SupportTo enable PROXY protocol support in ProxySQL, you need to configure the
Example: To enable PROXY protocol support for connections from the subnet 192.168.1.0/24 and the IP address 10.0.0.1, you would set the following:
Note: The subnet notation should follow standard CIDR notation (e.g., 192.168.1.0/24). How ProxySQL Handles PROXY ProtocolWhen a connection arrives at ProxySQL, it checks for the PROXY protocol header. If the header is detected and the network load balancer IP address matches the configured
ConclusionThe PROXY protocol support in ProxySQL provides a valuable mechanism for managing and securing database connections. It allows you to transparently forward client IP addresses, enabling advanced features like IP-based access control and performance monitoring. By configuring the Further Information:
|
retest this please |
The current commit introduces:
TODO:
haproxy
and PROXY protocol enabled