linfox
V2EX  ›  问与答

通过 putty 关闭 53 端口之后,下次去看又打开了?

  •  
  •   linfox · Oct 28, 2014 · 2790 views
    This topic created in 4301 days ago, the information mentioned may be changed or developed.
    于是VPS提供商一直给我发 abuse complaint

    关闭的时候用的是以下命令行,请教一下是不是我的密码泄露了或者是其他什么问题。
    有什么方法可以永久关闭 53 端口。

    ------


    使用 netstat -tnl 命令查看哪些端口打开了
    使用 lsof -i:端口号 查看我要封杀端口好的PID (上次1261)(后来1670)
    用 kill -9 PID号 杀掉我要封禁的端口:
    2 replies    2014-10-28 17:11:32 +08:00
    ozking
        1
    ozking  
       Oct 28, 2014
    iptables大法
    linfox
        2
    linfox  
    OP
       Oct 28, 2014
    @xudshen

    谢谢! 小鑫。。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2759 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 14:06 · PVG 22:06 · LAX 07:06 · JFK 10:06
    ♥ Do have faith in what you're doing.