关闭VMware 903端口

原文链接,在此表示感谢。

通过nmap扫描发现VMware开放了如下端口

~ -> nmap -sV 10.0.0.3
Starting Nmap 7.01 ( https://nmap.org ) at 2016-03-16 17:44 EDT
Nmap scan report for doom.lan (10.0.0.3)
Host is up (0.00013s latency).
Not shown: 997 closed ports
PORT    STATE SERVICE         VERSION
22/tcp  open  ssh             OpenSSH 7.2p2 Debian 1 (protocol 2.0)
443/tcp open  ssl/http        VMware VirtualCenter Web service
902/tcp open  ssl/vmware-auth VMware Authentication Daemon 1.10 (Uses VNC, SOAP)
Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 13.14 seconds

关闭443端口
Menu -> Edit -> Preferences -> Shared VMs
去掉"Enable virtual machine sharing and remote access"

关闭902端口就比较麻烦了
需要编辑/etc/init.d/vmware
/etc/init.d/vmware-workstation-server两个文件。

对于/etc/init.d/vmware
注释掉四处"Authentication Daemon".

vmware_start_authdlauncher() {
        #vmware_bg_exec "`vmware_product_name` Authentication Daemon" \
            #"$SBINDIR/vmware-authdlauncher"
        }
        
                #vmware_exec 'VMware Authentication Daemon' vmware_start_authdlauncher
        
            stop)
                echo 'Stopping VMware services:'
                exitcode='0'¬
        
                #vmware_exec 'VMware Authentication Daemon' vmware_stop_authdlauncher
        
                    #vmware_exec 'VMware Authentication Daemon' vmware_start_authdlauncher

对于/etc/init.d/vmware-workstation-server
添加下面两行
### END INIT INFO
echo Aborting launch of vmware-workstation-server¬
exit 0

你可能感兴趣的:(关闭VMware 903端口)