Question

How come sftp to port 22 is allowed if I have set DO Firewall for Droplet to block all?

I set firewall to my droplet to block all inbound.

However, I am still able to connect sftp port 22

This is not logical. Is the droplet firewall a firewall or is it not a firewall?


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello,

I’ve just tested this and it seems to be working as expected.

Note that you need to make sure that you add the droplet that you want to protect to your firewall. So to do do the following:

  • Go to your Control Panel at https://cloud.digitalocean.com/
  • Then go to Networking
  • Then click on Firewalls
  • After that click on your Firewall
  • Click on Droplets and hit the Add Droplet button
  • In the search box, type the name of your Droplet and click add

That way you would assign your Droplet to your Firewall and your firewall rules would be activated.

Hope that this helps! Regards, Bobby