Report this

What is the reason for this report?

firewall - how to block all incoming traffic except from 1 website? working example please

Posted on July 25, 2019

not sure how to do this been looking for hours and I do not see 1 example …I would think this to be a normal frequent question. I only need my website which is hosted on another place to access my digitalocean droplet. I am sure it can be done easily enough in the digitalocean fire wall but I have had zero luck with my testing?



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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hey there @support2bd6f6efeefcc3c0033,

Our product docs have a great section on creating custom rules in our cloud firewall. You can use these to allow traffic through a specific port or from a specific IP.

In your situation, if you wanted to permit all traffic from a single IP, simply create the custom rule as the custom type with the port range left blank and in the source simply put the IP of the server you’d like to permit through.

https://www.digitalocean.com/docs/networking/firewalls/how-to/configure-rules/#custom-rules

Hope that helps! - Matt.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.