UFW
sudo ufw status numbered
Status: active
To Action From
-- ------ ----
[ 1] 22/tcp ALLOW IN Anywhere
[ 2] OpenSSH ALLOW IN Anywhere
[ 6] 22/tcp (v6) ALLOW IN Anywhere (v6)
[ 7] OpenSSH (v6) ALLOW IN Anywhere (v6)
sudo ufw app list
full list available at/etc/ufw/applications.d
sudo ufw enable
sudo ufw disable
sudo ufw reload
sudo ufw allow ssh
sudo ufw allow 'Nginx Full'
sudo ufw allow 443/tcp
sudo ufw allow from 192.168.1.1 port 22
sudo ufw allow proto tcp from 192.168.0.1 to any port 22
sudo ufw delete 7
Deleting:
allow OpenSSH
Proceed with operation (y|n)? y
Rule deleted (v6)
sudo ufw logging on
sudo ufw logging off
sudo iptables -S
Page Source