How to Enable Firewall (UFW) in Ubuntu
Introduction:
Enabling the firewall in Ubuntu with UFW (Uncomplicated Firewall) is a simple way to protect your server from unwanted access.
Step-by-step Guide:
- Install UFW (if not already installed):n
- sudo apt update
- sudo apt install ufw
- Enable UFW:n
- sudo ufw enable
- Allow SSH (so you don’t get locked out):n
- sudo ufw allow ssh
- Check UFW status:n
- sudo ufw status
- Allow other ports as needed (example for HTTP):n
- sudo ufw allow 80/tcp
Recommendations:
- Only allow necessary ports.
- Regularly check firewall status for security.
Call To Action:
Need a secure VPS for Ubuntu? Try our plans now! https://xernode.com/#pricing