我正在尝试从我们的服务器中删除被阻止的 IP。
405 35964 DROP all -- !lo * IP ADDRESS 0.0.0.0/0
19 988 DROP all -- * !lo 0.0.0.0/0 24.7.56.95
root@host01 [~]# iptables -D INPUT 35964
iptables: Index of deletion too big
root@host01 [~]# iptables -D INPUT 405
iptables: Index of deletion too big
root@host01 [~]# iptables -D INPUT -s IPADDRESS -j ACCEPT
iptables: Bad rule (does a matching rule exist in that chain?)
Run Code Online (Sandbox Code Playgroud)
是什么赋予了?!谷歌没有帮助,因为我一直在寻找给我同样错误的相同行。
Gar*_*ett 17
运行iptables-save|grep 24.7.56.95以获取用于启用块的确切规则命令。它会是这样的:
-A INPUT ! -i lo -s 24.7.56.95 -j DROP
充分利用这个命令,替换-A用-D,并通过运行它iptables:
iptables -D INPUT ! -i lo -s 24.7.56.95 -j DROP
中提琴!
| 归档时间: |
|
| 查看次数: |
20007 次 |
| 最近记录: |