How to setup the DNS64 and NAT64 on EC2

0

I've created a private NAT gateway because the public needs Elastic IP which will charge $7/mth. How Can I set the route now? Which target should I use for Route 53 in the route table?

xinjh
已提問 2 個月前檢視次數 1345 次
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.
profile picture
專家
已回答 2 個月前
profile picture
專家
已審閱 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.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南