Thanks Matt. OK, I will modify as follows:Originally Posted by Matt
===========
Subject: How to close CPanel security hole of Open DNS Zonetransfers
Message:
1. Determine if you are vulnerable to this exploit. Go to
http://www.dnsreport.com/
Run a test on your domain(s). If you see a huge RED entry that says "Open DNS Servers", then you are vulnerable and this How To applies to you.
2. Get a list of your ip addresses. To do that, open WHM, scroll down almost to the bottom left pane until you see "IP Functions". Then click on IP Address usage. On a separate notepad, mark down all IP Addresses that have a domain (or multiple domains) attached to it. In my case, I have a database server attached and it has an IP Address starting with 192.168, which indicates it an internal IP Address. Do NOT mark that IP Address if you are in a similar situation to me. (I'm not saying that it will hurt you, but I don't think it will help you.)
Let's assume for the sake of argument that the following are your IP Addresses:
123.123.123.4
123.123.123.5
123.123.123.6
I will use those IP Addresses as an EXAMPLE later on. Make sure to replace the above EXAMPLES with your actual IP Addresses.
3. SSH as root into your server.
4. cd /etc
5. cp named.conf named.backup
6. Using your favored editor, edit named.conf.
7. Right on top of the page you should see
DIRECTLY BELOW that line, type thiscontrols {
inet 127.0.0.1 allow { localhost; } keys { "rndckey"; };
};
8. Go back to http://www.dnsreport.com/ and run another test. If the red section is gone, you have correctly fixed this problem. Well, hopefully your domains will continue to resolve too// Restrict Zones transfer
allow-transfer {
123.123.123.4
123.123.123.5
123.123.123.6
};
// Restrict Recursion
allow-recursion {
123.123.123.4
123.123.123.5
123.123.123.6
};
*NOTE: Your server will still perform reverse DNS lookups from your cache, thus not *fully* eliminating the problem... Aside from a bugzilla fix, this can't be helped right now. (I have no idea what I just said but Matt suggested this note so if you understood it, you know better than me)
===============
I agree. Editing multiple IP Addresses sucks. But I didn't understand how to make the "trusted" ACL concept works. If you tell me which item number to modify and what it should say, I will either change it, or make both versions available and post the How To.Originally Posted by Matt
Again, your help was much appreciated as I felt lost and out of my league![]()



LinkBack URL
About LinkBacks








