DEV Community

Cover image for If you own a domain, you need to setup ....
ANISH ARAZ
ANISH ARAZ

Posted on

If you own a domain, you need to setup ....

Cloudflare has a free plan account, and it provides a lot of features in the free plan. If you already use Cloudflare, do not worry; I assure you will find this blog useful; if not, you surely will. If you need help in any of the cloudflare setup contact me on

Features to use.

  1. Use a cloudflare tunnel to host your website from your local infrastructure.
  2. Use cloudflare for your domain to protect from DDoS attack and Hide real server IP
  3. Create an email address from your domain. eg admin@example.com
  4. and a lot more...

Setup

  1. Create a Cloudflare account.
  2. Change your domain nameserver to cloudflare. and DONE

We shall talk about 2 specific things in this blog. Tunnel and How Cloudflare Protects from DDoS Attack and Hides Real Server IP.

Cloudflare Tunnel

Image description

Cloudflare connects to your infrastructure from their infrastructure using TCP Tunnel technology. So you do not need a public IP address, just your infrastructure should be connected to the internet, and it will work.

cloudflare have very clear docs for getting started check it out.
https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/

Protection from DDoS attacks and hiding real server IP.

Cloudflare uses a TCP proxy server, which receives requests from clients and forwards the request to the real server. It forwards requests and responses back and forth, hiding the real ip of the server.

Image description

When creating the DNS record remember to turn on this proxy button and you will be good to go

Image description

Clonclusion

Cloudflare is awesome and free; make use of it. If you need any setup help in any part, react me out on twitter

Top comments (0)