<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>network gateway on Sagar Chamling&#39;s Blogging Site</title>
    <link>https://sagarchamling.com/tags/network-gateway/</link>
    <description>Recent content in network gateway on Sagar Chamling&#39;s Blogging Site</description>
    <image>
      <title>Sagar Chamling&#39;s Blogging Site</title>
      <url>https://sagarchamling.com/logo.svg</url>
      <link>https://sagarchamling.com/logo.svg</link>
    </image>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Sat, 28 Oct 2023 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://sagarchamling.com/tags/network-gateway/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Amazon Virtual Private Cloud (VPC) Lab</title>
      <link>https://sagarchamling.com/blogs/training/amazon-vpc-lab/</link>
      <pubDate>Sat, 28 Oct 2023 00:00:00 +0000</pubDate>
      <guid>https://sagarchamling.com/blogs/training/amazon-vpc-lab/</guid>
      <description>Explore and create custom VPC and deploy EC2 instance in VPC</description>
      <content:encoded><![CDATA[<h2 id="objective">Objective</h2>
<p>Amazon VPC is web service that allows us to create a private network in the cloud. In this lab,</p>
<ul>
<li>Part 1: Deploy VPC with public subnets</li>
<li>Part 2: Deploy an EC2 instance into VPC</li>
</ul>
<h2 id="lab-begins">Lab Begins</h2>
<h3 id="part-1-exploration">Part 1: Exploration</h3>
<h4 id="vpc">VPC</h4>
<p>Amazon Virtual Private Cloud is a virtual network that is dedicated to your AWS account</p>
<p>
  
  <input type="checkbox" id="zoomCheck-e690e" hidden />
  <label for="zoomCheck-e690e">
    <img
      class="zoomCheck"
      loading="lazy"
      decoding="async"
      src="img/vpc.webp"
      alt="Exploring VPC"
       />
  </label>
</p>
<blockquote>
<p>Note: The VPC IPv4 CIDR is <code>172.31.0.0/16</code></p>
</blockquote>
<h4 id="subnets">Subnets</h4>
<p>A subnet is a sub-range of IP addresses in the VPC.</p>
<p>
  
  <input type="checkbox" id="zoomCheck-b0b1b" hidden />
  <label for="zoomCheck-b0b1b">
    <img
      class="zoomCheck"
      loading="lazy"
      decoding="async"
      src="img/subnets.webp"
      alt="Exploring Subnets"
       />
  </label>
</p>
<blockquote>
<p>Note: Auto-assign public IPv4 address is <strong>Yes</strong>. The Subnet IPv4 CIDR is <code>172.31.0.0/20</code>. Since, AWS reserves <strong>five</strong> addresses in each subnet for it&rsquo;s own purpose such that only <code>4091</code> address are available out of <code>4096</code>.</p>
</blockquote>
<h4 id="internet-gateway">Internet Gateway</h4>
<p>An internet gateway allows communication between the resources in a VPC and the internet.</p>
<p>
  
  <input type="checkbox" id="zoomCheck-e02ea" hidden />
  <label for="zoomCheck-e02ea">
    <img
      class="zoomCheck"
      loading="lazy"
      decoding="async"
      src="img/internet-gateway.webp"
      alt="Internet Gateway"
       />
  </label>
</p>
<h4 id="route-table">Route Table</h4>
<p>A route table contains a set of rules, called routes, that are used to determine where network traffic is directed.</p>
<p>
  
  <input type="checkbox" id="zoomCheck-91a62" hidden />
  <label for="zoomCheck-91a62">
    <img
      class="zoomCheck"
      loading="lazy"
      decoding="async"
      src="img/route-table.webp"
      alt="Route Table"
       />
  </label>
</p>
<blockquote>
<p>Note: <code>172.31.0.0/16</code> is routed locally, allowing all subnets in a VPC to communicate with each other and all public traffic (<code>0.0.0.0/0</code>) is routed to the internet gateway.</p>
</blockquote>
<p>
  
  <input type="checkbox" id="zoomCheck-daa3e" hidden />
  <label for="zoomCheck-daa3e">
    <img
      class="zoomCheck"
      loading="lazy"
      decoding="async"
      src="img/subnet-association.webp"
      alt="Subnet Associations"
       />
  </label>
</p>
<h4 id="security-group">Security Group</h4>
<p>A security group acts as a virtual firewall for instances to control inbound and outbound traffic.</p>
<h5 id="inbound-rules">Inbound Rules</h5>
<p>
  
  <input type="checkbox" id="zoomCheck-13f07" hidden />
  <label for="zoomCheck-13f07">
    <img
      class="zoomCheck"
      loading="lazy"
      decoding="async"
      src="img/sg-inbound.webp"
      alt="Inbound Rules"
       />
  </label>
</p>
<h5 id="outbound-rules">Outbound Rules</h5>
<p>
  
  <input type="checkbox" id="zoomCheck-ff685" hidden />
  <label for="zoomCheck-ff685">
    <img
      class="zoomCheck"
      loading="lazy"
      decoding="async"
      src="img/sg-outbound.webp"
      alt="Outbound Rules"
       />
  </label>
</p>
<h5 id="custom-security-group-inbound-rules">Custom Security Group Inbound Rules</h5>
<p>
  
  <input type="checkbox" id="zoomCheck-2aa95" hidden />
  <label for="zoomCheck-2aa95">
    <img
      class="zoomCheck"
      loading="lazy"
      decoding="async"
      src="img/custom-sg-inbound.webp"
      alt="Custom Security Group Inbound Rules"
       />
  </label>
</p>
<h4 id="ec2-instances-vpc-and-subnet">EC2 instance&rsquo;s VPC and Subnet</h4>
<h5 id="exploring-ec2-instance">Exploring EC2 Instance</h5>
<p>
  
  <input type="checkbox" id="zoomCheck-d0c59" hidden />
  <label for="zoomCheck-d0c59">
    <img
      class="zoomCheck"
      loading="lazy"
      decoding="async"
      src="img/ec2-explore.webp"
      alt="Exploring EC2 Instance"
       />
  </label>
</p>
<h5 id="navigating-public-ip">Navigating Public IP</h5>
<p>
  
  <input type="checkbox" id="zoomCheck-a6a01" hidden />
  <label for="zoomCheck-a6a01">
    <img
      class="zoomCheck"
      loading="lazy"
      decoding="async"
      src="img/ec2-navigate.webp"
      alt="Navigating Public IP"
       />
  </label>
</p>
<h3 id="part-2-creation">Part 2: Creation</h3>
<h4 id="custom-vpc">Custom VPC</h4>
<h5 id="vpc-cidr">VPC CIDR</h5>
<p>
  
  <input type="checkbox" id="zoomCheck-23906" hidden />
  <label for="zoomCheck-23906">
    <img
      class="zoomCheck"
      loading="lazy"
      decoding="async"
      src="img/vpc-cidr.webp"
      alt="VPC CIDR"
       />
  </label>
</p>
<h5 id="vpc-subnets">VPC Subnets</h5>
<p>
  
  <input type="checkbox" id="zoomCheck-45dd6" hidden />
  <label for="zoomCheck-45dd6">
    <img
      class="zoomCheck"
      loading="lazy"
      decoding="async"
      src="img/vpc-subnet.webp"
      alt="VPC Subnets"
       />
  </label>
</p>
<h5 id="vpc-preview">VPC Preview</h5>
<p>
  
  <input type="checkbox" id="zoomCheck-4817d" hidden />
  <label for="zoomCheck-4817d">
    <img
      class="zoomCheck"
      loading="lazy"
      decoding="async"
      src="img/vpc-preview.webp"
      alt="VPC Preview"
       />
  </label>
</p>
<h5 id="vpc-create">VPC Create</h5>
<p>
  
  <input type="checkbox" id="zoomCheck-b06cd" hidden />
  <label for="zoomCheck-b06cd">
    <img
      class="zoomCheck"
      loading="lazy"
      decoding="async"
      src="img/vpc-create.webp"
      alt="VPC Create"
       />
  </label>
</p>
<h5 id="vpc-page-navigate">VPC Page Navigate</h5>
<p>
  
  <input type="checkbox" id="zoomCheck-da6ec" hidden />
  <label for="zoomCheck-da6ec">
    <img
      class="zoomCheck"
      loading="lazy"
      decoding="async"
      src="img/vpc-navigate.webp"
      alt="VPC Page Navigate"
       />
  </label>
</p>
<h4 id="custom-security-group">Custom Security Group</h4>
<h5 id="security-group-create">Security Group Create</h5>
<p>
  
  <input type="checkbox" id="zoomCheck-28186" hidden />
  <label for="zoomCheck-28186">
    <img
      class="zoomCheck"
      loading="lazy"
      decoding="async"
      src="img/sg-create.webp"
      alt="Security Group Create"
       />
  </label>
</p>
<h5 id="security-group-page-navigate">Security Group Page Navigate</h5>
<p>
  
  <input type="checkbox" id="zoomCheck-deb22" hidden />
  <label for="zoomCheck-deb22">
    <img
      class="zoomCheck"
      loading="lazy"
      decoding="async"
      src="img/sg-navigate.webp"
      alt="Security Group Page Navigate"
       />
  </label>
</p>
<h4 id="ec2-instance-in-custom-vpc">EC2 Instance in Custom VPC</h4>
<h5 id="ec2-ami">EC2 AMI</h5>
<p>
  
  <input type="checkbox" id="zoomCheck-f9333" hidden />
  <label for="zoomCheck-f9333">
    <img
      class="zoomCheck"
      loading="lazy"
      decoding="async"
      src="img/ec2-ami.webp"
      alt="Launching instance in VPC"
       />
  </label>
</p>
<h5 id="ec2-network-setting">EC2 Network Setting</h5>
<p>
  
  <input type="checkbox" id="zoomCheck-8bb33" hidden />
  <label for="zoomCheck-8bb33">
    <img
      class="zoomCheck"
      loading="lazy"
      decoding="async"
      src="img/ec2-network.webp"
      alt="EC2 Network Setting"
       />
  </label>
</p>
<h5 id="ec2-user-data">EC2 User Data</h5>
<p>
  
  <input type="checkbox" id="zoomCheck-0213a" hidden />
  <label for="zoomCheck-0213a">
    <img
      class="zoomCheck"
      loading="lazy"
      decoding="async"
      src="img/ec2-user-data.webp"
      alt="EC2 User Data"
       />
  </label>
</p>
<p>The End</p>
]]></content:encoded>
    </item>
  </channel>
</rss>
