Lion Cipher Lab

Control outbound traffic with a Squid egress proxy

Why it matters

Most networks are wide open on the way OUT. Firewalls are configured to keep bad traffic from coming IN, but by default they let a host talk to anything on the internet. That default is exactly how an intrusion turns into a breach: malware 'phones home' to a command-and-control (C2) server to get instructions, and stolen data is exfiltrated out to an attacker-controlled endpoint. Both are OUTBOUND connections. Egress control flips the default from allow-anything to default-deny: a host may reach only an approved list of destinations, and everything else is refused and logged. A forward proxy…

What you'll learn

Steps in this lab

  1. What egress control is, and why a forward proxy is one way to do it
  2. When a proxy is the right tool for egress — and when it is not
  3. Stand up a disposable Squid forward proxy in Docker
  4. BEFORE: measure egress — two arbitrary sites are reachable
  5. AFTER: write the allowlist — an allowed-domains file and a dstdomain ACL
  6. AFTER: measure egress again — only the allowlisted domain gets through
  7. PROVE it and read the evidence: access.log
  8. The hard limits — and why a proxy is never the whole wall

Open the full interactive lab →