【问题标题】:How bloc a range of IP with Iptables?如何用Iptables bloc 一个IP 范围?
【发布时间】:2015-02-18 07:06:30
【问题描述】:

如何使用 iptables 阻止一系列 IP? 例如我想屏蔽所有以122.225.109.xx开头的ip

像这样简单吗? iptables -I INPUT -s 211.119.109.x -j DROP

谢谢

【问题讨论】:

    标签: ip iptables server


    【解决方案1】:

    您需要指定子网掩码:

    iptables -I INPUT -s 211.119.109.0/255.255.255.0 -j DROP
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-02-21
      • 2019-09-02
      • 2012-07-06
      • 2014-05-06
      • 1970-01-01
      • 2013-09-15
      • 2011-08-17
      相关资源
      最近更新 更多