
10-19-2009, 03:16 PM
|
|
Web Hosting Master
|
|
Join Date: Apr 2009
Posts: 1,320
|
|
Over 200 requests per second from the same 5 IPs
I block them in htaccess but their repeated attacks is making my server load crazy.
I installed AFP but it doesn't do anything, where do I set rules on automatic blocking?
|

10-19-2009, 03:20 PM
|
|
Community Liaison
|
|
Join Date: Oct 2004
Location: Ohio
Posts: 1,553
|
|
If you know the IP's just do apf -d IP# for each and forget it.
|

10-19-2009, 05:48 PM
|
|
Web Hosting Master
|
|
Join Date: Feb 2006
Location: Buffalo NY
Posts: 1,147
|
|
Assuming it's Linux based:
Code:
iptables -A INPUT -s 1.2.3.4 -j DROP
__________________
█ Cody R. - Chief Technical Officer
█ Quality Shared and VPS Hosting
█ Hawk Host Inc. Proudly serving websites since 2004
█ PHP 5.3 & PHP 5.4 Support!
|

10-19-2009, 06:02 PM
|
|
Web Hosting Master
|
|
Join Date: Feb 2004
Location: USA
Posts: 1,569
|
|
|

10-19-2009, 06:05 PM
|
|
Web Hosting Master
|
|
Join Date: Jul 2009
Posts: 1,493
|
|
Quote:
Originally Posted by chasebug
I block them in htaccess but their repeated attacks is making my server load crazy.
I installed AFP but it doesn't do anything, where do I set rules on automatic blocking?
|
If the IPs are similar, block the IP using route:
route add IPADDR reject
where, IPADDR is the IP address of the attacker.
'reject' install a blocking route, which will force a route lookup to fail.
|

10-19-2009, 08:10 PM
|
|
******* Unleaded
|
|
Join Date: Feb 2004
Posts: 3,788
|
|
Have you traced back the ip addresses to find out who they belong to?
Once you know who manages the ip blocks, you need some logs. Write to the abuse and noc addresses for the company who has been assigned those addresses. Explain briefly and accurately what is happening and that it is coming from machines within their ip space and ask them to please attend to it. They will probably ask for logs. It may take some days, but in most cases they will determine whether the source machine is compromised or run by a rogue operator and take the appropriate action.
|

10-19-2009, 08:29 PM
|
|
WHT Addict
|
|
Join Date: Sep 2008
Posts: 158
|
|
Install csf + lfd and block the ip using the command csf -d <IP>
|

10-19-2009, 08:45 PM
|
|
Web Hosting Master
|
|
Join Date: Aug 2008
Location: Vancouver, Canada
Posts: 651
|
|
Quote:
Originally Posted by CodyRo
Assuming it's Linux based:
Code:
iptables -A INPUT -s 1.2.3.4 -j DROP
|
Yes, I would recommend using iptables as well.
__________________
█ Tailored VPS offers fully customizable VPS Hosting
█ Powered by OpenVZ | Servers located in the USA | 99.9% Uptime
|

10-20-2009, 02:46 AM
|
|
Web Hosting Master
|
|
Join Date: Apr 2009
Posts: 1,320
|
|
Using apf -d IP# to block IP now.
Is iptable better and why is it better?
|

10-20-2009, 03:06 AM
|
|
Web Hosting Master
|
|
Join Date: Jul 2009
Posts: 1,493
|
|
Quote:
Originally Posted by chasebug
Using apf -d IP# to block IP now.
Is iptable better and why is it better?
|
APF and CSF firewalls use iptables itself. These firewalls have made it easy to deal with blocking IPs on different criteria and various alerts for people those who are not use to with iptables.
|

10-20-2009, 09:08 AM
|
|
Heaven is a Beach and a Girl
|
|
Join Date: Jan 2004
Posts: 1,183
|
|
Install csf and use rate limiting to try to block/cease this.
|

10-20-2009, 09:22 AM
|
|
Support Facility
|
|
Join Date: Jun 2009
Posts: 2,318
|
|
Yes, get install the csf firewall and try using the command given below,
# csf -d IPaddress
|

10-20-2009, 11:36 AM
|
|
Web Hosting Master
|
|
Join Date: Apr 2003
Location: NC
Posts: 2,911
|
|
If you do install either APF or CSF don't use the direct iptables commands, as soon as you restart the firewall (which happens daily) the rules will be lost. For just blocking the IP like you want either will be just fine.
If properly setup apf -d or csf -d should be blocking it. If it is not then something is probably setup wrong or your kernel may not support all of the required iptables modules.
I would also suggest contacting the abuse dept for those ips, that may help depending on what country they are in.
|

10-20-2009, 04:13 PM
|
|
Newbie
|
|
Join Date: Oct 2009
Posts: 6
|
|
You might also want to throttle the ips
lists.netfilter.org/pipermail/netfilter/2006-April/065456.html
|

10-20-2009, 05:17 PM
|
|
Disabled
|
|
Join Date: Apr 2009
Location: England, UK
Posts: 643
|
|
I've alway's use the apf firewall on all 3 of my server's and it does a good job as Chris said apf -d iphere to block the the ddos'er 
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
|
Requests
:
|
Brushed-Red |
Design Offers |
2 |
11-21-2008 11:05 AM |
|
Requests
:
|
redeyejedi |
Design Offers |
0 |
11-19-2008 03:06 PM |
|
Requests
:
|
simplyg123 |
Design Offers |
0 |
11-17-2008 12:47 AM |
|
Requests
:
|
CallumBellamy |
Design Offers |
0 |
11-05-2008 09:38 AM |
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
| Postbit Selector |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
| Login: |
|
|
| Advertisement: |
|
|
| Web Hosting News: |
|
|
|