iptables -A INPUT -p tcp -m multiport --dport 25,110,465:587,993:995 -j DROP iptables -A INPUT -p udp -m multiport --dport 25,993:995 -j DROP iptables -A OUTPUT -p tcp -m multiport --dport 25,993:995 -j DROP iptables -A OUTPUT -p udp -m multiport --dport 25,993:995 -j@H_404_0@ 保存iptables设置。
iptables-save service iptables save原文链接:https://www.f2er.com/lnmp/72578.html