Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have an Ubuntu 10.04 based dedicated server with LAMP installed. I host several websites, but for now all websites are on same IP, configured using Apache Virtual Hosts.

Everyone can attack my server since they can get my server's IP. I want to protect it with CloudFlare, but then I think I need to setup my server differently, possibly involving DNS. How to do that?

share|improve this question

closed as not a real question by Michael Hampton, MDMarra, John Gardeniers, mdpc, Ward Feb 17 '13 at 4:45

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
I'm sorry, this doesn't make very much sense to me. What does "everyone can attack my server, etc by getting IP" mean and why would cloudflare prevent that? Can you clarify? People knowing your IP isn't some kind of security risk, in fact, it's necessary for connectivity. –  MDMarra Feb 17 '13 at 1:33
    
Did you try following CloudFlare's directions? –  Michael Hampton Feb 17 '13 at 1:54
    
@MDMarra Cloudflare is a CDN service that offers some (d)dos protection features. He would point his domain name to cloudflare instead of his own server and with that obfuscate/protect his setup. –  Mxx Feb 17 '13 at 2:34
    
Right, my question to him wasn't "how can cloud flare prevent dos" it was "why do you think people knowing your IP is a problem" –  MDMarra Feb 17 '13 at 2:59

1 Answer 1

up vote 2 down vote accepted

To use CloudFlare, there is only one thing you need to change on your end - use CloudFlare's nameservers rather than your domain registrar's or your own. CloudFlare will give you their name servers and you replace your NS records with CloudFlare's domain server. You will do this most likely in your domain registrar's control panel. Your server setup will remain the same, and you won't change your IP address. But CloudFlare's name server will return a different IP for your domain or site. In other words, web requests to your site will first go to CloudFlare's servers and they will do source IP screening, caching(static content only) and other things: this is mainly to prevent DDOS attacks and speedup fetch time for your sites. Please read this link, it will provide you with the information you need.

share|improve this answer
    
Thanks. I asked really stupid question. I didn't thinked about that. Thanks for explaination. –  xZero Feb 22 '13 at 1:44

Not the answer you're looking for? Browse other questions tagged or ask your own question.