【问题标题】:How to find all ip addresses blocked by iptables -A如何查找被 iptables -A 阻止的所有 IP 地址
【发布时间】:2017-05-15 17:48:27
【问题描述】:

我无意中使用iptables -A INPUT -s xxx -j DROP 阻止了Googlebot 的IP 地址。这可能是我的网站没有被谷歌引用的原因。 问题:由于我不知道哪个IP是google的,那么如何找到iptables的日志并接受所有使用iptables -D INPUT -s xxx -j DROP阻止的IP?

【问题讨论】:

    标签: linux firewall iptables


    【解决方案1】:

    在 Linux 中尝试以下命令

    iptables -L INPUT -v -n
    

    您可以使用 GREP 搜索特定的 IP

    iptables -L INPUT -v -n | grep "192.168.2.1"
    

    【讨论】:

    • 谢谢你,我得到了我的清单。
    猜你喜欢
    • 1970-01-01
    • 2019-12-14
    • 2019-05-24
    • 2015-12-25
    • 1970-01-01
    • 2010-11-04
    • 1970-01-01
    • 2016-04-17
    • 2011-11-17
    相关资源
    最近更新 更多