AndrewGuenther / fck-nat

Feasible cost konfigurable NAT: An AWS NAT Instance AMI
https://fck-nat.dev
MIT License
1.33k stars 53 forks source link

Cloudformation deploy procedure routetable update #30

Closed monkut closed 1 year ago

monkut commented 1 year ago

Steps to deploy:

  1. Paste your VPC ID, public subnet ID, and CIDR block into the parameters.
  2. Ensure that your public subnet has Enable auto-assign public IPv4 address turned on. This can be found in the Console at VPC > > Subnets > Edit subnet settings > Auto-assign IP settings.
  3. Deploy with cloudformation aws cloudformation deploy --force-upload --template-file template.yml --stack-name FckNat
  4. Add the default route to your route table on the subnet. It is best to do this manually so you can do a seamless cut over from your > existing nat gateway. Go to VPC > Route Tables > PUblic route table > Routes > Edit Routes Add a 0.0.0.0/0 route pointing to the network interface.

Maybe my configuration is different, but in my case, if you remove the internet-gateway route from the public route table you will no longer have access to the internet.

I believe this should be changed from Public route table to Private route table:

Go to VPC > Route Tables > PUblic route table > Routes > Edit Routes Add a 0.0.0.0/0 route pointing to the network interface.

-->

Go to VPC > Route Tables > Private route table > Routes > Edit Routes Add a 0.0.0.0/0 route pointing to the network interface of the FCK-NAT instance.

AndrewGuenther commented 1 year ago

Yep, you're right, it should be private route table

AndrewGuenther commented 1 year ago

@monkut Can you confirm that #31 resolves this issue? Is there anywhere else in the docs where public/private need to be updated?