No history yet

Centralized Egress Filtering

Transcript

Beau

Okay, so, picking up where we left off... we've got our users logging into their WorkSpaces from London, from Tokyo, from New York, all hitting their local domain controllers. Super fast, super clean. That's sorted. But now... what can they actually *do* from those desktops? Where can they go?

Jo

Exactly. And that's the multi-trillion dollar question for any regulated company, right? It's not just about letting them *out* to the internet; it's about controlling that exit with surgical precision. We can't have 1,200 investment professionals just... browsing freely. The compliance and security implications are enormous.

Beau

So we need a firewall. A big one. But... where? Do we put a firewall in every single region? That sounds like a management nightmare.

Jo

That's the classic distributed model, and you're right, it's a huge headache. Imagine trying to keep policies synchronized across a dozen firewall clusters. Instead, we centralize. We create a dedicated 'Security VPC' in one primary region.

Beau

A Security VPC... okay, I'm picturing a digital fortress. So all the internet traffic, from all those global WorkSpaces, gets funneled into this one single location for inspection?

Jo

Precisely. And the key to making that happen is the AWS Transit Gateway. The TGW acts like a central cloud router, connecting all our regional WorkSpaces VPCs and our new Security VPC.

Beau

Right, the TGW. But how do you force traffic to go through the firewall? Normally traffic just wants to find the quickest route out. How do you, like, hijack it?

Jo

That's where the magic is. We use two things: a Gateway Load Balancer, or GWLB, and a special TGW setting called 'Appliance Mode'. Think of it this way: inside our Security VPC, we have our Palo Alto firewalls. The GWLB sits in front of them, looking like a single, highly-available target.

Beau

So the GWLB just spreads the traffic across multiple Palo Alto instances? For redundancy?

Jo

Yes, but it's more clever than that. We create a GWLB 'Endpoint' in each of our WorkSpaces VPCs. Then, in the route tables for the WorkSpaces subnets, we set the default route—the destination for all internet traffic—to point to that local GWLB Endpoint.

Beau

Oh, I see. So a user in Tokyo tries to go to a website. The VPC route table says 'all internet traffic goes to this GWLB endpoint thingy'. That endpoint then zaps the traffic over the TGW to the real GWLB in the Security VPC, which hands it to a Palo Alto?

Jo

You've got the packet flow perfectly. Now, the second piece: symmetric routing. A firewall needs to see both the request *and* the reply to do its job. If the reply comes back a different way and misses the firewall, the connection breaks.

Beau

Ah, because it's stateful. It's tracking the whole conversation. So how do we guarantee the return trip goes through the same Palo Alto instance?

Jo

That's the 'Appliance Mode' on the TGW attachment for the Security VPC. When you enable it, the TGW learns to keep the traffic 'sticky'. It ensures that for any given flow, the traffic will always traverse the same Availability Zone on both the ingress and egress path. This, combined with the GWLB's own flow stickiness, guarantees the packet returns to the exact same firewall it went out through.

Beau

Okay, that... that's a seriously elegant solution. It avoids all the policy duplication, but I bet there are hidden complexities. What about performance? All that traffic hair-pinning across regions must add latency.

Jo

There is a latency trade-off, absolutely. That's the core decision in a centralized vs. distributed design. For a highly regulated firm, the consistency of a single, centrally managed policy set—managed by one tool like Panorama—outweighs the latency cost for general web browsing. Critical, low-latency applications might need a different path.

Beau

And the firewall itself... the Palo Alto. Does it need special configuration for this? I imagine it's not just plug-and-play.

Jo

Right. A key detail is using sub-interfaces on the Palo Alto's network interface. Because the GWLB encapsulates the traffic, the firewall needs to be able to distinguish traffic coming from different zones. We'd have one sub-interface for traffic from the GWLB—our 'untrust' zone—and another for the return traffic going out to the internet—our 'trust' zone. It helps maintain that security separation right on the box.

Beau

Got it. One last thing that always trips me up with VDI... MTU. Maximum Transmission Unit. Does all this encapsulation and routing mess with packet sizes?

Jo

Oh, you've hit on a critical tuning parameter. Yes. The GWLB uses GENEVE encapsulation, which adds a header to each packet. This can cause fragmentation if the packets are already near the standard 1500-byte MTU. For VDI protocols, which can be sensitive to this, you often have to enable jumbo frames on the WorkSpaces instances and throughout the path, and then configure the firewall to handle the fragmented traffic properly. It's a day-two operational task that can sink performance if you miss it.

Beau

So even with this beautiful, automated, centralized architecture... there's still a need to get your hands dirty with the nitty-gritty details of the network path. It never just works perfectly out of the box, does it?

Jo

The architecture gives you the capability and control. The tuning is what delivers the performance. You need both to succeed at this scale.