Please note that for anything you may need to change (port number, IP address,
etc), the
contenteditable
attribute has been added. You may click on this content and edit it as if it
were a text box, while retaining highlight & copy functionalities.
sudo ufw enable
sudo ufw disable
sudo ufw reset
sudo ufw status
sudo ufw status numbered
sudo ufw app list
By default, UFW is set to deny all incoming and allow all outgoing traffic. This is a good starting point
for most users.
To change this, you can use the following commands:
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow 22
sudo ufw allow ssh
sudo ufw allow 6000:6007/tcp
sudo ufw allow 22/tcp
sudo ufw allow 22/udp
sudo ufw delete 1
sudo ufw delete allow 22
sudo ufw logging on
sudo ufw logging off
sudo ufw deny in on eth0
sudo ufw deny from 1.234.31.117
sudo ufw allow 22/tcp from 203.0.113.102 on eth0