- 1
sudo ufw enable //enable the firewall
sudo ufw status //show status
sudo ufw logging on //for logs
sudo ufw allow from <ip address>
sudo ufw deny from <ip address>
sudo ufw allow 22
sudo ufw deny 22
ufw default deny incoming
ufw default allow outgoing
sudo ufw status //show status
sudo ufw logging on //for logs
sudo ufw allow from <ip address>
sudo ufw deny from <ip address>
sudo ufw allow 22
sudo ufw deny 22
ufw default deny incoming
ufw default allow outgoing
comment
save
share
facebook
twitter
google