Firewall configuration / DONE
configuring and managing the firewall restricting access to ports
Important: Actions must be performed under the root user
Connect to your server via SSH
Install ufw using the package manager:
UFW - firewall configuration utility is needed for simplified configuration of server network access rules
Add your IP for SSH access to the server (SSH port 22 by default) open port 22 for SSH access if you have a different port, replace the number 22 with your value:
or if you have a static IP address, it is better to restrict SSH access to your IP. see insturctions
Allow http/s 80,443 port ( see instructions )
Enable UFW
Last updated