iptables过滤smtp?

我虽然我过滤了25端口smtp,但是当我运行iptables -L列出活动防火墙规则,我仍然在我的结果中得到以下内容:

ACCEPT tcp -- anywhere anywhere tcp dpt:smtp 

不应该被删除,我在我的shell脚本中注释了以下规则,保存并重新加载iptables

 # iptables -A INPUT -p tcp -m tcp --dport 25 -j ACCEPT # iptables -A OUTPUT -p tcp -m tcp --dport 25 -j ACCEPT 

更新:我使用的脚本是在这里,唯一的区别是,我注释了端口25行http://linode.com/wiki/index.php/CentOS_IPTables_sh

只要使用Centos内置的iptables机制,就可以更好地devise使用脚本,刷新规则,加载模块,检查语法等。