Practice creating and applying firewall rules using different methods.
sudo ufw deny from 192.168.1.100Example 2: Allow traffic to a specific port
sudo ufw allow 443/tcpExample 3: Limit SSH connections
sudo ufw limit sshExample 4: Check and delete rules
sudo ufw status numbered
sudo ufw delete <rule_number>Expected Outcome
-
Rules correctly block or allow traffic as configured.
-
Confirm rule changes using sudo ufw status.