I did some research on it and found the following:

1. RMI sever and RMI registry ports - "Apache Karaf :: Management" opens RMI registry (1099) and RMI server (44444) ports. These ports are configurable in org.apache.karaf.management.cfg file.

2. Shutdown port - This random port is opened by Karaf core and this can be disabled by Add the following line in the custom.properties.
    karaf.shutdown.port=-1

3. JMX Remote port - This random port is opened by -Dcom.sun.management.jmxremote JVM argument in ${karaf.home}/bin/karaf file. Removing this entry will disable the random port

4. SSH port - Port 8101 is opened by " Apache Karaf :: Shell :: SSH" bundle. This port is configurable in org.apache.karaf.shell.cfg. Stopping/uninstalling the said bundle will disable the port.

Regards,

Raj


On Thursday 21 August 2014 11:52 PM, Achim Nierbeck wrote:

I thought we had a list of used ports somewhere, but couldn't find it in the docs. Maybe its somewhere on this list.

Regards, Achim

sent from mobile device

Am 21.08.2014 20:15 schrieb "Jean-Baptiste Onofré" <j...@nanthrax.net <mailto:j...@nanthrax.net>>:

    Hi

    ssh is 8101 by default.

    What's the version of Karaf ?

    Regards
    JB

    On 08/21/2014 07:56 PM, Rajbir Saini wrote:

        Hi,

        I am trying to find the all open sockets by Karaf for a
        security audit.
        It looks Karaf listens on 5 different ports. I can
        enable/disable RMI,
        SSH and JMX ports but one port by starting/stopping the
        bundle. I could
        also disable the shutdown port using settings in the
        custom.properties
        file. There is another random port and I am not able to find
        what is the
        purpose of this port and how to disable it.

        List of open ports:

        ssh : 8081
        RMI : 1099
        JMX: 44444
        Shutdown: Random port
        Unknown: Random ports

        Regards,

        Raj


-- Jean-Baptiste Onofré
    jbono...@apache.org <mailto:jbono...@apache.org>
    http://blog.nanthrax.net
    Talend - http://www.talend.com


Reply via email to