Linux关闭默认端口

Linux关闭默认端口

25端口

1
apt-get autoremove sendmail-bin

53端口

1
2
3
4
systemctl stop systemd-resolved.service
systemctl disable systemd-resolved.service
rm /etc/resolv.conf
echo "nameserver 223.5.5.5" >> /etc/resolv.conf

111端口

1
2
systemctl stop rpcbind.socket
systemctl disable rpcbind.socket

Linux关闭默认端口
https://kuan.pages.dev/article/c42a1fba.html
作者
IKun
发布于
2023年6月7日
许可协议