AnsweredAssumed Answered

change ports to localhost

Question asked by aaron_bru on Jul 12, 2013
Latest reply on Jul 17, 2013 by aaron_bru
Hi,
I'm trying to make all the Alfresco ports listen on localhost instead of all adapters for security. I've changed almost all except for 2 (random port numbers) are still showing up in netstat:

tcp        0      0 :::50330                :::*                    LISTEN      21115/java         
tcp        0      0 :::60004                :::*                    LISTEN      21115/java         

I can't figure out what services these ports are from, or how to change them to listen on localhost (or disable them).
I've already tried the ports in alfresco-global.properties, remote-services-context.xml, conf/server.xml
and looked around in JMX, and spend a few hours googling and reading the docs.

Any help would be appreciated.
-Aaron

<blockcode>
$ netstat -nlptu
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name  
tcp        0      0 127.0.0.1:8009          0.0.0.0:*               LISTEN      21115/java         
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      30828/mysqld       
tcp        0      0 127.0.0.1:8080          0.0.0.0:*               LISTEN      21115/java         
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      4012/nginx         
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      12335/sshd         
tcp        0      0 127.0.0.1:8100          0.0.0.0:*               LISTEN      21232/soffice.bin  
tcp        0      0 127.0.0.1:8005          :::*                    LISTEN      21115/java         
tcp        0      0 127.0.0.1:50501         :::*                    LISTEN      21115/java         
tcp        0      0 127.0.0.1:50502         :::*                    LISTEN      21115/java         
tcp        0      0 127.0.0.1:50504         :::*                    LISTEN      21115/java         
tcp        0      0 127.0.0.1:50505         :::*                    LISTEN      21115/java         
tcp        0      0 127.0.0.1:50506         :::*                    LISTEN      21115/java         
tcp        0      0 127.0.0.1:50508         :::*                    LISTEN      21115/java         
tcp        0      0 :::22                   :::*                    LISTEN      12335/sshd         
tcp        0      0 :::631                  :::*                    LISTEN      1/init             
tcp        0      0 :::50330                :::*                    LISTEN      21115/java         
tcp        0      0 :::60004                :::*                    LISTEN      21115/java         
tcp        0      0 127.0.0.1:50500         :::*                    LISTEN      21115/java         
udp        0      0 0.0.0.0:631             0.0.0.0:*                           1/init             

</blockcode>

Outcomes