rainerjung opened a new pull request #385: URL: https://github.com/apache/tomcat/pull/385
It contains the IP address of the direct connection peer. If a reverse proxy sits in front of Tomcat and the protocol used is AJP or HTTP in combination with the RemoteIp(Valve|Filter), the peer address might differ from the remoteAddress. The latter then contains the address of the client in front of the reverse proxy, not the address of the proxy itself. Support for the peer address has been added to the RemoteAddrValve and RemoteCIDRValve with the new attribute "usePeerAddress". This can be used to restrict access to Tomcat bsed on the reverse proxy IP address, which is especially useful to harden access to AJP connecrtors. The peer address can also be logged in the access log using the new %{peer}a syntax. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org