IBM Support

Remote Address Filter doesn't work in WebSphere Application Server Community Edition when it is associated with Engine

Technote (troubleshooting)


Remote Address Filter Valve allows you to compare the IP address of the client that submitted this request against one or more regular expressions, and either allow the request to continue or refuse to process the request from this client. A Remote Address Filter can be associated with any Catalina container (Engine, Host), and must accept any request presented to this container for processing before it will be passed on.

But it's been observed that in WebSphere Application Server Community Edition Remote Address Filter cann't work if you add it into Engine. On the other side it works in Host.


The sample show how to add a Remote Address Filter Valve in Engine.


<Engine defaultHost="${ServerHostname}" name="Catalina">
<Valve className="org.apache.catalina.valves.RemoteAddrValve" deny="127\.\d+\.\d+\.\d+"/>
Host appBase="" autoDeploy="true" name="${ServerHostname}" unpackWARs="true" xmlNamespaceAware="false" xmlValidation="false">
Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" pattern="common" prefix="${ServerHostname}_access_log." resolveHosts="false" suffix=".txt"/>

The remote address filter valve's purpose here is to ask the server to refuse to process the request from 127.*.*.*. But it doesn't work. The server still handle the request from 127.*.*.*.

Resolving the problem

To fix the issue, please refer the instruction below:

1. Download the patch

2. Unzip the attached file into the WebSphere Application Server Community Edition installation directory, and ensure the files listed in the zip file to replace the ones in the server installation.

3. Start the server with the cache cleaned, for example,

<WAS_CE_HOME>\bin\startup -c

<WAS_CE_HOME>/bin/ -c

Document information

More support for: WebSphere Application Server Community Edition

Software version:

Operating system(s): AIX, Linux, Solaris, Windows

Software edition: Elite, Enhanced, Entry

Reference #: 1638625

Modified date: 26 May 2013

Translate this page: