Overview of Public Subnet Filtering/Ingress Gateway

Public Subnet Filtering Gateways (PSF gateways) provide both Ingress and Egress security for AWS public subnets where instances have public IP addresses. It includes two parts: Ingress filtering via GuardDuty enforcement and Egress FQDN.

The Public Subnet Filtering function is described in the diagram below.

public_subnet_filter

Ingress protection via GuardDuty enforcement is a feature where Aviatrix Controller periodically polls the AWS GuardDuty findings and blocks the malicious source IP addresses from attacking the public subnet instances by programming stateful firewall rules in the filtering gateway.

Egress FQDN is an existing FQDN feature applied to the public subnets. Previously, this feature was only available to filter egress traffic initiated from instances in the private subnets.

Deploying a Public Subnet Filtering gateway

Follow the workflow below.

Launching a Public Subnet Filtering Gateway

  1. In the Aviatrix Controller, navigate to Security > Public Subnet > Add New.

  2. Fill in the fields as shown in the below table.

Setting Value

Cloud Type

AWS

Gateway Name

Input a unique gateway name

Account Name

Select the Access Account

Region

Select the AWS region

VPC ID

Select the VPC in the chosen AWS region

Unused Subnet

Aviatrix Controller creates a public subnet and creates a route table associated with the subnet to launch the filtering gateway

Gateway Size

Select an instance type

Route Table

Select a route table whose associated public subnets are protected.

  1. Click Create.

After the PSF gateway is launched, Ingress traffic from IGW is routed to the gateway in a pass through manner. Egress traffic from instances in the protected public subnets is routed to the gateway in a pass through manner.

Enabling GuardDuty Enforcement

  1. In the Aviatrix Controller, navigate to Security > AWS GuardDuty.

  2. Select an Access Account and AWS Region.

  3. Click Actions > Enable.

Once GuardDuty is enabled, malicious source IP addresses attacking instances in the public subnets in the region will be polled by the Controller. The Controller then programs rules into the filtering gateway to drop these packets.

if you enable AWS GuardDuty without launching the PSF gateway, GuardDuty does not have enforcement functionality.

Enabling Egress FQDN

Once the PSF gateway is launched, you can configure the FQDN feature.

In the Aviatrix Controller, navigate to Security > Egress Control and follow the instructions in the FQDN workflow.

Viewing Blocked Malicious IPs

After the filtering gateway is launched and AWS GuardDuty is enabled from the previous steps, view blocked malicious IPs by going to Security > Public Subnet. Highlight the PSF gateway and click Actions > Show Details. Scroll down to the Blocked Malicious IP List.

Public Subnet Instances and FQDN

When you enable FQDN filtering for public subnets, packets initiated from the instances on the public subnet do not get NATed when going through FQDN filtering gateway, and the source public IP address of a public subnet instance is preserved.