test vpn tunnel aws Archives - Anuj Varma, Hands-On Technology Architect, Clean Air Activist https://www.anujvarma.com/tag/test-vpn-tunnel-aws/ Production Grade Technical Solutions | Data Encryption and Public Cloud Expert Tue, 26 Oct 2021 15:45:23 +0000 en-US hourly 1 https://wordpress.org/?v=7.0.2 https://www.anujvarma.com/wp-content/uploads/anujtech.png test vpn tunnel aws Archives - Anuj Varma, Hands-On Technology Architect, Clean Air Activist https://www.anujvarma.com/tag/test-vpn-tunnel-aws/ 32 32 Private Subnets and VPN Tunnels in AWS https://www.anujvarma.com/private-subnets-and-vpn-tunnels-in-aws/ https://www.anujvarma.com/private-subnets-and-vpn-tunnels-in-aws/#respond Tue, 26 Oct 2021 15:39:59 +0000 https://www.anujvarma.com/?p=8569 VPN Tunnel The idea is for all your private subnets to route via the VPN Tunnel.  Create a custom route table shown below for the first private subnet. This is […]

The post Private Subnets and VPN Tunnels in AWS appeared first on Anuj Varma, Hands-On Technology Architect, Clean Air Activist.

]]>
VPN Tunnel

The idea is for all your private subnets to route via the VPN Tunnel.  Create a custom route table shown below for the first private subnet. This is the same routing table you will attach to successive subnets. A SINGLE routing table can have multiple routes

 Diagram for scenario 4: VPC with only a virtual private gateway

Testing the VPN Tunnel

Protocol type Protocol number ICMP type ICMP code Source IP
ICMP 1 8 (Echo Request) N/A The public IPv4 address of your on premises computer or cidr range
  1. Spin up an Ec2 instance, associate it with a SG that allows PING traffic (ICMP). Now, get its private IP address (for example, 10.0.0.4). The Amazon EC2 console displays the address as part of the instance’s details.
  2. From a computer in your network that is behind the customer gateway device, use the ping command with the instance’s private IP address. A successful response is similar to the following:
    ping 10.0.0.4

PRIVATE Subnets need a route to both the Internet (Nat gateway) and to the VPN Tunnel (VgW). How do you provide both in one custom route table?

The ‘destination’ fields are different.

  • For Private Subnets getting to On PRem Addresses – the destination is anything in the VPC (entire CIDR block – 10.0.0.0/16) and target is VgW
  • For Private Subnets getting to Internet, the destination is 0.0.0.0/0 and the target is the NAT GW

The post Private Subnets and VPN Tunnels in AWS appeared first on Anuj Varma, Hands-On Technology Architect, Clean Air Activist.

]]>
https://www.anujvarma.com/private-subnets-and-vpn-tunnels-in-aws/feed/ 0