# Generated by iptables-save v1.4.7 on Wed Jul 11 22:25:28 2018
*filter
:INPUT ACCEPT [59:2968]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [1146:102429]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p tcp -m multiport --dports 80,22,10051 -j ACCEPT
-A INPUT -p tcp -j DROP
COMMIT
# Completed on Wed Jul 11 22:25:28 2018
原文:http://blog.51cto.com/yht1990/2140647