In this lab, we will create a NAT instance.
before this lab complete Bastion Host (Jump host) refer this link :-
https://bvakash.hashnode.dev/bastion-host-jump-host
NAT(Network address translation), Nat allows a private network to communicate to the internet through a single IP address without exposing its private IP address.
Step 1:- Click on create instance.
Step 2:- Give a name for your nat instance, Choose region where your VPC network resides and choose machine family accordingly.
Step 3:- Choose firewall traffic and click on Advanced options.
Step 4:- Under Networking give Network tags as public and enable IP forwarding, Under Network interface choose your VPC network.
Enabling IP forwarding allows traffic to be forwarded from a private subnet (which is our database server) to a public subnet using the NAT instance.
Step 5:- Choose your Network, Simultaneously choose the public subnet, Internal ip let it be Automatic and the External IPv4 address Ephermal for now, then click done.
Step 6:- Click on create.
Step 7:- Go to VPC networks.
Step 8:- Now click on Routes.
Step 9:- Click to create Route.
Step 10:- Name your route for NAT and choose your Network.
Step 11:- Choose your destination IP range, Priority let it be 1000, instance tags private, Next hop choose specify an instance, Next hop instance choose your nat instance and finally click create.
Once we created the route we have to setup a NAT instance that is for another day.
That's it, for now, we will continue further more in next blog.
Hope you liked it. Will see you on the next topic ๐