Blocking Mail from addresses with IPTables
Hope someone can help!
I'd like to block incoming mail on my Linux Router from specific IP's. Actually I wouldn't mind blocking all traffic from these addresses. The reason that I want to block these IP's is that they are infected with MyDoom and even though my mail server blocks the attached payload, I still receive 1000's of these mails from multiple addresses daily.
What I've tried that doesn't seem to work.....
iptables -A INPUT -s xxx.xxx.xxx.xxx -j DROP
(Added this in hopes to drop any packet received from the host ip in the header of the bad mail)
I run iptables simply for NAT and don't really have any other filtering going on. I'd love to have some kind of firewall settings that block just about everything other then web/mail/ssh/dns. Everything else I could care less about.
Thanks in advance,
Chris Staunton
Last edited by Optichip; 02-11-2004 at 11:34 AM.
|