Enabling an EC2 transparent proxy by disabling source/destination checks
Short answer
A Disable source/destination checks on the proxy EC2 instances so they can forward routed traffic; a gateway instance requires this check disabled.
Question
Key Takeaways
Any EC2 instance that routes or forwards traffic for other instances must have source/destination checking disabled, otherwise the VPC discards packets not originating from or destined to the instance itself.
An EC2 instance deployed as a transparent proxy in a private subnet is configured as the default route but does not forward traffic. Because an instance acting as a network gateway must have source/destination checks disabled, that is the missing configuration.
Common mistake: Assuming the issue is security-group or DHCP/DNS configuration (Options B/C) — those do not address the fact that the instance, as a router, is dropping forwarded packets.
Expert Analysis
Why the Answer Is Correct
Option A disables source/destination checks on the proxy instances. By default, EC2 checks that an instance is the source or destination of any traffic it sends or receives; a transparent proxy forwards traffic for other hosts, so this check must be turned off for the proxy to work.
Why the Other Options Are Wrong
Option B changes security groups but does not allow the instance to forward transit traffic. Option C alters DNS resolution, irrelevant to packet forwarding. Option D adds an ENI but still leaves source/destination checks enabled, so forwarding would still fail.
Community Comment Notes
kejam (likes 9) states proxies like NATs need source/destination checks disabled and links the VPC NAT instance documentation. The vote is A (75) over D (25), though some debated whether an internet route also exists (presumably already configured via NAT/IGW).
Official Reference
https://docs.aws.amazon.com/vpc/latest/userguide/VPC_NAT_Instance.html
This link opens the official vendor documentation in a new tab.
Community Votes
75% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 9 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 9
-
kejam 👍 9 Answered AAnswer A: Proxies like NATs will need SrcDestCheck disabled https://docs.aws.amazon.com/vpc/latest/userguide/VPC_NAT_Instance.html#EIP_Disable_SrcDestCheck
-
ahrentom 👍 2 Answered D"the company deploys a set of Amazon EC2 instances in private subnets to serve as transparent proxies." How could a Proxy in a private Subnet communicate with the Internet? So we need a second network card with connection to an IGW. Anwser D
-
Russs99 👍 2 Answered DWhile disabling security checks might seem like a solution, it's not recommended for production environments as it weakens security. The issue lies in routing, not security
-
0b43291 👍 1 Answered AIn an Amazon VPC, the source/destination check is a security feature that ensures that an instance cannot be used as a network gateway or router to forward traffic between resources. By default, this check is enabled on all EC2 instances. When you want to use an EC2 instance as a transparent proxy or network appliance to forward traffic between resources, you need to disable the source/destination check on that instance. This allows the instance to receive and forward traffic that is not destined for itself. The other options provided would not resolve the issue: Option B (adding a security group rule) would not enable the proxy instances to forward traffic, as the source/destination check is a separate network configuration. Option C (changing DHCP options) would not affect the ability of the proxy instances to forward traffic. Option D (adding additional network interfaces) is not necessary, as the issue is related to the source/destination check and not the network interface configuration.
-
AzureDP900 👍 1Option A resolves the issue by allowing the traffic of the EC2 instances in their private subnets to be properly forwarded to the internet.
Show 4 more comments
-
chris_spencer 👍 1With A i am missing the route to the internet via a NAT Gateway or NAT Instance via a ENI, with D i miss the scr/dst check
-
alexis123456 👍 3Correct Answer is A
-
TheCloudGuruu 👍 1 Answered AAnswer is A, proxy
-
HunkyBunky 👍 1 Answered AAnswer is - A
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All SAP-C02 Questions
Access 85 questions with complete answers and detailed explanations.
View Full SAP-C02 Practice Test →