使用iptables封掉所有邮件端口

说明:封掉邮件端口可以防止垃圾邮件方法1、直接封掉所有邮件协议端口iptables -A INPUT -p tcp -m multiport --dport 25,110,465:587,993...

bysem (15)

说明:封掉邮件端口可以防止垃圾邮件

方法

1、直接封掉所有邮件协议端口

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,110,465:587,993:995 -j DROP
iptables -A OUTPUT -p tcp -m multiport --dport 25,110,465:587,993:995 -j DROP
iptables -A OUTPUT -p udp -m multiport --dport 25,110,465:587,993:995 -j 

2、保存iptables设置

iptables-save
service iptables save
0 I like it
0 I don't like it

Leave a Reply

Your email address will not be published. Required fields are marked *