Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 776 Bytes

File metadata and controls

42 lines (27 loc) · 776 Bytes

Lab 1: Basic Firewall Setup

Objective

Set up a basic firewall on a virtual machine or network device to control incoming and outgoing traffic.

Requirements

  • Virtual machine (Windows/Linux) or physical device
  • Firewall software (e.g., iptables, pfSense, UFW)

Steps

  1. Install firewall software (if not built-in).
  2. Verify current firewall status:
sudo ufw status

Enable firewall:

sudo ufw enable

Allow essential services (e.g., SSH, HTTP):

sudo ufw allow ssh
sudo ufw allow http
  • Deny all other incoming connections by default.

  • Test firewall rules by attempting connections from another device.

Expected Outcome

  • Only allowed services are accessible.

  • Firewall blocks unauthorized connections.