【问题标题】:iptables src-range and dst-rangeiptables src-range 和 dst-range
【发布时间】:2013-01-18 15:55:15
【问题描述】:

我们如何在 iptables 中使用这些标志?我不断收到无效选项/错误参数错误:

sudo iptables -A FORWARD --src-range 192.168.25.149-192.168.25.151 -j ACCEPT

【问题讨论】:

    标签: iptables


    【解决方案1】:

    你忘记了“iprange”匹配。

    这有效: sudo iptables -A INPUT -m iprange --src-range 192.168.25.149-192.168.25.151 -j ACCEPT

    http://www.frozentux.net/iptables-tutorial/chunkyhtml/x2702.html#TABLE.IPRANGEMATCH

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-07-14
      • 1970-01-01
      • 1970-01-01
      • 2010-10-17
      • 2012-06-13
      • 2013-12-16
      • 1970-01-01
      相关资源
      最近更新 更多