Solved

shorewall firewall and spam

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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

​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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

809 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