Solved

shorewall firewall and spam

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

​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…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now