LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-21-2011, 02:10 AM   #1
nishith
Member
 
Registered: Aug 2008
Posts: 148

Rep: Reputation: 15
Smile Prevent Linux HTTP Server from outside attack.


Hello,

I am using "DenyHosts" to prevent Linux servers from "Brute Force" attack & I want to prevent Linux based "websites", which are running on "80" port. Reason is, if someone executes any script/program that will frequently (1000 times in a second) access website, then HTTP won't respond after few minutes & i have to restart the service.

Any Solution?
 
Old 11-21-2011, 05:08 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Limit new connections to 10 packets/sec and a maximum of 20 packets/sec per source IP address:
Code:
iptables -A INPUT -i eth0 -p tcp --dport 80 -m hashlimit --hashlimit 10/s --hashlimit-burst 20 --hashlimit-mode srcip,dstport --hashlimit-name INPUT -m state --state NEW -j ACCEPT
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Prevent DNS DoS attack vikas027 Linux - Software 5 05-31-2010 11:39 PM
LXer: Unix And Linux PDF Telnet Curiosity - When HTTP Error Pages Don't Attack! LXer Syndicated Linux News 0 12-09-2008 09:30 AM
Script to prevent DDOS attack mabin Linux - Security 9 10-18-2008 06:04 AM
How can prevent arp attack?? CN_jianzi Linux - Software 3 10-12-2006 07:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration