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

Posted December 5, 2019 845 views

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?

edited by bobbyiliev

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.

Submit an Answer
1 answer


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
  • 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!