Web Hosting & VPS Tips

Unleash Your Server Potential with Expert Insights

Hosting provided by: Cloudways
Free to Try! Up to 40% Off!

Category: VPS Setup

Use UFW app profiles on Ubuntu—install with
apt install ufw
then list profiles with
ufw app list
—expect \"OpenSSH\" \"Apache\" etc Allow SSH with
ufw allow OpenSSH
Apache with
ufw allow \"Apache Full\"
(ports 80/443) and enable with
ufw enable
Check with
ufw status
—expect \"OpenSSH ALLOW Anywhere\" Create a custom profile in /etc/ufw/applications d/custom with
[Custom]\ntitle=Custom App\ndescription=Custom ports\nports=12345/tcp
then
ufw allow Custom
On DigitalOcean this simplifies MySQL and FTP rules—test with
ufw app info Custom
ensuring uptime with predefined app security

Back to All Tips