凝思系统关闭端口

高危端口

涉及服务

关闭方法

21

ftp

vi /etc/inetd.conf

注释行#telnet stream tcp nowait telnetd /usr/sbin/in.telnetd

/etc/init.d/openbsd-inetd restart

或者

/etc/init.d/proftpd stop

chkconfig proftpd off

23

telnetrlogin

/etc/init.d/proftpd stop

chkconfig proftpd off

25

SMTP Simple MailTransfer Protocol 

(E-mail)

/etc/init.d/master stop

chkconfig master off

80

HTTP超文本传送协议

/etc/init.d/apache2 stop

chkconfig apache off

135

RPC(远程过程调用)服务

/etc/init.d/samba stop

chkconfig samba off

445

net File System(CIFS)

/etc/init.d/samba stop

chkconfig samba off

8080

web

/etc/init.d/tomcat7 stop

chkconfig tomcat7 off

         111

/etc/init.d/rpcbind stop

chkconfig rpcbind off

         631

/etc/init.d/cups stop

chkconfig cups off

         53

步骤一:systenctl stop systemd-resolved

步骤二:vi /etc/systemd/resolved.conf

步骤三:

[Resolve]
DNS=8.8.8.8  #取消注释,增加dns
#FallbackDNS=
#Domains=
#LLMNR=no
#MulticastDNS=no
#DNSSEC=no
#Cache=yes
DNSStubListener=no  #取消注释,把yes改为no

步骤四:

ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf

        177

步骤一:把/etc/gdm/custom.conf 文件里xdmcp的enable=1改成enable=0.

步骤二:chattr +i custom.conf

重启电脑

查看端口对应服务:less /etc/services
  • 0
    点赞
  • 33
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值