Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 587 Bytes

File metadata and controls

37 lines (25 loc) · 587 Bytes

Lab 2: Firewall Rule Examples

Objective

Practice creating and applying firewall rules using different methods.

Examples

Example 1: Block a specific IP

sudo ufw deny from 192.168.1.100

Example 2: Allow traffic to a specific port

sudo ufw allow 443/tcp

Example 3: Limit SSH connections

sudo ufw limit ssh

Example 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.