LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-27-2012, 12:38 PM   #1
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Rep: Reputation: 3
IPTABLES Rate Limit


Well, I was having Ddos attack from multiple IP's on probably 3 of my machines one of which is CentOS and two are Debian. I had added rate-limiting to my rules to protect it but I just observed its not working and server is making 1mb/s output easily.


All systems were on OpenVZ running 2.6.18 kernel.

On all systems iptables version was 1.4.5+. I downgraded to 1.3.5 with RPM on CentOS machine and iptables started working easily. Now I need an answer to why they didn't work on later versions? Is it something related to version compatibility with the kernel?

Now I can't find any deb files for Debian so I want someone to help me out with the file on Debian so that I can dpkg -i the package and try it out on Debian too, please help.

Thanks!
 
Old 02-27-2012, 01:27 PM   #2
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Well, I don't have an answer for you, but I did have a look through the release notes, and I didn't see anything even vaguely like "completely changed the syntax for rate limiting to cure ...". Now, maybe there is something there, but it didn't jump out...maybe beyond 1.4.5, maybe it was there but wasn't all that obvious, but I didn't really find anything, not that this was such a big surprise.

If something doesn't come up here, you may be better trying the mailing list at netfilter, as this could be quite a specialised question.
 
Old 02-28-2012, 01:47 AM   #3
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Original Poster
Rep: Reputation: 3
Yes I mailed them about it and also submitted that in BugZilla.

Could anyone provide Debian binary package for iptables 1.3.5 so I can downgrade there too?

Searched a lot but cant find it.
 
Old 02-28-2012, 10:15 AM   #4
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Original Poster
Rep: Reputation: 3
Update :

Updating Debian to Debian 6 and iptables 1.4.8, easily blocked the attack.

Why would Debian 5 running same version wont block it?

Or is it that the attack is already blocked but iftop is not showing it?
 
Old 03-16-2012, 02:10 AM   #5
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Original Poster
Rep: Reputation: 3
Not a bug in iptables.

More of something mysterious:

http://www.linuxquestions.org/questi...k-ddos-931931/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
what should be limit to use for IPTABLE rate limiting for a webserver jamesbon Linux - Security 2 02-04-2011 04:41 AM
tc - limit rate on VPN? qwertyjjj Linux - Server 1 11-08-2010 11:59 AM
How to limit upload rate? fernandomm Linux - Networking 1 05-30-2010 11:26 PM
Rate limit a nic to 1mbit stefaandk Linux - Networking 2 05-25-2007 10:40 PM
How do ISPs limit download rate per user? ganninu Linux - Networking 2 10-22-2003 12:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:11 PM.

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