Question about GWLB in a typical inspection VPC deployment

Given a you deployed a typical inspection VPC attached to a TGW for east-west traffic, is there anything that would prevent traffic from being successful between a security appliance in one AZ establishing and using a GENEVE tunnel in another AZ?

For instance, traffic comes from TGW on AZ1 and hits the GWLB VPCE in AZ1, this is then routes to the appliance in AZ2 and back to the GWLB VPCE in AZ1 and back to the TGW.

This is causing me issues and I have both cross zone load balancing turned on as well as appliance mode. Single AZ traffic works fine, only breaks when it’s from another AZ. Assuming the appliance is set up correctly.

Ensure your route tables follow this pattern. Appliance Mode on the attachment that contains the appliances is key and does not take effect right away, it can take some minutes to see flows work properly.

Yep, my route tables follow that pattern exactly and I have appliance mode enabled.

For example, if my packet arrives from the TGW in AZ1 it is routed to the VPCE in AZ1 and the same pattern so for AZ2. Each AZ’s routing is contained within itself

Is this all in the same/one account? Do you have TGW attachments in “both” AZs? Also review points 2 and 3 of this blog to ensure you’re set up properly.

Ah, yeah, I was looking at that blog earlier.

All of this is in one account. My deployment is like the below:

  • Inspection VPC in two AZs.
  • Each AZ has a transit subnet that is for the TGW attachment ENIs, a GWLB subnet that has the VPCE, a private subnet for the appliances and a public subnet for Nat gateway.
  • I have one TGW attachment connected to the inspection VPC and is associated with both AZs (tgw subnets). Appliance mode enabled.
  • route table in TGW subnets points to the VPCE in the GWLB subnet in the respective AZ.
  • the VPCEs are created for a single GWLB (service).
  • the GWLB is associated with the private subnets of both AZs and has cross zone enabled.
  • I have one appliance deployed in each AZ (private subnet) and both are members of the target group used by the GWLB.
  • each appliance has a 2 GENEVE tunnels created. One for each of the VPCEs (both AZs) to allow for cross zone load balancing in the event packets are coming through a different AZ than the appliance.

I also want to add that EVERYTHING works perfectly fine when both appliances are up but it breaks when I take one down.

I also want to add that EVERYTHING works perfectly fine when both appliances are up but it breaks when I take one down.

This part is interesting. Take a look at what you have set for Target Failover on the GWLB’s Target Group attributes (see here for more information on that relatively new-ish feature).

It should be noted that it doesn’t look like cross zone is working because in the scenario where both are up, they only receive traffic from the GWLB ENI in their AZ and not the other AZ. My understanding is that they should get traffic from both when cross zone is on.

So in normal operation, only one of the GENEVE tunnels is receiving and handling traffic on each firewall with the other not getting anything.

I had experienced same stuff with cross load not working as expected with GWLB and Palos, so we concluded that you must have at least on FW per Az running 24/7 to ensure traffic works without drops

Not ideal if true. I don’t understand why it wouldn’t work cross AZ

Was able to get cross zone and failover with a single appliance per AZ. So, it’s possible from an AWS perspective