When using proxy protocol, mysql needs to bind to an address instead of 0.0.0.0

Bug #1502408 reported by Frederic Descamps
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Status tracked in 5.7
5.1
Invalid
Undecided
Unassigned
5.5
Invalid
Undecided
Unassigned
5.6
New
Undecided
Unassigned
5.7
New
Undecided
Unassigned

Bug Description

When proxy_protocol_networks is set to something else than * (the proxy ip for example), you can't connect any more using the proxy, you need to bind_address= to the mysql server's ip in my.cnf

This is not documented and should be added

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

When we added debug output to analyse this case, we found that, without bind_address, proxy protocol networks still work, but in the IPv6 format: all incoming connections from IPv4 are processed in IPv6 form. Specifying bind_address usually has the effect of not listening on IPv6.

tags: added: proxy-protocol
Revision history for this message
wodesuck (wodesuck) wrote :

set proxy_protocol_networks to an IPv4-mapped address(::ffff:a.b.c.d) make it work properly without bind_address.

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-3313

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.