LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 03-04-2013, 09:40 AM   #1
hesisaboury
Member
 
Registered: Dec 2010
Location: iran
Posts: 199

Rep: Reputation: 0
Bind send too much Traffic


hello,
i have a bind server (v9) for my mail server , for last 2 days , it send too much traffic , i tried drop requests from ips that send requests , it was good but is temporary solution . named process gets 10 to 15 percent of cpu , also i set these option on bind
clients-per-query 2;
max-clients-per-query 3;

but it was not helpful ;
help suggestion ..
 
Old 03-04-2013, 09:48 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
What ARE the requests? BIND has to process a request to a given extent to know if should process it, so that can only ever help so much. sounds like you might want to just use the limit module in iptables to block dns floods

http://falkhusemann.de/blog/2012/07/...th-burst-rate/
 
Old 03-05-2013, 05:36 AM   #3
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
You can use limit modules to control number of dns request your server can accept .

You can also use hashlimit module to limit request from a particular ip .

Did you enabled recursion in your named configuration ?

Thanks
 
Old 03-05-2013, 08:09 AM   #4
hesisaboury
Member
 
Registered: Dec 2010
Location: iran
Posts: 199

Original Poster
Rep: Reputation: 0
Thanks All
for info ,it was DNS Amplification Attack
i set in named .options
recursive-clients 5;
allow-recursion { any; };
allow-query {any;};
clients-per-query 1;
max-clients-per-query 3;
transfers-per-ns 2;
transfers-in 3;
transfers-out 3;


and also install failed2ban for bind (port 53)
till now every thing goes OK..

Last edited by hesisaboury; 03-05-2013 at 08:13 AM.
 
Old 03-07-2013, 12:03 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by hesisaboury View Post
for info ,it was DNS Amplification Attack
The .options limiting you did looks good to me but if you search this forum you'll find some recent threads about DNS amplification attacks this including links to NS best practices like CYMRU's ISC BIND templates, etc, etc. (Additionally this provides a nice write-up.) Just saying because there's a difference between utilizing ISC BIND as a caching name service for say only LAN clients and exposing it publicly, being the authoritative name server for domains. In the first case
Code:
allow-recursion { any; };
is useful, in the latter it is not. *Reading those docs you could conclude the iptables limit module may be helpful, only as an additional measure, because using it does not address the core problem.
 
  


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
Send traffic from one application out a specific interface? xamindar Linux - Networking 6 08-08-2011 06:22 PM
How to send all traffic from wlan0 through eth0? mobax Linux - Networking 5 12-14-2010 05:37 PM
iptables: send all incoming traffic to virtual machine jonaskellens Linux - Newbie 3 06-23-2009 02:22 PM
Intruder using SMTP to send traffic while port 25 closed flashl Linux - Security 17 09-03-2008 07:38 AM
Low send traffic in Fedora Core 3 Skull Linux - Networking 1 08-26-2005 04:09 AM

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

All times are GMT -5. The time now is 10:01 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