Restricting JMX to localhost

后端 未结 4 1797
没有蜡笔的小新
没有蜡笔的小新 2021-02-10 12:49

While there appears to some documentation on how to expose JMX through various firewall and tunneling schemes, I sort of want the opposite. I want to ensure that JMX is only ac

4条回答
  •  忘掉有多难
    2021-02-10 12:53

    Unfortunately there is currently no way to do that.

    According to Sun documentation a sole -Dcom.sun.management.jmxremote should open only a local port while -Dcom.sun.management.jmxremote.port= opens a remotely accessible port.

    Both ways open an additional random port which is accessible from remote.

    I've seen -Dcom.sun.management.jmxremote.host=, but that does not seem to have any effect.

    I came to the conclusion that there is no way and used a local firewall to shield the server.

提交回复
热议问题