1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
To set the route for your private NAT gateway:
- Create a public subnet to host the NAT gateway.
- Create a NAT gateway within the public subnet and assign an Elastic IP address.
- Create a custom route table for the public subnet with a route to the internet gateway.
- Update the route tables of your private subnets to direct internet traffic to the NAT gateway. The route should have a destination of 0.0.0.0/0 and a target of the NAT gateway.
- Verify connectivity by pinging public internet addresses from instances in the private subnets. Traffic should be routed through the NAT gateway.
관련 콘텐츠
- AWS 공식업데이트됨 2년 전
Is there any way to set the NAT without Elastic IP? I know the EC2 is working fine with Elastic IP. But it's charging for the ipv4, I changed the instance to ipv6-only, and I can access it. The only thing is I have some scripts on the instance and they are using ipv4 to access other web resources.