我遵循了这一点: 如何保存iptables的规则?
并创建了这个“/etc/iptables.rules”:
# Generated by iptables-save v1.4.12 on Sun May 19 18:42:18 2013
*filter
:INPUT ACCEPT [429624:571594561]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [174081:16941855]
[0:0] -A INPUT -s 173.194.55.0/24 -j REJECT --reject-with icmp-port-unreachable
[0:0] -A INPUT -s 206.111.0.0/16 -j REJECT --reject-with icmp-port-unreachable
COMMIT
# Completed on Sun May 19 18:42:18 2013
我怎么知道它正在被使用?
答案1
sudo iptables -L -nv
将显示当前的 iptables 规则。