Question:
How do you block spam at the router level.?
?
2010-05-06 09:59:42 UTC
have recently been given the task of blocking unsolicited email on my company's exchange server. I suggested we use exchanges built in IP blocking and RBL features. I was then told that they want spam blocked at the router level. I was under the impression that IP blocking prevents a connection from ever being made. Is this true? How do I go about block spam at the router level? Thanks!
Four answers:
Rick
2010-05-06 10:08:04 UTC
see what features your router offers, some do offer this feature some do not, you may need to purchase a new router with that feature.. I used to use spamtitan as a virtual appliance for blocking spam.
Bash Limpbutt's Oozing Cyst©
2010-05-06 10:07:22 UTC
You really can't, at least not effectively. While you can block inbound traffic by IP address, either a single IP or range of IPs, using ACLs, that won't stop all SPAM. If you know for a fact that you will never need to receive e-mails from certain regions, you can block all IP addresses from those regions. Managing that can be a pain, however. For example, all IP addresses beginning with 61 originate in China so blocking 61.0.0.0/8 works nicely, IP addresses beginning with 151 are scattered all over the globe so blocking 151.0.0.0/8 may very well block legitimate inbound e-mail.



You can use ACLs to just block port 25 traffic inbound from whatever IP ranges you wish, but managing that at the router level is going to be a nightmare. Then of course you have the issue of false positives to deal with.



If you want to block spam before it even hits your Exchange server, you'll need some sort of dedicated SPAM filter in front of it that you route all port 25 traffic through. Then, as you identify blocks of IP addresses that are spamming you you can more easily add those IP ranges to the SPAM filter. Barracuda makes a passable one but there are dozens if not hundreds of others. Adding IP ranges to one of the SPAM filter appliances is much easier than trying to manually edit ACLs on a router. (And if you've ever edited an ACL without removing it from the interface first and turned the router into a paperweight you know what I'm talking about here.) The other advantage of using a hardware SPAM filter is that you can set it up to store spammed e-mails so that false positives can be released to the recipient. Many will allow you to release a false positive and whitelist the sender (by e-mail address, IP address, e-mail domain, etc) at the same time.
PoohBearPenguin
2010-05-06 10:07:44 UTC
I'm not sure you want to do this at the router level. That would block ALL traffic, regardless of its content, from those IP#s, which is probably a bit too draconian for your needs. You wouldn't want to use a spam RBL for this, unless you want to suddenly shut yourself off from a large chunk of the internet.



Having something reject SMTP connections from a list of IP#s should be sufficient. There's only one packet being received, and your filter is only responding with a "Connection refused" response. This can be done at the mailserver, or by putting something in front of the mailserver, like Procmail or Spamassassin, will give you much better results.
anonymous
2016-09-13 11:18:21 UTC
I'm not completely convinced about this


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...