ExtMail服务器社区's Archiver

yg0898 发表于 2009-9-18 09:51

如何禁止某IP主机的发来的垃圾

求助。。。现系统收到这个IP上的垃圾
IP:203.116.57.97
分别以不同的邮箱帐号发送,但查看了日志,都是从这个IP上发过来的,

请问高手们,用什么样的方法阻止呢?

zhaodongxi 发表于 2009-9-18 11:26

最简单的方法用iptables禁止该ip对你服务器的连接

yg0898 发表于 2009-9-18 16:00

命令是?

mouse 发表于 2009-9-19 11:59

用iptables   ....

yg0898 发表于 2009-9-21 10:06

iptables -A INPUT -s 203.116.57.97 -j DROP

是不是这样写?

hlhll 发表于 2010-7-15 15:14

回复 5# yg0898 的帖子

有点太狠了吧,可以只针对smtp
iptables -t filter -A INPUT -s 203.116.57.97 -p tcp --dport 25 -j DROP
还有一种办法,将IP地址写入黑名单
/usr/localslockd/config/blacklist

页: [1]

Powered by Discuz! Archiver 7.0.0  © 2001-2009 Comsenz Inc.