Skip to content

Instantly share code, notes, and snippets.

@nadeesha5814
Created April 12, 2015 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nadeesha5814/b2a1f8960dd9234de6a0 to your computer and use it in GitHub Desktop.
Save nadeesha5814/b2a1f8960dd9234de6a0 to your computer and use it in GitHub Desktop.
<proxy name="IpFilteringProxy"
transports="https http"
startOnLoad="true"
trace="disable">
<description/>
<target>
<inSequence>
<log level="full">
<property name="TO Property" expression="get-property('axis2','REMOTE_ADDR')"/>
</log>
<filter source="get-property('axis2','REMOTE_ADDR')" regex="192\.168\.1.*">
<then>
<send>
<endpoint>
<address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
</send>
</then>
<else>
<drop/>
</else>
</filter>
</inSequence>
<outSequence>
<send/>
</outSequence>
<faultSequence/>
</target>
</proxy>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment