Lion Cipher Lab

Set up a pfSense firewall in a lab (a real network gateway you own)

Why it matters

Every home, office, hospital, and data center that reaches the internet has a box at the edge that decides what traffic may cross between the inside and the outside. That box is a network FIREWALL and GATEWAY, and pfSense is one of the most widely used ways to build one -- it is free, open-source software that turns a plain computer (or a VM) into a full-featured firewall/router. This is a different animal from the host firewalls you may have met (ufw or nftables), which guard a SINGLE machine's own traffic. A network firewall sits between whole networks: on one side the WAN (the untrusted…

What you'll learn

Steps in this lab

  1. First: this is YOUR lab, and the client is sealed behind the firewall
  2. The words you need first: firewall, gateway, WAN/LAN, interface, rule, default deny, DHCP, DNS, NAT, segmentation
  3. Install VirtualBox (the free hypervisor) on your own machine
  4. Download the FREE pfSense Community Edition installer
  5. Build the two isolated virtual networks and create the pfSense VM
  6. Install pfSense onto the VM
  7. Let pfSense assign WAN and LAN, and note the LAN address
  8. Create the client VM behind the firewall and let DHCP give it an address
  9. Open the pfSense web interface from the client and finish first-time setup
  10. How pfSense reads rules: first match, per interface, implicit default-deny
  11. Write a default-deny LAN policy that allows only what you need
  12. Prove it: from the client, show an allowed rule passes and a blocked rule blocks
  13. What you built, how to keep it, and where to go next

Open the full interactive lab →