Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Feb 28, 2013 10:22 pm 
Offline
Newbie

Joined: Thu Feb 28, 2013 10:19 pm
Posts: 3
Earlier today I received a ticket from Linode that my server is "acting as an unrestricted open resolver". Unfortunately I don't know what that means. Here is all the info I have from Linode

Quote:

dportalatin
13 hours ago Hello,

We have received a report of malicious activity originating from your Linode. It appears that your Linode is being used to attack other servers with a DNS amplification attack. We ask that you investigate this matter as soon as possible to determine why this activity is originating from your Linode.

If you were not aware that activity of this nature was originating from your Linode, it is likely that your Linode has been compromised, and you'll want to take appropriate action.

We take the integrity of our network very seriously, and we appreciate your cooperation in investigating this activity. Please keep us updated via this ticket as you look into the issue.

As we cannot allow activity of this nature on our network, we ask that you update this ticket promptly or we may need to power down your Linode to prevent further malicious activity.

If you have any questions or concerns, please let us know!

Regards,
Dolores

dportalatin
13 hours ago Subject: UDP Flood Attack From 173.255.218.204

Our network has been repeatedly attacked from this above marked IP with
UDP attacks. Please take actions to secure this machine, and prevent it
from attacking us (or anyone else). Attached are some truncated logs from
when we were under an attack from this IP.

The IP that was targetted was 208.110.65.133

If it helps, this appears to have been a DNS amplification/reflection attack, where our IP was spoofed to cause your server to send us data we did not request. If possible, please verify that basic precautions have been taken to prevent this type of attack, such as disabling recursion, and rate-limiting. Failing that, you can directly block this one IP, as it will never directly request DNS from your server.

Here is an article that has more information: http://technet.microsoft.com/en-us/secu ... 72393.aspx (more information can be found via google, etc)

If action is being taken to remedy this situation, no reply is necessary. This attack was part of a DDoS comprising over 50,000 other DNS servers being exploited against us in a similar fashion, and is not presently ongoing against our network. Unless it is patched, your DNS server will continue to be used in these attack vectors against other people.
Thanks for your attention and quick resolution of this matter.

Sincerely,
d2jsp.org Email Support



Here is what seems to be the most relevant part:

Quote:
Hello,

The issue is related to you running a DNS server which is acting as an unrestricted open resolver:

$ dig @173.255.218.204 version.bind chaos txt +short
"9.3.6-P1-RedHat-9.3.6-16.P1.el5"

$ dig in a google.com @173.255.218.204 +short
173.194.69.102
173.194.69.113
173.194.69.138
173.194.69.139
173.194.69.100
173.194.69.101

As a result, your Linode is being used is participating in a distributed DNS amplification attack. You'll want to review your DNS server configuration to employ the necessary settings so it is not acting as an open resolver. If you require assistance with this task, we'd encourage you to reach out to our active user community. Many members of the Linode community are seasoned IT consultants and system administrators, and are usually more than happy to help out:

http://www.linode.com/community/

Specifically, our IRC server has over 400 members of the Linode community in there now:

http://www.linode.com/irc/

Please keep us updated on your progress. Thanks in advance!

Regards,
Danny




I have a linode with Kloxo running on it and I use Linode's DNS manager for my DNS stuff. I really have no idea where to start reading to approach fixing this issue. Any help would be greatly appreciated.


Top
   
PostPosted: Fri Mar 01, 2013 5:37 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
You can stop bind by simply running (as root) service named stop. I don't know if Kloxo needs a DNS server running to operate properly; if so, you might want to look at these threads on their support forum for help in proper configuration.


Top
   
PostPosted: Fri Mar 01, 2013 1:50 pm 
Offline
Senior Member
User avatar

Joined: Wed Mar 17, 2004 4:11 pm
Posts: 554
Website: http://www.unixtastic.com
Location: Europe
Well done to Linode for responding to this complaint.

Secondly 173.255.218.204 is resolving DNS for the whole internet. This really isn't a good idea and if you don't need to serve your own DNS it's a good idea to shutdown bind and set /etc/resolv.conf to use Linode's or Google's DNS servers.

Also you have the following ports open:
21/tcp open ftp
22/tcp open ssh
25/tcp open smtp
53/tcp open domain
80/tcp open http
110/tcp open pop3
143/tcp open imap
443/tcp open https
993/tcp open imaps
995/tcp open pop3s
3306/tcp open mysql
7777/tcp open cbt
7778/tcp open interwise

You should improve your firewalling. You really should not be exposing mysql.

pop and imap both pass passwords over the internet unencrypted. You should not use them.

ftp is allowing anonymous connections although they don't seem to be able to access anything or upload files.

qmail? Who uses that anymore?


Top
   
PostPosted: Fri Mar 01, 2013 7:04 pm 
Offline
Newbie

Joined: Thu Feb 28, 2013 10:19 pm
Posts: 3
Thanks Sednet and Vance, I will give it a go


Top
   
PostPosted: Fri Mar 01, 2013 9:57 pm 
Offline
Newbie

Joined: Thu Feb 28, 2013 10:19 pm
Posts: 3
I have run

Code:
service named stop


and that worked fine

Also the contents of /etc/resolv.conf is

Code:
search members.linode.com
nameserver 74.207.241.5
nameserver 74.207.242.5



Which is linode's DNS

Do I have to do anything to make sure Bind doesn't restart when the server restarts?

Apart from the other recommendations from sednet, which I am going to do, do I have to do anything else?


Top
   
PostPosted: Fri Mar 01, 2013 11:51 pm 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
You can tell CentOS not to start bind by running (as root) chkconfig named off. Kloxo may try to start it anyway; this is one of the hazards of control panels.

You can remove bind from your system with yum remove bind bind-chroot, which will prevent it from running entirely. I don't know if Kloxo will cope well with this or not.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group