By mohsen11071
Hello
What is the best practices to manage the cloud firewall of my droplet . Im using cloudflare , current I restrict inbound traffic to cloudflare Ips .Is it good idea to restrict outbound traffic just only to cloudflare Ips too.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
If you are using Cloudflare you can certainly use their product to create firewall rules which will help to secure your droplet.
However, cloudflare is operating at the DNS layer and then routing requests to your droplet which you will want to secure independently and here are some resources to help you get started:
Using Managed Firewalls https://www.digitalocean.com/docs/networking/firewalls/how-to/configure-rules/
Manually https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu-16-04
You do not want to limit outbound traffic to just Cloudflare as that will actually break your website. Cloudflare just handles the inbound request through DNS and then routes it to your droplet, after that your droplet is communicating directly with the user that created the request. So if you limited outbound traffic to just Cloudflare it would break connectivity for your domains.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.