清除所有规则: iptables -F
开放常用tcp端口: iptables -I INPUT -p tcp -m multiport --dports 20,21,22,3690,80,443,4443,8023,8888,25,110,30000...udp端口: iptables -I INPUT -p udp -m multiport --dports 53,123,8571,8888 -j ACCEPT iptables...-I OUTPUT -p udp -m multiport --sports 53,123,8571,8888 -j ACCEPT
开放特殊udp端口(如:dns): iptables...允许服务器互ping: iptables -A OUTPUT -p icmp -j ACCEPT iptables -A INPUT -p icmp -j ACCEPT
允许握手成功的数据通过...iptables -I INPUT -p tcp --dport 80 -m connlimit --connlimit-above 50 -j REJECT # 允许单个IP的最大连接数为