1865 Views

Security

Securing Your Server with Firewall

Configure UFW or iptables to protect your server

Firewall Configuration

Using UFW (Ubuntu):

ufw allow 22/tcp\nufw allow 80/tcp\nufw allow 443/tcp\nufw enable

This allows SSH, HTTP, and HTTPS while blocking other ports.