What UFW rules do I need to setup for internal Digital Ocean Servers

October 6, 2018 524 views
Firewall Ubuntu 18.04

I recently enabled UFW and am now seeing a lot of blocks on it. What default servers specific to Digital Ocean do I need to setup?

1 comment
  • You're seeing crawlers and bruteforcers hitting your box, it's normal and as long as you're using key authentication, there's not much to worry about.

1 Answer

This is kind of an open ended question which really the answer is you only need to open the ports you intend to use.

For example you will want port 22 open to communicate with your droplet via SSH. If you change your ssh default port you will need to update UFW to reflect that change.

Second you will need to open ports for services you intend to offer. ie. web and web ssl you will need ports 80 & 443 open respectively.

Have another answer? Share your knowledge.