如何在Ubuntu中关闭多播DNS和多播UPNP服务?

我只是想知道如何完全关闭这两项服务,因为我对它们毫无用处,因为在我的情况下它们是一种安全风险。 因为我有一个本地设备,我无法阻止upnp,并且该设备正在使用多播ip范围,并且可以访问多播dns导致上述问题。

当然我可以在路由器中阻止它,但我想知道它是否可能只是禁用它,明智的。

当我用Google搜索时,我发现有关停止多播DNS服务的事情,说明如下:

# chkconfig --level3 avahi-daemon off # service avahi-daemon stop 

不知道如何检查它现在是否已禁用。 如果有人能告诉我如何关闭这两项服务,我将不胜感激?

试试这个

 nano /etc/init/avahi-daemon.conf 

搜索以下行,使用“start on”编辑该行并添加“never and”:

更换线

 start on (filesystem and started dbus) 

 start on (never and filesystem and started dbus) stop on stopping dbus