Web Proxy / Caching Fundamentals Series

🎓 The Web Proxy/Caching Department's Capstone Project: Turning a Fictional Multi-Site Retailer's Internet Access Infrastructure Into a Portfolio Piece, a "Top 1%" Integrative Exercise

Introduction

This article is part of the Top 1% Series Complete Article Guide. It’s positioned as the capstone project within the Web Proxy/Caching Department’s full curriculum.

Prerequisite Knowledge

This hands-on doesn’t teach new techniques. It combines techniques you’ve already mastered in the following lectures and hands-on labs.

The Challenge: A Fictional Multi-Site Retailer’s Internet Access Infrastructure

You’re an infrastructure engineer at a fictional multi-site retailer, “KoiKoi Retail.” This company operates several stores and offices, but every device connects directly to the internet, creating two problems: growing traffic volume, and no visibility into access patterns. Your assignment is to build, with your own hands, an internet access infrastructure satisfying every one of the following requirements.

graph TB
    subgraph Clients["In-House Devices"]
        PC["A managed PC<br/>(auto-configured via PAC/WPAD)"]
        IoT["An IoT device that can't be reconfigured"]
    end
    subgraph Proxy["Proxy Infrastructure"]
        Auth["Proxy authentication"]
        Cache["Caching (Cache-Control/Vary)"]
        Transparent["Transparent proxy<br/>(iptables intercept)"]
        ACL["ACL (URL control, source restriction)"]
    end
    PC -->|via the auto-configured proxy| Auth
    IoT -->|intercepted transparently| Transparent
    Auth --> Cache --> ACL
    Transparent --> Cache

Requirement 1: Distribute Proxy Configuration to Employee PCs Without Any Manual Setup at All

Make sure every PC across the company uses the same proxy configuration, across several hundred machines, without ever having to configure a proxy address on each one individually.

Requirement 2: Enable Recording Who Accessed Which Site

Introduce a mechanism for identifying the employee behind traffic going through the proxy. Choose a method that never sends the password across the network in plaintext.

Requirement 3: Cache Commonly Used Content While Never Mixing Up Content That Differs by Employee

Give the proxy a caching feature, to reduce traffic volume. But make sure content that should legitimately differ based on a request header’s value, such as a language setting, is never mistakenly served from the same cache.

Requirement 4: Route Traffic Through the Proxy Even From Devices That Can’t or Shouldn’t Be Configured

Route an in-store IoT device’s network traffic through the proxy too, even though it can’t be reconfigured. Never require any individual configuration work on that device.

Requirement 5: Make Sure This Proxy Infrastructure Never Gets Unintentionally Opened to Third Parties

Make sure an outside third party can never abuse this proxy as a stepping stone for an unauthorized access against some other server. Clearly design which range of access is allowed, and how everything else gets handled.

Requirement 6: Restrict Access to Specific Categories of Sites, at the URL Level

Build in a mechanism that restricts access, at the URL level, to specific sites unrelated to work.

Deliverable Requirements: Assemble It as a Portfolio

This hands-on’s final deliverable isn’t just a confirmation that the configuration worked. Assemble the following into a repository, such as on GitHub.

This deliverable is exactly the concrete achievement you can present in a job search or as a portfolio. Simply explaining “I built a proxy with Squid” is far less persuasive than being able to demonstrate that, “under the realistic constraint of a live environment used by several hundred devices, I designed by combining several techniques, and can articulate the trade-off between auto-configuration and cache accuracy.”

What a Pro Sees Here (Top 1% Understanding)

“The Ability to Follow Steps” and “the Ability to Design From Requirements” Are Entirely Different Skills

Every hands-on so far has taken the format of following a fixed set of steps: “Step 1, Step 2…” But what actually gets evaluated in real-world work is never the ability to execute a procedure exactly as written — it’s the ability to design, on your own, which techniques to combine and how, starting from given requirements (what this article calls “Requirements 1 through 6”). These two are entirely different skills, despite looking similar. Even having completed every individual hands-on, without the experience of combining them into one coherent proxy infrastructure design, you’re not yet immediately effective in real-world work. This capstone project is deliberately designed to bridge that gap.

Why This Scenario — “Multiple Sites, Diverse Devices”

There’s a reason this hands-on, rather than being a one-off technical demo, is deliberately modeled on a realistic project — one where “multiple sites and multiple kinds of devices coexist.” Most real-world proxy infrastructure builds never serve a single purpose in isolation — they need to simultaneously satisfy multiple axes at once: minimizing configuration-distribution effort, identifying users, cache accuracy, handling devices that can’t be configured, and defending against abuse. Knowing Squid’s basic configuration alone isn’t enough for a real project — you also need to see through to auto-configuration via PAC/WPAD, a transparent proxy, and open-proxy hardening. The ultimate goal of this capstone project is to elevate your knowledge of individual techniques into the ability to see through an entire proxy infrastructure’s design.

Common Misconceptions and Pitfalls

Troubleshooting Perspective

For this hands-on, design-level rework is the main challenge, more than individual technical troubleshooting.

  1. You think you’ve satisfied the requirements, then later notice a contradiction: Before starting implementation, write up only the design portion of your README.md first, and confirm, at the writing stage, that you’ve satisfied every one of Requirements 1 through 6.
  2. You’ve forgotten the steps from an individual hands-on: Don’t hesitate to go back and reread the linked prerequisite article for each requirement. This capstone tests design skill, not memorization.
  3. You’re not sure how much detail is enough: Use “could I show this README.md to an interviewer I’m meeting for the first time, in a job search, and explain my design decisions?” as your benchmark for completeness.

Summary

Takeaways to Apply Today

  1. Even while learning an individual hands-on, build the habit of asking “under what future requirements would I actually end up using this?”
  2. Beyond technical deliverables, build the habit of articulating the trade-off between auto-configuration and cache accuracy in your day-to-day work too.

References

Comments

Feel free to leave thoughts, questions, or corrections below (sign in with a GitHub account to comment or react).