iptables -A INPUT -s 119.161.12.0/24 -j ACCEPT #开放访问IP段
iptables -A INPUT -p tcp --dport 80 -j ACCEPT #服务端口开放
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -p icmp -j ACCEPT
iptables -P INPUT DROP
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
阅读(2161) | 评论(0) | 转发(0) |