Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-6955

JMX: With rmiRegistryHost = 127.0.0.1, Karaf should listen only on 127.0.0.1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.2.9
    • 4.2.11, 4.3.1
    • karaf
    • None

    Description

      JMX - with rmiRegistryHost = 127.0.0.1 Karaf should listen only on 127.0.0.1

      However, Karaf listens on 0.0.0.0 which opens up access to the network.

      > config:list  "(service.pid=org.apache.karaf.management)"
      ----------------------------------------------------------------
      Pid:            org.apache.karaf.management
      BundleLocation: ?
      Properties:
         daemon = true
         felix.fileinstall.filename = file:mykaraf/etc/org.apache.karaf.management.cfg
         jmxRealm = karaf
         jmxmpEnabled = false
         jmxmpHost = 127.0.0.1
         jmxmpObjectName = connector:name=jmxmp
         jmxmpPort = 9999
         jmxmpServiceUrl = service:jmx:jmxmp://127.0.0.1:9999
         objectName = connector:name=rmi
         rmiRegistryHost = 127.0.0.1
         rmiRegistryPort = 25031
         rmiServerHost = 127.0.0.1
         rmiServerPort = 25041
         service.pid = org.apache.karaf.management
         serviceUrl = service:jmx:rmi://127.0.0.1:25041/jndi/rmi://127.0.0.1:25031/karaf-mykaraf
         threaded = true
      

      Using netstat one can see the listen address is not 127.0.0.1:

      $ netstat -n -l -t|grep 25031
      tcp      0      0 0.0.0.0:25031             0.0.0.0:*              LISTEN
      

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              lichtin Martin Lichtin
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: