Solved

shorewall firewall and spam

Posted on 2006-11-02
5
273 Views
Last Modified: 2010-04-22
hi all,

my server is getting spammed out.  I was using iptables to block the spammers but it wasnt working.  So I added shorewall firewall on top of it.  Here's the deal.  In shorewall (v. 3.2.5), I can disable listening ports just fine and the services stop working.  Now, with the services working I have been checking my network connections (netstat -an) and checking my mail logs.  I would like to blacklist certain IP's.  So, I added the IP's to the blacklist file and nothing happens, the IP's are still connected.  Now, when I specify tcp and the port of the spammer it kicks them off for a split second and then the reconnect with a different port.  i.e.  smtp 25 listening on localhost, spammer connects to smtp but using some random port number.  If I block their ip and the random port number they get kicked off but come back with a different port number.

Basically I cannot block certain IP's successfully.  I tried setting up a sorbs.net rdns, but that stops remote users from connecting using pop3/smtp.

please help.
0
Comment
Question by:newbe101
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 1

Accepted Solution

by:
jhughesco earned 250 total points
ID: 17874767
You will not succeed with this method as the source of spam constantly changes, you simply can't keep up.  As more sources of spam become aware of your SMTP server, it will only get worse.

Check out this project and consider deploying: http://spamassassin.apache.org/

Now were talking about a spam filter, you'll get it under control.

-Jeff
0
 
LVL 11

Assisted Solution

by:kblack05
kblack05 earned 250 total points
ID: 17914924
Why not attenuate your server to only listen to SMTP requests from your own network block?
0
 
LVL 11

Expert Comment

by:kblack05
ID: 17914930
By the way, all shorewall does is put an interface on top of iptables, they are not different methods. Shorewall uses the same facilities as IPTables, it's just creating a nice interface to manage the rules.
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello EE, Today we will learn how to send all your network traffic through Tor which is useful to get around censorship and being tracked all together to a certain degree. This article assumes you will be using Linux, have a minimal knowledge of …
BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question