Solved

shorewall firewall and spam

Posted on 2006-11-02
5
266 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
  • 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

​Being a Managed Services Provider (MSP) has presented you  with challenges in the past— and by meeting those challenges you’ve reaped the rewards of success.  In 2014, challenges and rewards remain; but as the Internet and business environment evol…
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 …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

810 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