Class RemoteAddressConnectorPolicy

java.lang.Object
org.apache.activemq.broker.RemoteAddressConnectorPolicy
All Implemented Interfaces:
RemoteAddressConnectorPolicyMBean, TransportConnectorPolicyMBean, org.apache.activemq.transport.TransportConnectorPolicy

public class RemoteAddressConnectorPolicy extends Object implements org.apache.activemq.transport.TransportConnectorPolicy, RemoteAddressConnectorPolicyMBean
A TransportConnectorPolicy that admits or refuses each accepted socket by its remote IP address, using allow and deny lists in CIDR notation.

Deny entries are checked first, then the allow list; an empty allow list permits every address not denied. Each list is a comma separated string of CIDR blocks or a file: URI to a file with one block per line; see CidrListLoader for the accepted forms. A list is parsed when its property is set, so a broken file reference fails the broker configuration instead of the first connection.

The lists are configuration, set before the connector starts. At runtime JMX exposes this policy as a RemoteAddressConnectorPolicyMBean under the connector's object name: enforcement can be switched with the enabled attribute, the counters report admissions and refusals, and the allowed operation runs an address or block through the decision without connecting.

<transportConnector name="openwire" uri="tcp://0.0.0.0:61616">
  <transportConnectorPolicy>
    <remoteAddressConnectorPolicy allowList="10.0.0.0/8" denyList="10.0.0.53/32"/>
  </transportConnectorPolicy>
</transportConnector>