You can't bind server to external address and disallow access to jmx-console only from local address.
The security of jmx-console is disabled by default in jboss-4.2.3 so you have to activate it. You need to do three steps.
- Uncomment the last part web.xml in jmx-console/WEB-INF/web.xml (the part with security-constraint, login-config and security-role)
- Uncomment the one line that is in jboss-web.xml ( line)
- Change password in server/
<profile>
/conf/props/jmx-console-users.properties
Now you can access jmx-console only with user and password set in jmx-console-users.properties and with role JBossAdmin in jmx-console-roles.properties
And also don't forget to delete the already mentioned part:
<http-method>GET</http-method>
<http-method>POST</http-method>
And you can also disable jmx-console completely only by deleting whole jmx-console from deploy directory.