PaloAltoNetworks / terraform-aws-swfw-modules

Terraform Reusable Modules for Software Firewalls on AWS
https://registry.terraform.io/modules/PaloAltoNetworks/swfw-modules/aws
MIT License
14 stars 11 forks source link

feat: Introduce Client IP Preservation for NLB Target Groups #60

Closed acelebanski closed 4 months ago

acelebanski commented 4 months ago

Description

This PR adds preserve_client_ip attribute to NLB Target Group in nlb module and enables this option in relevant examples (centralized only so far). This option is disabled by default for TCP & TLS target groups, enabled by default for others.

Motivation and Context

Sometimes you need to see the original client's public IP address when filtering inbound Internet traffic on the firewall, in order to apply IP-based policies (e.g. geo-restriction). By default you see private IPs from the NLB subnet as the traffic source.

How Has This Been Tested?

Local deployment of the code and testing of the traffic flows.

Types of changes

Checklist