-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 To whom it may concern,
On 12/8/11 3:52 PM, spr...@gmx.eu wrote: > I have set up the RemoteIpFilter (Tomcat 7.0.8) It's time to upgrade: 7.0.23 is available and includes significant improvements including security-related bug fixes. > in the webapps web.xml like this: > > <filter> <filter-name>RemoteIpFilter</filter-name> > > <filter-class>org.apache.catalina.filters.RemoteIpFilter</filter-class> > > </filter> > > <filter-mapping> <filter-name>RemoteIpFilter</filter-name> > <url-pattern>/*</url-pattern> <dispatcher>REQUEST</dispatcher> > </filter-mapping> > > The mapping is the first in the filter chain. > > But when I call request.getRemoteAddr() in a plain jsp in the root > of the webapp I get the IP from the proxy not from the client. The > proxy sends x-forwared-for correctly. > > What can be the problem? Can you send a dump of the HTTP headers received by the webapp and the return value of the various request.getXXX methods? That would be very helpful, here. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk7hJg4ACgkQ9CaO5/Lv0PAs9ACfUqBt4W0+tTMPbDEZkL1G0p8K rnYAoLkczJErlaf0uoUZ6oHAai48m61K =MLUe -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org