the PROXY protocol support in mod_remoteip should add the destination port sent in this protocol to an environment variable. I think it should also spill the "real" client port to an environment variable before overlaying it with the addr/port in the proxy protocol. (first part via reddit https://old.reddit.com/r/apache/comments/j9tzvg/query_on_proxy_protocol_implementation/)