Allowlist the address the destination sees
How source NAT changes the address a data source sees, and how public NAT gateway routing and Elastic IP selection determine which addresses to allowlist. · associate
A data source can use an IP allowlist to accept connections only from approved source addresses. The important address is the source IP arriving at that data source, not necessarily the address configured on the worker making the connection.
Source NAT changes a packet's source address along its network path. A private worker can therefore connect to an internet data source without exposing its private address as the connection's public source. In a public NAT gateway path through an internet gateway, the data source sees an Elastic IP address associated with the NAT gateway.
NAT tracks connections so replies can reach the originating worker. Several workers can share a public source address, with translated ports distinguishing connections. An IP allowlist therefore identifies an approved network exit, not an individual worker or application user.
AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.