ubuntu firewall code example
Example 1: firewall status on ubuntu
$ sudo ufw status
[sudo] password for linuxconfig:
Status: inactive
Example 2: enable ufw ubuntu
sudo ufw enable
Example 3: allow ip through ufw
sudo ufw allow from 15.15.15.0/24 to any port 22