Reputation: 6383
Jboss 7.0 is (by default) configured to limit the access to the local ip by defining this in standalone.xml
:
<interfaces>
<interface name="public">
<inet-address value="127.0.0.1"/>
</interface>
</interfaces
I know I can change that to make it publicly available to all ips by putting this:
<interfaces>
<interface name="public">
<any-address/>
</interface>
</interfaces
But how can I limit this to local IPs only, e.g. all IP addresses that start with 10.x.x.x
?
Upvotes: 1
Views: 1783
Reputation: 22672
I think that this could help: https://docs.jboss.org/author/display/AS71/Interfaces+and+ports
<interface name="default">
<!-- Match any interface/address on the right subnet -->
<subnet-match value="192.168.0.0/16"/>
</interface>
In this way you can match all addresses in the given subnet.
Upvotes: 5