Firewall Ubuntu - FIPost/docs GitHub Wiki
Creating or editing a Ubuntu Firewall
Right now SSH(port 22) is only active for certain ip addresses. Port 80 HTTP and port 443 HTTPS are active for all.
Enabling
sudo ufw enable
Get a list of all active rules
sudo ufw status
Response
443 ALLOW Anywhere
80 ALLOW Anywhere
22 ALLOW 12.34.56.78
443 (v6) ALLOW Anywhere (v6)
80 (v6) ALLOW Anywhere (v6)
Add a ip address for SSH
Go to https://www.google.com/search?q=whats+my+ip to find your IP address.
Replace 12.34.56.78 with your IP.
sudo ufw allow from 12.34.56.78 to any port 22