<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Emmanuel Adebiyi on Medium]]></title>
        <description><![CDATA[Stories by Emmanuel Adebiyi on Medium]]></description>
        <link>https://medium.com/@biyiemmy?source=rss-cdc9ed87f220------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*pRKApJsARXHHRFbJ</url>
            <title>Stories by Emmanuel Adebiyi on Medium</title>
            <link>https://medium.com/@biyiemmy?source=rss-cdc9ed87f220------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 19:55:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@biyiemmy/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How I Built an Automated AWS Backup System: A Step-by-Step Guide to VPC Networking, Private EC2…]]></title>
            <link>https://biyiemmy.medium.com/how-i-built-an-automated-aws-backup-system-a-step-by-step-guide-to-vpc-networking-private-ec2-80a57c13691e?source=rss-cdc9ed87f220------2</link>
            <guid isPermaLink="false">https://medium.com/p/80a57c13691e</guid>
            <dc:creator><![CDATA[Emmanuel Adebiyi]]></dc:creator>
            <pubDate>Sun, 22 Nov 2026 21:49:15 GMT</pubDate>
            <atom:updated>2026-11-27T19:46:03.905Z</atom:updated>
            <content:encoded><![CDATA[<h3>How I Built an Automated AWS Backup System: A Step-by-Step Guide to VPC Networking, Private EC2, Amazon S3, IAM, Lambda, and DynamoDB</h3><h3>Introduction</h3><p>Imagine a company server that holds important data. It sits on a private network with no public IP address, so the internet cannot reach it directly. It must back itself up on a schedule. And here is the twist: if an attacker or a careless employee gets onto that server, they must not be able to delete the old backups.</p><p>That was the challenge I took on for my Cloud Engineering Karatu project exam. The scenario was an application server in a private subnet with no public IP address. I had to automate backups, store them securely, restrict the server to add backups but never remove them, and record everything in an audit log with no human involvement.</p><p>I built the whole pipeline on Amazon Web Services (AWS). A bastion host is the only way in, and the private server uploads backup archives to Amazon S3 using a restricted IAM role, with no access keys stored on it. I used a NAT Gateway temporarily to install software, then deleted it and relied on an S3 Gateway VPC Endpoint so the server could still reach S3 privately. Finally, AWS Lambda watches the bucket, so every new upload automatically creates an audit record in Amazon DynamoDB.</p><p>This guide follows the build in five stages: the network, storage and IAM, automation, the serverless audit trail, and finally proof and cleanup. I explain why each piece exists and share the mistakes I made along the way, because those taught me more than the parts that worked the first time.</p><p><strong>What you will build:</strong> a private server that backs itself up to S3 every 10 minutes, with each upload recorded in DynamoDB.</p><p><strong>Prerequisites:</strong> an AWS account, basic Linux commands, and patience with AWS configuration.</p><h3>Chapter 1: Understanding the Architecture</h3><p>Before implementing the solution, it is important to understand how its components work together. The architecture is deployed in a custom Amazon VPC in the AWS US East (N. Virginia) Region (us-east-1).</p><p>The VPC contains two subnets:</p><ul><li><strong>Public subnet (</strong><strong>10.0.1.0/24):</strong> Hosts the bastion server used for secure administrative access.</li><li><strong>Private subnet (</strong><strong>10.0.2.0/24):</strong> Hosts the application server, which has no public IP address.</li></ul><h3>1.1 Architecture Components</h3><p>The solution uses the following services:</p><ul><li><strong>VPC:</strong> Provides the isolated network environment.</li><li><strong>EC2:</strong> Hosts the bastion server and private application server.</li><li><strong>Bastion host (public subnet):</strong> the only door into the compound. I can SSH to it from my IP address alone.</li><li><strong>Private app server (private subnet):</strong> the machine that holds the data. It has no public IP, so nothing on the internet can talk to it.</li><li><strong>Security Groups:</strong> Control SSH access between the administrator, bastion, and application server.</li><li>Temporary NAT Gateway: It provides temporary outbound internet access during setup.</li><li><strong>IAM:</strong> Grants the application server permission to upload backups to S3 without storing permanent access keys.</li><li><strong>S3:</strong> Stores compressed application backups.</li><li><strong>S3 Gateway VPC Endpoint:</strong> Enables private connectivity between the application server and S3.</li><li><strong>Linux systemd and cron:</strong> Generate application data and automate scheduled backups.</li><li><strong>AWS Lambda:</strong> Processes S3 upload events.</li><li><strong>Amazon DynamoDB:</strong> Stores backup metadata.</li><li><strong>Amazon CloudWatch:</strong> Provides Lambda execution logs.</li></ul><h3>1.2 How the System Works</h3><p>The solution follows two connected workflows:</p><p><strong>Backup workflow</strong></p><ol><li>A systemd service continuously generates application data.</li><li>A Bash script compresses the data into timestamped archives.</li><li>Cron executes the backup script every ten minutes.</li><li>The AWS CLI uploads each archive to Amazon S3 through the S3 Gateway Endpoint.</li><li>The script records the backup result in a local log file.</li></ol><p><strong>Metadata logging workflow</strong></p><ol><li>S3 detects a newly uploaded backup.</li><li>An event notification triggers the Lambda function.</li><li>Lambda extracts the backup details and writes them to DynamoDB.</li><li>CloudWatch Logs captures the function’s execution activity.</li></ol><h3>1.3 Architecture Diagram</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VnUSHBkiqZg_IU_tyTtlmA.png" /></figure><p>The architecture separates the application server from direct public access while allowing it to communicate privately with S3. The NAT Gateway was initially configured but later removed to demonstrate that backup uploads could continue through the S3 Gateway Endpoint without general internet connectivity.</p><h3>Chapter 2: Building the Network Infrastructure</h3><p>The application server had to remain inaccessible from the internet while still being able to upload backups to Amazon S3. I started by building the network infrastructure, defining where each resource would live and how traffic would flow between them.</p><h3>2.1 Creating a Custom VPC</h3><p>I created a Virtual Private Cloud (VPC) named my-altschool-vpc with the CIDR block 10.0.0.0/16. This provided an isolated network address space for the project&#39;s infrastructure, which I could divide into smaller subnets for different resources.</p><p><strong>Steps to create the VPC:</strong></p><ol><li>Navigate to <strong>VPC</strong> in the AWS Management Console.</li><li>Select <strong>Your VPCs</strong> → <strong>Create VPC</strong>.</li><li>Choose <strong>VPC only</strong>.</li><li>Enter my-altschool-vpc as the VPC name.</li><li>Set IPv4 CIDR to 10.0.0.0/16.</li><li>Leave IPv6 CIDR as No IPv6 CIDR block.</li><li>Select Default for Tenancy.</li><li>Click <strong>Create VPC</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dwifkeA-4j3oXOb-xZwsiA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c63TY_C5fuD8lt6otnoVyw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o1aPuB7H-H5a5bm0O2ISzw.png" /></figure><p>The VPC provides the network foundation for the project. The 10.0.0.0/16 address range gives us room to create smaller subnet ranges for our public and private resources.</p><h3>2.2 Creating Public and Private Subnets</h3><p>After creating the VPC, I divided its IP address range into two subnets: a public subnet for the bastion host and a private subnet for the application server.</p><p>This separation helps control how each resource communicates with the internet. The bastion host will provide a controlled entry point for accessing the private server, while the application server will remain isolated from direct internet access.</p><p><strong>Steps to create the public subnet:</strong></p><ol><li>In the VPC console, select <strong>Subnets</strong>.</li><li>Click <strong>Create subnet</strong>.</li><li>Select my-altschool-vpc.</li><li>Enter the following details:</li></ol><ul><li>Subnet name: my-altschool-public-subnet</li><li>Availability Zone: us-east-1a</li><li>IPv4 CIDR: 10.0.1.0/24</li></ul><p>Click Create subnet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j1Sz9PdVQwATI_WAHyIzpA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cPb2S2fXNnbHfIzWcXJ33w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M8IoreFURU7L3SmwBwl_GQ.png" /></figure><p>After that, I selected the subnet, clicked &quot;Actions&quot;, and selected “Edit subnet settings”. I enabled <strong>Auto-assign public IPv4 address</strong> in its subnet settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ac_3sIaSAhYI0mSNMYy4Zw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gv6GnN_k0bL1AC9VNIQHzA.png" /></figure><p>Click on “Save”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KmNi1JgEW7JQ44lMBUr07A.png" /></figure><p><strong>Steps to create the private subnet:</strong></p><ol><li>Return to <strong>Subnets</strong> and select <strong>Create subnet</strong>.</li><li>Choose my-altschool-vpc.</li><li>Enter the following details:</li></ol><ul><li>Subnet name: my-altschool-private-subnet</li><li>Availability Zone: us-east-1b</li><li>IPv4 CIDR: 10.0.2.0/24</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BojDoDLLQXEu1tbqWsXm7g.png" /></figure><p>Click on “Create the subnet”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z8lePP_ieCCud3mc5gtRcQ.png" /></figure><h3>2.3 Creating and Attaching an Internet Gateway</h3><p>An Internet Gateway allows resources in a VPC to communicate with the internet when their subnet routing and network configurations permit it.</p><p>After creating the two subnets, I configured internet connectivity for the public subnet. This required an Internet Gateway (IGW) and a route table to direct internet-bound traffic outside the VPC.</p><p><strong>Steps:</strong></p><ol><li>Open <strong>VPC</strong> in the AWS Management Console.</li><li>From the left navigation panel, select <strong>Internet Gateways</strong>.</li><li>Click <strong>Create internet gateway</strong>.</li><li>Enter the name my-altschool-igw.</li><li>Click <strong>Create internet gateway</strong>.</li><li>Choose <strong>Actions → Attach to a VPC</strong>.</li><li>Select my-altschool-vpc and click <strong>Attach internet gateway</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cOL_uq3VZIbVLkkBLn0iwQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IuRMbf0zFYWIePUgKHWogg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t7dXmHKIuIgSYzRNZRsgyw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rhSp3o2KEoHCnmUDIESM0w.png" /></figure><p>The Internet Gateway provides a connection between the VPC and the internet. However, attaching it alone does not make the subnet publicly accessible. The subnet also needs a route directing internet-bound traffic through the gateway.</p><h3><strong>2.4 Configuring the Public Route Table</strong></h3><p>After attaching the Internet Gateway, I configured a public route table to direct internet-bound traffic from the public subnet through the gateway.</p><p><strong>Steps to create the public route table:</strong></p><ol><li>Navigate to <strong>VPC → Route Tables</strong>.</li><li>Click <strong>Create route table.</strong></li><li>Enter my-altschool-public-rt as the name.</li><li>Select my-altschool-vpc.</li><li>Click <strong>Create route table</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8ZfRa5byeYYZjDXYEx82fQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dTqVngeUizVz-irrdvNPcg.png" /></figure><p><strong>Adding a route to the Internet Gateway:</strong></p><ol><li>Select my-altschool-public-rt.</li><li>Open the <strong>Routes</strong> tab and click <strong>Edit routes</strong>.</li><li>Set the destination to 0.0.0.0/0.</li><li>Select the Internet Gateway my-altschool-igwas the target.</li><li>Save the changes.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_VarqjkuBS5zACfHrnMfmA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M3YqpKCGVW_O3POl8kaBPQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dKj8AlzVjlQjEf6scrWOkA.png" /></figure><p>The 0.0.0.0/0 route directs traffic destined for external IPv4 addresses through the Internet Gateway. The existing local route handles communication within the VPC.</p><p><strong>Associating the Public Subnet:</strong></p><p>Creating the route table and adding the Internet Gateway route does not automatically apply the configuration to the public subnet. I therefore associated the route table with the subnet.</p><ol><li>Select my-altschool-public-rt.</li><li>Open the <strong>Subnet associations</strong> tab.</li><li>Click <strong>Edit subnet associations</strong>.</li><li>Select my-altschool-public-subnet.</li><li>Click <strong>Save associations</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B_H1l7PL7BYc9dP2hID8dQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vy0oewsTcAhMHXbOSy-Nxg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ywO7J5BONizmP0FtnVVjxA.png" /></figure><p>This association ensures that resources launched in the public subnet use the public route table to determine where their network traffic is directed.</p><h3>2.5 Configuring the Private Route Table</h3><p>Unlike the public subnet, the private subnet should not have a direct route to the Internet Gateway. I created a separate route table for the private subnet to keep its network traffic separate from the public subnet.</p><p><strong>Configuring the private route table:</strong></p><ol><li>Navigate to <strong>VPC → Route tables</strong>.</li><li>Click <strong>Create route table</strong>.</li><li>Enter my-altschool-private-rt as the name.</li><li>Select my-altschool-vpc as the VPC.</li><li>Click <strong>Create route table</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NxM1DYjhDBpUpdi3LmlsQQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iyO-WHojNvqkCfS29jJV8w.png" /></figure><p><strong>Associating the Private Subnet:</strong></p><ol><li>Select my-altschool-private-rt.</li><li>Open the <strong>Subnet associations</strong> tab.</li><li>Click <strong>Edit subnet associations</strong>.</li><li>Select my-altschool-private-subnet.</li><li>Click <strong>Save associations</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oAkb16aOReDouF8F4YkrrA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Irg8HK3rYPyEzNJ5LZwvaA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t9FU7ExP1Crl2NMzEKKt2g.png" /></figure><p>At this stage, the private route table contains the default local route, which allows communication within the VPC. It does not have a direct route to the Internet Gateway.</p><p>I would later add a temporary default route (0.0.0.0/0) pointing to the NAT Gateway so the private EC2 instance could download and install the required software. Once the setup was complete, I would remove the NAT Gateway and use an S3 Gateway VPC Endpoint to maintain private connectivity to Amazon S3.</p><h3><strong>2.6 Creating Security Groups and Launching the EC2 Instances</strong></h3><p>With the VPC, subnets, and route tables configured, the next step was to create the security groups and deploy the EC2 instances.</p><p>I needed two servers: a bastion host in the public subnet and an application server in the private subnet. The bastion host would provide the entry point for administrative SSH access, while the application server would only accept SSH connections from the bastion host.</p><h4>Creating the Bastion Host Security Group</h4><p>The bastion host security group controls access to the server from my local machine. I restricted inbound SSH traffic to my own public IP address.</p><p><strong>Steps to create the security group:</strong></p><ol><li>Navigate to <strong>EC2 → Security Groups</strong>.</li><li>Click <strong>Create security group</strong>.</li><li>Enter my-altschool-bastion-sg as the security group name.</li><li>Add a description, such as Allow SSH access from my IP.</li><li>Select my-altschool-vpc as the VPC.</li><li>Under <strong>Inbound rules</strong>, add the following rule:<br>Type: SSH<br>Protocol: TCP<br>Port: 22<br>Source: My IP</li><li>Leave the default outbound rule in place.</li><li>Click <strong>Create security group</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rk71PmlXJKRdIeJj-R3oGQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mdKiYSJfCufIU_JF0J3Uxg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fKgKMYhAoNBXBmylHQqklQ.png" /></figure><p>This ensures that SSH access to the bastion host is restricted to my IP address rather than being open to the entire internet.</p><h4>Creating the Private Application Server Security Group</h4><p>The application server requires a different security group. Instead of accepting SSH connections directly from my IP address, it should only accept them from the bastion host.</p><p><strong>Steps to create the security group:</strong></p><ol><li>Return to <strong>EC2 → Security Groups</strong>.</li><li>Click <strong>Create security group</strong>.</li><li>Enter my-altschool-private-sg as the security group name.</li><li>Add a description, such as Allow SSH access from the bastion host.</li><li>Select my-altschool-vpc as the VPC.</li><li>Under <strong>Inbound rules</strong>, add the following rule:<br>Type: SSH<br>Protocol: TCP<br>Port: 22<br>Source: my-altschool-bastion-sg</li><li>Leave the default outbound rule in place.</li><li>Click <strong>Create security group</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0IorBRPtqDBaC0anMqP48A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OX-3_RiU7xHY0Ay2TzExnA.png" /></figure><p>For the source, I selected the bastion host security group rather than entering an IP address. This allows instances associated with that security group to connect to the application server over SSH.</p><h4>Launching the Bastion Host</h4><p>After creating the security groups, I launched the bastion host in the public subnet.</p><p><strong>Steps to launch the bastion host:</strong></p><ol><li>Navigate to <strong>EC2 → Instances.</strong></li><li>Click <strong>Launch instances</strong>.</li><li>Enter my-altschool-bastion as the instance name.</li><li>Under <strong>Application and OS Images</strong>, select an Ubuntu Server LTS AMI.</li><li>Choose an instance type suitable for the project. [I used t3.micro]</li><li>Under <strong>Key pair (login)</strong>, select an existing key pair or create a new one. Keep the downloaded private key secure. [I created a new one — altschool-bastion-key]</li><li>Under <strong>Network settings</strong>, click <strong>Edit</strong> and configure the following:<br>VPC: my-altschool-vpc<br>Subnet: my-altschool-public-subnet<br>Auto-assign public IP: Enable<br>Firewall (security groups): Select existing security group<br>Security group: my-altschool-bastion-sg</li><li>Review the remaining settings and click <strong>Launch instance</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CAmRUaZkU0BG7zDVNiAlYQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nOq7XfTefa0eKvrPE3WoUw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1WBiHE414S27hk_QOedHFg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1_6SdwSTvpMDpnJNbKBfJQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W1sZiqe3vZkj41X6vLJ9AQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tYnrsajRnCivUxcg-os04A.png" /></figure><p>The bastion host is now configured to receive SSH connections through its public IP address, subject to the inbound rule restricting access to my IP.</p><h4>Launching the Private Application Server</h4><p>Next, I launched the application server in the private subnet. Unlike the bastion host, this instance must not have a public IP address.</p><p><strong>Steps to launch the application server:</strong></p><ol><li>Return to <strong>EC2 → Instances</strong>.</li><li>Click <strong>Launch instances</strong>.</li><li>Enter my-altschool-app-server as the instance name.</li><li>Under <strong>Application and OS Images</strong>, select an Ubuntu Server LTS AMI.</li><li>Choose an appropriate instance type.</li><li>Select the key pair used for the bastion host.</li><li>Under <strong>Network settings</strong>, click <strong>Edit</strong> and configure the following:<br>VPC: my-altschool-vpc<br>Subnet: my-altschool-private-subnet<br>Auto-assign public IP: Disable<br>Firewall (security groups): Select existing security group<br>Security group: my-altschool-private-sg</li><li>Review the configuration and click <strong>Launch instance</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kpiO1B1Hk_EtwvMn6wpYeg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gJ7LV0bjQtCiSeHnS5JJ-w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XppaPsfZkR1NG0fK0UrsrA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EqKdPxDWLUL4g-qx4poz1g.png" /></figure><p>The application server is now placed in the private subnet without a public IP address. Its security group also restricts SSH access to connections originating from the bastion host security group.</p><p>At this point, the infrastructure has two EC2 instances with separate network roles: the bastion host provides controlled administrative access, while the private application server remains isolated from direct internet access.</p><h3>2.7 Connecting to the Private Application Server Through the Bastion Host</h3><p>With both EC2 instances launched, I needed to verify that I could access the private application server without exposing it directly to the internet.</p><p>I used the bastion host as an intermediary. First, I connected to the bastion host from my local Mac, then used it to establish an SSH connection to the private application server.</p><p>To avoid copying my private key to the bastion host, I used SSH agent forwarding.</p><h4>Preparing the SSH Key on My Local Machine</h4><p>Before connecting, I navigated to the directory containing the private key downloaded when I created the EC2 key pair.</p><p>I then set the appropriate file permissions:</p><pre>chmod 400 ./altschool-bastion-key.pem</pre><p>Next, I started the SSH agent and added my private key:</p><pre>eval &quot;$(ssh-agent -s)&quot;<br>ssh-add ./altschool-bastion-key.pem</pre><p>The SSH agent securely holds the key for authentication and allows me to forward authentication requests when connecting through the bastion host.</p><h4>Connecting to the Bastion Host</h4><p>I retrieved the bastion host’s public IPv4 address from the EC2 console.</p><p>From my local terminal, I ran:</p><pre>ssh -A -i ./altschool-bastion-key.pem ubuntu@&lt;BASTION_PUBLIC_IP&gt;</pre><p>I replaced &lt;BASTION_PUBLIC_IP&gt; with the actual public IPv4 address of my bastion instance.</p><p>The -A option enables SSH agent forwarding, allowing the bastion host to use my local SSH agent for authentication when connecting to another server.</p><h4>Connecting to the Private Application Server</h4><p>After successfully connecting to the bastion host, I used the private IPv4 address of the application server to establish the second SSH connection:</p><pre>ssh ubuntu@&lt;PRIVATE_SERVER_PRIVATE_IP&gt;</pre><p>I replaced &lt;PRIVATE_SERVER_PRIVATE_IP&gt; with the private IPv4 address displayed in the EC2 console for my application server.</p><p>Because both instances belong to the same VPC, the bastion host can reach the private application server through the VPC’s local route, provided the security group rules permit the connection.</p><p>I did not need to copy my private key onto the bastion host. SSH agent forwarding handled the authentication.</p><h4>Verifying the Connection</h4><p>Once connected to the application server, I ran:</p><pre>hostname</pre><p>I also checked its network interfaces:</p><pre>ip addr</pre><p>These commands helped me confirm that I was working on the application server and inspect its network configuration.</p><p>The private application server was now accessible through the bastion host without requiring a public IP address or exposing SSH directly to the internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TaaMiefhAtsoip5szbQ7OQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sLHUAwms9XknMk3wA2NDKQ.png" /></figure><pre>ubuntu@ip-10-0-2-195:~$ hostname<br>ip-10-0-2-***<br><br>ubuntu@ip-10-0-2-195:~$ ip addr<br>1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000<br>    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00<br>    inet 127.0.0.1/8 scope host lo<br>       valid_lft forever preferred_lft forever<br>    inet6 ::1/128 scope host noprefixroute <br>       valid_lft forever preferred_lft forever<br>2: ens5: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 9001 qdisc mq state UP group default qlen 1000<br>    link/ether 12:ff:d7:40:a1:19 brd ff:ff:ff:ff:ff:ff<br>    altname enp0s5<br>    inet 10.0.2.195/24 metric 100 brd 10.0.2.255 scope global dynamic ens5<br>       valid_lft 3018sec preferred_lft 3018sec<br>    inet6 fe80::10ff:d7ff:fe40:a119/64 scope link <br>       valid_lft forever preferred_lft forever</pre><p>The output showed that the primary network interface ens5had the private IPv4 address 10.0.2.195/24.</p><p>This address falls within the private subnet’s CIDR block, 10.0.2.0/24, confirming that the application server was assigned an address from the correct subnet.</p><p>The output also showed no public IPv4 address assigned to the server’s network interface.</p><p>These checks confirmed that I was connected to the application server in the private subnet and that it did not have a public IPv4 address.</p><h3>2.6 Creating a Temporary NAT Gateway</h3><p>At this stage, the private application server had no public IP address and no direct route to the internet. However, I still needed to install the AWS CLI and other software required for the backup process.</p><p>To provide temporary outbound internet access without exposing the application server to incoming internet connections, I created a NAT Gateway in the public subnet.</p><h4>Creating the NAT Gateway</h4><p><strong>Steps to create the NAT Gateway:</strong></p><ol><li>Navigate to <strong>VPC → NAT Gateways</strong> in the AWS Management Console.</li><li>Click <strong>Create NAT Gateway</strong>.</li><li>Enter my-altschool-nat as the NAT Gateway name.</li><li>Availability mode: Zonal</li><li>Select my-altschool-public-subnet as the subnet.</li><li>Under Connectivity type, select <strong>Public</strong>.</li><li>Under Elastic IP allocation ID, allocate a new Elastic IP address.</li><li>Click <strong>Create NAT Gateway</strong>.</li><li>Wait until its status changes to <strong>Available</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HM3jfu7DYmeYZgb9W-uVYw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5-g-VmiGDVKAOx9JA6eH8A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wqh9lrKIIDuxs43BKtLv0w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9qUp9M7LLPyyXz7M-OZ1Dg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TDev0xwkyiuGcYx8HVgVdA.png" /></figure><h4>Updating the Private Route Table</h4><p>Creating the NAT Gateway alone does not provide internet access to the private application server. I also needed to update the private route table to direct internet-bound traffic through it.</p><p><strong>Steps to add the NAT Gateway route:</strong></p><ol><li>Navigate to <strong>VPC → Route Tables</strong>.</li><li>Select my-altschool-private-rt.</li><li>Open the <strong>Routes</strong> tab and click <strong>Edit routes</strong>.</li><li>Click <strong>Add route</strong>.</li><li>Set the destination to 0.0.0.0/0.</li><li>Select the newly created NAT Gateway my-altschool-natas the target.</li><li>Save the changes.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6BHVBhpD3ru_INAh6reGoQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D8cTCIqt92QA7Sw53m4BFQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vQ9cDt9-VdZOh3xIjkdvPQ.png" /></figure><p>The private route table now directs traffic destined for external IPv4 addresses through the NAT Gateway, while its existing local route continues to handle communication within the VPC.</p><p>This allows the private application server to initiate outbound internet connections for software installation without requiring a public IP address or accepting unsolicited inbound connections from the internet.</p><p>I removed the NAT Gateway after completing the software installation and configuring the S3 Gateway VPC Endpoint.</p><h3>2.10 Reconnecting to the Private Application Server and Testing Internet Connectivity</h3><p>After creating the NAT Gateway and updating the private route table, I reconnected to the application server through the bastion host to verify that it could access the internet.</p><p>From my local Mac, I first connected to the bastion host using SSH agent forwarding:</p><pre>ssh -A -i ./altschool-bastion-key.pem ubuntu@&lt;BASTION_PUBLIC_IP&gt;</pre><p>Once connected, I used the application’s private IPv4 address to access the private server:</p><pre>ssh ubuntu@&lt;PRIVATE_SERVER_PRIVATE_IP&gt;</pre><p>After establishing the connection, I tested outbound internet connectivity using:</p><pre>curl -m 10 https://example.com</pre><p>The -m 10 option sets a maximum time limit of 10 seconds for the request.</p><p>The command returned an HTML response containing the Example Domain page. This confirmed that the private application server could successfully reach an external website through the NAT Gateway.</p><p>This verified that the temporary NAT Gateway and the route in the private route table were working as expected.</p><pre>ubuntu@ip-10-0-2-195:~$ curl -m 10 https://example.com<br>&lt;!doctype html&gt;&lt;html lang=en&gt;&lt;head&gt;&lt;meta charset=utf-8&gt;&lt;link rel=icon href=data:,&gt;&lt;meta name=viewport content=&quot;width=device-width,initial-scale=1&quot;&gt;&lt;title&gt;Example Domain&lt;/title&gt;&lt;style&gt;html{color-scheme:light dark;background:light-dark(#eee,#222)}body{font:16px/1.6 system-ui,sans-serif;max-width:26em;margin:auto;padding:25vh 2em 2em;text-align:center}&lt;/style&gt;&lt;/head&gt;&lt;body&gt;&lt;p&gt;This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.&lt;/p&gt;&lt;script src=/s.js&gt;&lt;/script&gt;&lt;/body&gt;&lt;/html&gt;</pre><p><strong>2.11 Installing the AWS CLI on the Private Application Server.</strong></p><p>The AWS Command Line Interface (CLI) allows me to interact with AWS services directly from the terminal. I needed it on the private application server so the backup script could upload compressed archives to Amazon S3.</p><p>Since the server did not have a public IP address, I used the temporary NAT Gateway to download and install the AWS CLI.</p><h4>Checking the Server Architecture</h4><p>Before downloading the installer, I checked the server’s processor architecture:</p><pre>uname -m</pre><p>The command returned:</p><pre>x86_64</pre><p>This confirmed that the server uses the 64-bit x86 architecture, so I downloaded the corresponding AWS CLI installer.</p><h4>Installing the Required Package</h4><p>The installer requires unzip to extract its files. I first updated the package lists:</p><pre>sudo apt update</pre><p>Then I installed unzip:</p><pre>sudo apt install unzip -y</pre><h4>Downloading and Installing AWS CLI</h4><p>With the required package installed, I downloaded the AWS CLI version 2 installer for Linux x86–64:</p><pre>curl &quot;https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip&quot; -o &quot;awscliv2.zip&quot;</pre><p>Next, I extracted the downloaded archive:</p><pre>unzip awscliv2.zip</pre><p>I then ran the installer:</p><pre>  sudo ./aws/install</pre><h4>Verifying the Installation</h4><p>After installation, I checked that the AWS CLI was available:</p><pre>aws --version</pre><p>The command should return the installed AWS CLI version, confirming that the installation was successful.</p><h4>Configuring the Default AWS Region</h4><p>I configured the default AWS Region to match the region where I created the project’s resources:</p><pre>aws configure set default.region us-east-1</pre><p>This sets the default region without requiring me to enter permanent AWS access keys.</p><p>I deliberately avoided configuring access keys on the server. Instead, I would attach an IAM role to the EC2 instance later, allowing it to obtain temporary credentials securely when communicating with AWS services.</p><h3>2.12 Creating an S3 Gateway VPC Endpoint</h3><p>After installing the AWS CLI, I needed to ensure that the private application server could continue uploading backups to Amazon S3 even after removing the temporary NAT Gateway.</p><p>To achieve this, I created an S3 Gateway VPC Endpoint. It provides private connectivity between resources in my VPC and Amazon S3 without requiring traffic to pass through a NAT Gateway or the public internet.</p><h4>Creating the S3 Gateway VPC Endpoint</h4><p><strong>Steps to create the endpoint:</strong></p><ol><li>Navigate to <strong>VPC → Endpoints</strong> in the AWS Management Console.</li><li>Click <strong>Create endpoint.</strong></li><li>Enter my-altschool-s3-endpoint as the endpoint name.</li><li>Under <strong>Service category</strong>, select <strong>AWS services</strong>.</li><li>In the Services search field, search for s3.</li><li>Select the S3 Gateway endpoint service for the us-east-1 Region: com.amazonaws.us-east-1.s3</li><li>Under <strong>VPC</strong>, select my-altschool-vpc.</li><li>Under <strong>Route tables</strong>, select my-altschool-private-rt.</li><li>Review the configuration and click <strong>Create endpoint</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KOy7_emkFBCCmm3VWhXNkg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wrrg8QP9VfqIKl_VKQQd0Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cDCbu1_BTAIYy858HfMEeg.png" /></figure><h4>Verifying the Endpoint</h4><p>After creating the endpoint, I checked its status under <strong>VPC → Endpoints</strong>.</p><p>I also verified that my-altschool-private-rt was selected in the endpoint&#39;s route table associations.</p><p>The endpoint automatically adds a route for the Amazon S3 managed prefix list to the associated private route table. This allows traffic destined for S3 to use the Gateway Endpoint rather than the NAT Gateway.</p><p>With the S3 Gateway VPC Endpoint configured, the private application server can communicate with Amazon S3 privately, even after the temporary NAT Gateway is removed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4dNeIVEzMCuj5kZsR7wlVw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c9FNLmgc6RY1rglzTVaLtg.png" /></figure><h3>2.13 Deleting the Temporary NAT Gateway</h3><p>After creating the S3 Gateway VPC Endpoint and associating it with the private route table, I no longer needed the NAT Gateway for the project’s S3 connectivity.</p><p>The NAT Gateway had provided temporary internet access to the private application server, allowing me to update packages and install the AWS CLI. Since the S3 Gateway Endpoint provides private connectivity between the VPC and Amazon S3, I could remove the NAT Gateway to avoid its ongoing costs.</p><p><strong>Steps to delete the NAT Gateway:</strong></p><ol><li>In the AWS Management Console, I navigated to <strong>VPC → NAT Gateways</strong>.</li><li>I selected my-altschool-nat.</li><li>I opened the <strong>Actions</strong> menu and selected <strong>Delete NAT Gateway</strong>.</li><li>I confirmed the deletion and waited for the NAT Gateway status to change to <strong>Deleted.</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XuHd0c13hIKP0ex4LNrUhw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WtlNIaS7HxB_m56GLdhS2A.png" /></figure><p><strong>Releasing the Elastic IP address</strong></p><p>The NAT Gateway used an Elastic IP address. After deleting the NAT Gateway, I also needed to release the Elastic IP address to avoid leaving an unused address allocated to my AWS account.</p><ol><li>I navigated to <strong>EC2 → Network &amp; Security → Elastic IPs</strong>.</li><li>I identified the Elastic IP address previously associated with my-altschool-nat.</li><li>I selected that address and chose <strong>Actions → Release Elastic IP addresses</strong>.</li><li>I confirmed the release.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y46Z-nOS6AYonJ7Nhtav4w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dgSbG4aoDEewWadcRePjCA.png" /></figure><p><strong>Verifying the private route table</strong></p><p>After deleting the NAT Gateway, I returned to <strong>VPC → Route Tables</strong> and opened my-altschool-private-rt to verify the remaining routes.</p><p>The important route to preserve was the S3 prefix-list route pointing to my Gateway Endpoint:</p><ul><li>Destination: pl-63a5400a</li><li>Target: vpce-0907f7a19281c4179</li><li>Status: Active</li></ul><p>The route to the NAT Gateway was no longer needed. If it appeared as a “Black hole” after the NAT Gateway deletion, I removed the obsolete route.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*suqh5l2EaAMXYuh37IMZeQ.png" /></figure><p>I kept the S3 Gateway Endpoint route and the local VPC route intact.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZPVWr1zaFzgwvMKhSgIiZA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80a57c13691e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Bastion Host Tutorial for Beginners: Connect Securely to a Private EC2 Instance]]></title>
            <link>https://biyiemmy.medium.com/aws-bastion-host-tutorial-for-beginners-connect-securely-to-a-private-ec2-instance-7a744509f09c?source=rss-cdc9ed87f220------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a744509f09c</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[aws-ec2]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[cloud-engineering]]></category>
            <dc:creator><![CDATA[Emmanuel Adebiyi]]></dc:creator>
            <pubDate>Sun, 25 Oct 2026 21:45:29 GMT</pubDate>
            <atom:updated>2026-10-29T23:35:46.697Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>A practical, beginner-friendly AWS networking project covering Virtual Private Cloud (VPCs), public and private subnets, route tables, security groups, SSH agent forwarding, and troubleshooting.</blockquote><p>Hey Genius! Glad you found your way here!!</p><p>I’m Emmanuel, a Cloud Engineering student at <strong>AltSchool Africa’s School of Engineering</strong>, part of the SOE Karatu 2026 cohort. As I continue learning about cloud infrastructure and networking, I’m documenting my hands-on projects, the challenges I encounter, and the lessons I learn along the way.</p><p>Beyond simply launching an EC2 instance, I wanted to understand something important:</p><blockquote>How do you securely connect to a server that should not be directly accessible from the internet?</blockquote><p>That question led me to build a two-tier network using Amazon Web Services (AWS), with a public bastion host and a private EC2 instance.</p><p>Along the way, I worked with VPCs, public and private subnets, route tables, an Internet Gateway, security groups, SSH key pairs, and SSH agent forwarding. I also encountered an SSH private-key permission error that prevented one of my keys from loading into the SSH agent.</p><p>In this tutorial, I’ll walk you through the process step by step, explain why each configuration matters, and share the troubleshooting lessons I learned.</p><p>Whether you’re just starting with AWS or practising cloud networking, I hope this walkthrough helps you understand how bastion hosts work and how to access private EC2 instances securely.</p><p>Here we go again!!!</p><p><strong>First of all, What is a Bastion Host?</strong></p><p>According to <a href="https://en.wikipedia.org/wiki/Bastion_host"><em>Wikipedia</em></a>, a Bastion<a href="https://en.wikipedia.org/wiki/Bastion_host"> host</a> is a security-hardened gateway server designed to provide controlled, audited administrative access to a private network or cloud environment from an untrusted public network like the internet.</p><blockquote>In simple words, a bastion host is a machine that provides a controlled entry point into a more restricted network. It is also known as a jump box or jump server.</blockquote><p>Think about a building where visitors cannot walk directly into every office. They first pass through a reception point, where access is checked. A bastion host serves a similar purpose in a cloud network.</p><p>Instead of exposing every server to the public internet. An administrator connects to a designated host first and then uses that host to access private resources.</p><h3><strong>My intended architecture</strong></h3><blockquote>Before diving into the configuration, here’s an overview of the architecture. I’ll connect from my Mac to a bastion host in the public subnet, then use SSH to access an EC2 instance in the private subnet. The private instance has no public IP address and only permits SSH connections from the bastion’s security group.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9speq_pp6GtbQOSPIO77RQ.png" /><figcaption>AWS Bastion Host architecture showing secure SSH access from a local machine to a private EC2 instance.</figcaption></figure><h3>Why use a bastion host?</h3><p>A bastion host can help to:</p><ol><li><strong>Reduce direct exposure:</strong> Private servers do not need public IP addresses simply to support administrative SSH access.</li><li><strong>Centralise access:</strong> Administrators can connect through a designated entry point.</li><li><strong>Restrict network access:</strong> The bastion can accept SSH connections only from approved source IP addresses, while private instances can accept SSH only from the bastion security group.</li><li><strong>Simplify administration:</strong> An administrator can use a controlled path to troubleshoot private servers.</li></ol><blockquote>A bastion host is not automatically secure just because it is in a public subnet. Its operating system, authentication, security groups, patching, monitoring, and access policies still need attention.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nIwUsAtTRHYtZ7S89uJPHw.png" /><figcaption>Figure 1: AWS VPC console in the US East (N. Virginia) Region, where I configured the networking components for this project.</figcaption></figure><p>In this article, I will use the AWS Management Console for networking and EC2 configuration, and the macOS Terminal for SSH access.</p><p><strong>Let’s get our hands dirty.</strong></p><h3><strong>Setting up our Virtual Private Cloud (VPC)</strong></h3><p>Search for VPC in the search bar beside the hamburger icon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q6aQUKv39CIiWpqcaKgwwQ.png" /><figcaption>Figure 2: Searching for VPC on AWS</figcaption></figure><p>Click it, and it will take you to a page like the one below. AWS provides a default VPC in many accounts. I used the existing default VPC for this exercise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XCtl7aHuNTFCPbKmXcAAlg.png" /></figure><p>I used the us-east-1 Region, also known as US East (N. Virginia), throughout the project.</p><p>Keeping the resources in one Region makes it easier to manage the network and locate the relevant instances and networking components.</p><p>The VPC CIDR block was:</p><pre>172.31.0.0/16</pre><blockquote>A VPC is the logically isolated network where AWS resources such as EC2 instances and subnets operate. Its CIDR block defines the IPv4 address range available for the network.</blockquote><h3>Next up: Creating my public &amp; private subnets.</h3><p>Go to the “subnets” subsection on the left-hand side of the screen. You will see a couple of default subnets that came with the default VPC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fqqnbPnPYHo2pyiOE5kSGQ.png" /><figcaption>Figure 3: subnets section</figcaption></figure><p>But for this task, we are going to be creating two new subnets called “my-public-subnet” and “my-private-subnet”. Click on the Create subnet button, and this will take you to the page below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Uz2XtJ-wivW_H_liaCoeWA.png" /></figure><p>Select the default VPC, because that is what we are using.</p><p><strong>Subnet name: </strong>my-public-subnet</p><p><strong>Availability Zone: </strong>United States (N. Virginia) / use-az1 (us-east-1a)</p><p><strong>IPv4 VPC CIDR block:</strong> 172.31.0.0/16 (The default VPC CIDR block AWS assigned to me)</p><p><strong>IPv4 subnet CIDR block: </strong>172.31.128.0/24</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O-QnxkVfNu0HvJIiOxdOgg.png" /><figcaption><em>Configuration of </em><em>my-public-subnet, including its VPC and IPv4 CIDR block.</em></figcaption></figure><p><strong>Subnet name: </strong>my-private-subnet</p><p><strong>Availability Zone: </strong>United States (N. Virginia) / use-az2 (us-east-1b)</p><p><strong>IPv4 VPC CIDR block:</strong> 172.31.0.0/16 (The default VPC CIDR block AWS assigned to me)</p><p><strong>IPv4 subnet CIDR block: </strong>172.31.129.0/24</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DixaJ7L6-bSvkrXVju8GoA.png" /><figcaption><em>Configuration of </em><em>my-private-subnet, including its VPC and IPv4 CIDR block.</em></figcaption></figure><p><strong>Note:</strong></p><blockquote>Both address ranges fit inside the VPC’s <em>172.31.0.0/16</em> range and do not overlap each other.</blockquote><blockquote><strong>What does </strong><strong><em>/24</em> mean?</strong></blockquote><blockquote>CIDR notation describes the size of an IP address range. A <em>/24</em> IPv4 subnet contains 256 total addresses, although AWS reserves five IPv4 addresses in each subnet for its own networking purposes.</blockquote><blockquote>That leaves 251 addresses available for normal use in a standard AWS IPv4 subnet.</blockquote><blockquote>For a small learning environment containing two EC2 instances, these subnet sizes were sufficient.</blockquote><p>The next thing is to click the “Create Subnet” button, and voila we have 2 subnets created under our default VPC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LJUfrl5W7_3Gm1zQk_duqw.png" /></figure><blockquote><strong>A note about Availability Zones</strong></blockquote><blockquote>AWS subnets belong to specific Availability Zones. The assignment for this project required the public and private subnets to be in the same Availability Zone.</blockquote><blockquote>During my setup, the instance details showed the bastion in us-east-1a and the private instance in us-east-1b. This was a configuration detail I needed to verify and correct to satisfy the exact assignment requirements.</blockquote><blockquote>Although instances in different Availability Zones can communicate over their VPC’s local routing, that does not satisfy a requirement that both subnets be in the same Availability Zone.</blockquote><blockquote>When recreating this project, check the Availability Zone shown in the subnet and instance details before launching the instances.</blockquote><h3>Understanding and configuring the Internet Gateway</h3><blockquote>An Internet Gateway (IGW) is a VPC component that enables communication between the VPC and the internet when the necessary routes, addressing, and security rules are in place.</blockquote><p>Go back to the VPC section and click on the Resource Map Section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cKFib5nKPu4_gVgJB0l_YQ.png" /></figure><p>You will see something that looks like a graph — That is a diagram showing the logic of the Internet Gateway for both private and public subnets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vtEloLcwUQkchU-x9jdBBg.png" /><figcaption>Internet Gateway attached to my default VPC.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pXMuUu1a3jgJPadRu8Na_g.png" /><figcaption>VPC resource map showing the Internet Gateway and the public and private subnet associations.</figcaption></figure><p>If you noticed, both “my-private-subnet” and “my-public-subnet” have access to the internet. This should not be; only the public subnet should have access to the internet, while the private subnet should not. We are going to solve this using the route table in the next section.</p><p>Attaching the Internet Gateway to the VPC does not automatically give every subnet internet access. Each subnet’s route table determines whether traffic can be directed through the Internet Gateway. This is why I needed to configure the public subnet’s route table separately from the private subnet’s route table.</p><p>For the public tier, the route table needs a default IPv4 route to the Internet Gateway.</p><p>The relevant route in my configuration was:</p><pre>DestinationTargetState0.0.0.0/0igw-06bb34e9d66a36e1fActive172.31.0.0/16localActive</pre><p>The 0.0.0.0/0 destination represents the default route for IPv4 traffic. The Internet Gateway identifier is the target for that route.</p><p>The local route allows communication within the VPC’s IPv4 range, subject to security rules and other networking controls. For the private subnet, I used a separate route table containing only the local VPC route. I did not add a default route to the Internet Gateway or a NAT Gateway. This meant the private instance did not have direct internet access through either of those gateways.</p><p>The bastion host, on the other hand, was placed in the public subnet, which had a route to the Internet Gateway. It also had a public IPv4 address and the necessary security group rules to allow SSH access.</p><h3>Configuring the private route table and adding it to my private subnet</h3><p>By now, you should see “Route table” on the left-hand side of your screen. Click on it, and you would see a default route table created for you already by AWS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uXBPtguAKN-TEZZ5NTx2wA.png" /></figure><p>We are not making use of the default route table but creating another one. Click on “Create route table&quot;, and it will take you to another page in the image below. Fill in these details:</p><p>Name: my-private-routeTable</p><p>VPC: [select the default VPC]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U77-GBqsANbSNVQ810Chhg.png" /><figcaption>creating a route table</figcaption></figure><p>The next thing is to click “Create route table&quot;, and voila, we have the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V_RkLW37SwoHu1nspq3BSw.png" /></figure><p>Beside the “Routes”, hover your mouse over “Subnet associations” and click on it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yR-U5n4y43XScYsAekaz4g.png" /></figure><p>Then check the “my-private-subnet” and click on “Save associations”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fX3eqaLaUaA1a5HmCqzBpA.png" /></figure><p>You will see this confirmation pop-up next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HQUD7ZN-QDQzZ7QZ2q4M4w.png" /></figure><p>Note:</p><p>The private route table should contain the local VPC route:</p><pre>172.31.0.0/16 → local</pre><p>The reason is straightforward: the private instance should be reachable through the permitted internal network path, rather than being given direct internet routing. However, a NAT Gateway is commonly used when private instances need to initiate outbound internet connections, for example, to download software packages. It is not needed simply to establish an SSH connection from a bastion host to a private instance within the same VPC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mm2oHB0wAuZiPJgrOB3l2w.png" /></figure><p>The “Explicit subnet associations” have been updated with the “my-private-subnet”. Now, let&#39;s go back and confirm in the “Resource map” of the default VPC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9yvqJqfSmttdv-fRvJGZqg.png" /></figure><p>As you can see, the “my-private-subnet” doesn’t have access to the internet anymore.</p><h3>Creating Security Group Rules for the Bastion Security Group and the Private Security Group</h3><p>Next, we need to configure the security groups.</p><p>A security group is a virtual firewall associated with AWS resources such as EC2 network interfaces. It controls permitted inbound and outbound traffic.</p><p>Search for EC2 and click on it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8ujfE6Mt89rK5HTM0BPA-A.png" /><figcaption>Searching for EC2</figcaption></figure><p>This will take us to the EC2 dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sIWliRucrARwffAJe-RDAA.png" /><figcaption>EC2 Dashboard</figcaption></figure><p>On the left-hand side of your screen, scroll down and look for “Security Groups&quot;, which is under “Network and Security”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k7a2WR9Acmh1_EZvfHj5xw.png" /></figure><p>Click on “Security Groups&quot;, and it will take us to its personal dashboard. Immediately, you will see the default VPC that we have been using since the beginning of this project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mRZDxTPpi_Xy6LOlUKYtBA.png" /></figure><p>Click on the “Create security group” button and let us create two security groups.</p><p>The first one, I called it:</p><pre>my-bastion-securityGroup</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9R7ORgqBIJtyE7tBxu0DiA.png" /><figcaption>my-bastion-securityGroup details</figcaption></figure><p>Fill in those details, choose the default VPC, and the next thing is to configure the Inbound rule. Leave the outbound rule as default — the way you met it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wEpgU8UujxR7upUM1X0Ffw.png" /><figcaption>TCP</figcaption></figure><p>Click the &quot;Create security group” button, and that’s done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MEo38EkSwoS1z-abE7F6qQ.png" /></figure><blockquote>Restricting the source to a single public IPv4 address means that only connection attempts originating from that address are permitted by this rule. It is preferable to opening SSH to 0.0.0.0/0 for a small administrative lab.</blockquote><blockquote>The IP address used in the rule must match the public address from which my Mac connects. If your internet provider changes my public IP address, you may need to update the rule.</blockquote><p>This is how you can get your PC IP address. Run this command:</p><pre>curl icanhazip.com</pre><p>The second one is:</p><pre>my-private-securityGroup</pre><p>Fill in those details, choose the default VPC, and the next thing is to configure the Inbound rule. Leave the outbound rule as default — the way you met it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z8GewT6AXC1848dmAtleag.png" /></figure><p>The inbound SSH rule needs to allow connections from the bastion host’s security group.</p><blockquote>This is a useful security-group feature. It expresses the intended relationship between the two tiers: the private instance accepts SSH from network interfaces associated with the approved bastion security group.</blockquote><blockquote>The private instance’s SSH rule should not use 0.0.0.0/0, because that would allow SSH from any IPv4 address at the security-group layer.</blockquote><p>Click the “Create security group” button, and that’s done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rK-bMvQ0QdUdC20kbs9B4Q.png" /></figure><blockquote>Note:<br>At this point, the network rules were intended to support the following path: <strong>My Mac → Bastion security group → Private instance security group</strong></blockquote><p>The rules work together with the subnet route tables, IP addressing, and SSH authentication. No single configuration item guarantees that the connection will succeed by itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9P_Fa02i9lp7HjVwOaUefg.png" /></figure><h3>Launching the Bastion Host and the Private EC2 instance</h3><p>Here we are at the semi-final lap of this whole thing. Let&#39;s create instances for both the Bastion Host and the Private. Scroll up on the left-hand side of your screen, and you will see “Dashboard”. Click on “Dashboard”, and it will take you to the page below. Then, click on “Launch instance”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xs-JiAFVtwnEHUl_g5hYQw.png" /></figure><p>Let&#39;s launch our first instance called “bastion-host (my-public-instance)”. Its role is to serve as the bastion host. The important settings were:</p><ul><li><strong>Operating system:</strong> Ubuntu Server 24.04 LTS</li><li><strong>Instance type:</strong> t3.micro</li><li><strong>Subnet:</strong> my-public-subnet</li><li><strong>Auto-assign public IP:</strong> Enabled</li><li><strong>Security group:</strong> my-bastion-securityGroup</li><li><strong>Key pair:</strong> The bastion host’s own key pair</li></ul><p>The public IPv4 address allowed me to initiate an SSH connection from my Mac, provided the security group and other networking settings allowed it.</p><p>I initially had to pay attention to the network settings when creating the instance. Selecting the correct subnet and enabling the public IP assignment were essential to making the bastion reachable from outside the VPC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*stCVtikh4KQm5S5tkRJGxg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bVa0zdddd0BdKX5uHxN25A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9Ysx1XVTaL4WxVbYoTYXBw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X1KQR6_n0W0C8xU8wqK3Ww.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rsLWbUEZt52m7Ongxa5dqQ.png" /></figure><p>Make sure you create a “key pair” called “bastion-host (my-public-instance) key” and download the key to your PC. Click on “Launch Instance&quot;, and voila, we have created an instance for the Bastion Host.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aVSDSOJ4opTBodzj6nIE8w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bHjWXUPFopKAPD-erYNt3w.png" /></figure><p>This shows we are done with creating and launching the Bastion Host (my-public-instance). The next thing is creating and launching the “my-private-instance”.</p><p>Its role is to demonstrate how a private server can be accessed through the bastion host without requiring a public IP address.</p><p>The important settings were:</p><ul><li><strong>Operating system:</strong> Ubuntu Server 24.04 LTS</li><li><strong>Instance type:</strong> t3.micro</li><li><strong>Subnet:</strong> my-private-subnet</li><li><strong>Auto-assign public IP:</strong> Disabled</li><li><strong>Security group:</strong> my-private-securityGroup</li><li><strong>Key pair:</strong> my-private-instance-key</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S5Dq7bhbBx0L7opDyQBvrQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NUXS6M8SyG7OXSrdwRPbOg.png" /></figure><p>Make sure you create a “key pair” called “my-private-instance key” and download the key to your PC. Click on “Launch Instance”, and voila, we have created an instance for the Private network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RdpYC861Qd7h_yN8AbWaCQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W89_A8q6Q2bPZaN4cSxSeA.png" /></figure><p>This shows we are done with creating and launching the my-private-instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Aigf1lui8Pt_nAVQMGzdJg.png" /></figure><p>This shows the two instances have been created and are running. The next step is to <strong>SSH into the Bastion Host</strong> and then use <strong>SSH Agent Forwarding</strong> to enter the private server.</p><h3>Preparing SSH keys on my Mac</h3><p>Here is the final lap of the project: connecting to the private instance without copying its private key onto the bastion host.</p><p>I used two separate key pairs:</p><ul><li>bastion-host (my-public-instance) key.pem</li><li>my-private-instance-key.pem</li></ul><p>I kept both private key files on my Mac.</p><p>The bastion key authenticated me to the bastion host. The private instance key was used to authenticate me to the private server. Using separate keys helps keep the authentication credentials for the two instances distinct.</p><h4>Starting the SSH agent</h4><p>In my Mac Terminal, I changed into the directory containing the key files and ran chmod 400 to give the file owner read-only permission, while removing all permissions for the group and others. Then I started the SSH agent.</p><pre>chmod 400 &quot;bastion-host (my-public-instance) key.pem&quot;<br><br>chmod 400 my-private-instance-key.pem</pre><pre>eval $(ssh-agent -s)</pre><p>The terminal returned an agent process identifier.</p><p>I then added the private instance key:</p><pre>ssh-add my-private-instance-key.pem<br>ssh-add &quot;bastion-host (my-public-instance) key.pem&quot;</pre><p>To verify that the key had been loaded, I ran:</p><pre>ssh-add -l</pre><p>The output listed the my-private-instance-key.pem and baston-host (my-public-instance) key.premidentity. With both keys loaded, I was ready to connect to the bastion host using SSH agent forwarding. Connect to your Bastion Host using the -A flag, which tells SSH to forward your keys.</p><p>The next command is</p><pre>ssh -A &quot;bastion-host (my-public-instance) key.pem&quot; ubuntu@BASTION_PUBLIC_IP</pre><p>I replaced BASTION_PUBLIC_IP with the actual public IPv4 address of my bastion instance.</p><p>Here is what the command means:</p><ul><li>ssh starts the Secure Shell connection.</li><li>-A enables SSH agent forwarding.</li><li>ubuntu is the default username for my Ubuntu EC2 instance.</li><li>44.200.155.225 is the public IPv4 address of my bastion host.</li></ul><p>The SSH agent already had both private keys loaded, so SSH could use the appropriate identity for authentication without me specifying the key file again.</p><p>When the connection succeeded, my terminal displayed the Ubuntu welcome message, and the prompt changed to:</p><pre>ubuntu@ip-172-31-128-102:~$</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Qa8nif7yaLau5UcWa_tcw.png" /><figcaption><em>Successfully connecting from my Mac to the public bastion host using SSH agent forwarding.</em></figcaption></figure><p><strong>Connecting from the Bastion Host to the Private Instance</strong></p><p>This isthe main objective of the project: reaching a private EC2 instance using its internal IP address.</p><p>After successfully connecting to the bastion, I ran:</p><pre>ssh ubuntu@172.31.129.218</pre><p>This was the private IPv4 address of my private instance during the exercise.</p><p>Because I had connected to the bastion with agent forwarding enabled and had loaded the private instance’s key into my local SSH agent, the SSH client on the bastion could request authentication through that forwarded agent.</p><p>I did not need to copy the private instance’s .pem file onto the bastion host.</p><p>The connection depended on several things being correct:</p><ol><li>My Mac could reach the bastion’s public IP address.</li><li>The bastion’s security group allowed SSH from my public IP.</li><li>The bastion and private instance had a valid network path between them.</li><li>The private instance’s security group allowed SSH from the bastion security group.</li><li>The private instance key was available through the forwarded agent.</li><li>I used the correct username and private IP address.</li></ol><p>The connection succeeded, and the terminal prompt changed to a hostname similar to:</p><pre>ubuntu@ip-172-31-129-218</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NRwNUt89eAVH39DA4BApLQ.png" /><figcaption>Successful SSH hop from the bastion host to the private EC2 instance using its private IPv4 address.</figcaption></figure><h3>Common errors and how to troubleshoot them</h3><p>Cloud networking can feel complicated at first because a failed connection may have several possible causes. The best approach is to investigate one layer at a time.</p><h4><strong>Error 1: SSH connection times out</strong></h4><p><strong>Possible causes:</strong></p><ul><li>The bastion has no public IPv4 address.</li><li>The public subnet’s route table lacks a default route to the Internet Gateway.</li><li>The bastion security group does not permit SSH from the current public IP address.</li><li>The instance is not running or has not finished initializing.</li></ul><p><strong>What to check:</strong></p><ol><li>Confirm the bastion instance is running.</li><li>Confirm it has a public IPv4 address.</li><li>Check the route table associated with the public subnet.</li><li>Check the bastion security group’s inbound rule for TCP port 22.</li><li>Confirm that the source IP in the rule matches your current public IP.</li></ol><p>Avoid opening SSH to the entire internet as a quick fix. Investigate the actual cause first.</p><h4>Error 2: UNPROTECTED PRIVATE KEY FILE</h4><p>When I tried to add the bastion key to my SSH agent, I encountered this error:</p><pre>WARNING: UNPROTECTED PRIVATE KEY FILE!<br>Permissions 0644 for &#39;bastion-host (my-public-instance) key.pem&#39; are too open.<br>This private key will be ignored.</pre><p>The SSH client refused to load the key because its permissions were too open.</p><p>A permission mode of 0644 allows the file owner to read and write the file while other users can also read it. SSH treats this as an unsafe configuration for a private key.</p><p>The issue was not necessarily that the key was incorrect. The file permissions themselves needed to be corrected.</p><p><strong>How I fixed it</strong></p><p>I ran:</p><pre>chmod 400 &quot;bastion-host (my-public-instance) key.pem&quot;</pre><p>The 400 permission mode grants read access to the file owner and removes access for the group and other users.</p><p>I then tried adding the key again:</p><pre>ssh-add &quot;bastion-host (my-public-instance) key.pem&quot;</pre><p>The terminal confirmed that the identity had been added successfully.</p><p>Finally, I verified the loaded identities:</p><pre>ssh-add -l</pre><p>The output showed both the private instance key and the bastion key, confirming that both identities were available to my SSH agent.</p><h4>Error 3: Permission denied (publickey)</h4><p><strong>Possible causes:</strong></p><ul><li>The wrong key pair was used.</li><li>The SSH username is incorrect.</li><li>The required key was not loaded into the SSH agent.</li><li>The connection to the bastion was made without agent forwarding when forwarding was required.</li><li>The EC2 instance was launched with a different key pair than expected.</li></ul><p><strong>What to check:</strong></p><pre>ssh-add -l</pre><p>Confirm that the required key is loaded locally. When using agent forwarding, reconnect to the bastion with the -A option.</p><p>Also verify that you are using the correct key pair for the destination instance. Loading a key into the agent does not guarantee that it is the correct key for every server.</p><h4>Error 4: The private instance cannot be reached</h4><p>Check the private instance’s private IP address and verify that the bastion and private instance are in the same VPC or otherwise have a valid network path.</p><p>Then inspect the private instance’s security group. Its inbound SSH rule should reference the bastion security group, not a broad internet source.</p><p>Finally, confirm that the SSH agent was forwarded and the private instance’s key is available.</p><h3>Reviewing the final architecture</h3><p>After the SSH connection succeeded, I reviewed the network and its configuration against the project requirements.</p><p>The intended architecture consisted of:</p><ul><li>One VPC in us-east-1.</li><li>A public subnet for the bastion host.</li><li>A private subnet for the private instance.</li><li>An Internet Gateway for public-tier connectivity.</li><li>A public route table with a default route to the Internet Gateway.</li><li>A private route table with the local VPC route and no NAT Gateway route.</li><li>A bastion security group restricting SSH to my public IP.</li><li>A private security group allowing SSH from the bastion security group.</li><li>A public bastion EC2 instance.</li><li>A private EC2 instance without a public IP address.</li><li>SSH agent forwarding to connect without copying private keys onto the bastion.</li></ul><h3>Conclusion</h3><p>This project gave me a practical introduction to the relationship between AWS networking and SSH authentication.</p><p>I learned how the VPC and subnet structure define the network, how route tables control traffic paths, how an Internet Gateway supports public connectivity, and how security groups restrict access between the two tiers.</p><p>The most satisfying moment was successfully connecting to the private EC2 instance through the bastion host without copying its private key onto the bastion.</p><p>The SSH key-permission issue also reinforced the value of reading error messages carefully. A connection problem is not always caused by AWS networking; sometimes the cause is on the local machine.</p><p>For anyone starting with AWS, I recommend building a small environment like this and documenting every step. Take screenshots, check your route tables and security groups, and verify the final architecture against the requirements rather than assuming that a successful connection means everything is configured correctly.</p><p>Cloud engineering is not just about getting a command to work. It is about understanding why it works, knowing what it exposes, and being able to explain and verify the design.</p><p>Thanks for reading! I hope this walkthrough makes bastion hosts and private EC2 access easier to understand for other beginners learning AWS.</p><p><em>This article documents a learning exercise, not a production security assessment.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a744509f09c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Interact With MetisDAO Community Testing Season One & Earn Points.]]></title>
            <link>https://biyiemmy.medium.com/how-to-interact-with-metisdao-community-testing-season-one-earn-points-4aa1749d1712?source=rss-cdc9ed87f220------2</link>
            <guid isPermaLink="false">https://medium.com/p/4aa1749d1712</guid>
            <category><![CDATA[points]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[guides-and-tutorials]]></category>
            <category><![CDATA[airdrop]]></category>
            <category><![CDATA[testnet]]></category>
            <dc:creator><![CDATA[Emmanuel Adebiyi]]></dc:creator>
            <pubDate>Thu, 18 Jan 2024 11:18:54 GMT</pubDate>
            <atom:updated>2024-01-18T11:57:05.245Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9PTXupqBAXgNBntMKM7hxg.jpeg" /></figure><p><a href="https://medium.com/u/bd38879543ea">MetisDAO</a> is a Layer 2 infrastructure for projects and users to experience the low cost, high scalability, high speed and ease of use of blockchain technology without jumping out of the Ethereum ecosystem. They aim to make @Ethereum accessible to everyone.</p><p>One of the core stuff that makes <a href="https://ethereum.org/developers/docs/scaling#layer-2-scaling">L2 networks</a> work is the sequencer and across all <a href="https://ethereum.org/en/developers/docs/scaling/optimistic-rollups">optimistic rollups</a>, their sequencer is centralized which is against the core attributes of the blockchain. This made all Ethereum L2s subject to single-points-of-failure due to sequencer centralization. In other words, if their single sequencer node stops working, the network stops.</p><p><a href="https://metis.io/">Metis</a> network took it upon themselves to have a decentralised sequencer in partnership with <a href="https://medium.com/u/91f33735bd6a">ZKM</a>. This will enable 24/7 liveness, enhanced security, enhanced censorship-resistance, revenue sharing etc. Recently, in a tweet, they announced their first Community Testing tagged Season One which will last for two weeks.</p><p>This is one such opportunity that offers participants the chance to earn rewards while testing and providing feedback on the Metis platform. If you’re interested in participating in the Metis Community Testing program, here’s a step-by-step guide to get started:</p><ol><li>Visit the Metis Community Testing website -[<a href="https://decentralize.metis.io/">https://decentralize.metis.io/</a>]</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SaE1z5ASg7Um4VhD3zhaEA.png" /></figure><p>2. Connect your wallet to the website.<br>3. Scroll down below to the “<strong>Ecosystem dApps</strong>” section.<br>4. Click on “Claim Test Tokens”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9ip97pUdvFzawqFQRP1hiA.png" /></figure><p>5. After clicking on it a pop-up window will appear with instructions on how to claim your tokens then click on “Claim”.</p><p><strong>Note: </strong>Make sure you have Telegram installed on your device.</p><p>6. This will take you to Telegram. Supply your address with the bot using this command [/start YOUR_ADDRESS]. Test tokens in the form of <a href="https://twitter.com/search?q=%24METIS&amp;src=cashtag_click">$METIS</a> <a href="https://twitter.com/search?q=%24USDC&amp;src=cashtag_click">$USDC</a> <a href="https://twitter.com/search?q=%24WBTC&amp;src=cashtag_click">$WBTC</a> <a href="https://twitter.com/search?q=%24WETH&amp;src=cashtag_click">$WETH</a> <a href="https://twitter.com/search?q=%24DAI&amp;src=cashtag_click">$DAI</a> <a href="https://twitter.com/search?q=%24USDT&amp;src=cashtag_click">$USDT</a> worth $200 will be sent to the address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mKfxXcs3ZLyAHKktiBlZRQ.jpeg" /></figure><p>7. Go back to the website — [<a href="https://decentralize.metis.io/">https://decentralize.metis.io/</a>]. Then you can contribute to each Ecosystem dApps, completing all the eligible actions to earn points. Each dApp contains instructions on how to earn XP points and the number of XP points you will receive for each milestone completed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B-s5yFWjvcWAyYSN5OSOkw.png" /></figure><p><strong>Note:<br></strong>1. For repeated actions, the XP that each participant receives for completing that action will decrease by 25%. So you can redo the tasks again and again — earning more XPs. <br>2. There will be riddles/questions shared on <a href="https://twitter.com/MetisDAO">@MetisDAO</a> and answering them correctly serves as boosters.</p><p><strong>How to participate in Ecosystem dApps</strong></p><ol><li><strong>Netswap:<br>Swap tokens (300 pts): </strong><br>- Go to [<a href="https://netswap.io/#/swap">https://netswap.io/#/swap</a>].<br>- Click on swap.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bIgtBsrJRVwV-QLDIgJzNA.png" /></figure><p><strong>Provide LP (500 pts):<br>- </strong>Go to [<a href="https://netswap.io/#/pool">https://netswap.io/#/pool</a>].<br>- Click on “Create Pool”.<br>- Click on “Supply”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2bcIzsxYEjunzKqNKdt5SQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6QOkcPY2uo6Q09jvgTn85g.png" /></figure><p>2. <strong>MIDAS:</strong></p><ul><li>Go to [<a href="https://dev.midas.game/">https://dev.midas.game/</a>].</li><li>Scroll down.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ppK4A4RWod_E7h0_wQPKqw.png" /></figure><ul><li>Click on “BUY TICKETS”.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hsM1JpAbYDONkASTvrAwMA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OkZA47noqGHHhOx2k4Ci2Q.png" /></figure><ul><li>Click on “Mint Tokens”, “Approve” and “Buy Instantly” while confirming each transaction.</li></ul><p>3. Hummus:<br> <strong>Swap tokens (300 pts): </strong><br>- Go to [<a href="https://app.hummus.exchange/">https://netswap.io/#/swap</a>].<br>- Click on swap.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*juTlPuNCnbPQmy1fdFVTYw.png" /></figure><p><strong>Provide LP (500 pts):<br>- </strong>Go to [<a href="https://app.hummus.exchange/pool">https://app.hummus.exchange/pool</a>], then scroll down.<br>- Go to the “Quad Crypto” section and click on “Deposit”.<br>- Click on “Review” &amp; “Add Liquidity” respectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tnkppi0LNgRodPrDWTsBWg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iU1ikSAHEjn_gC_6_2QA0g.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4aa1749d1712" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Comparative Analysis of zkVM & zkEVM]]></title>
            <link>https://biyiemmy.medium.com/a-comparative-analysis-of-zkvm-zkevm-49a9e39a0600?source=rss-cdc9ed87f220------2</link>
            <guid isPermaLink="false">https://medium.com/p/49a9e39a0600</guid>
            <category><![CDATA[kvm-z]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[rollup]]></category>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[zkevm]]></category>
            <dc:creator><![CDATA[Emmanuel Adebiyi]]></dc:creator>
            <pubDate>Sun, 10 Dec 2023 14:45:24 GMT</pubDate>
            <atom:updated>2023-12-10T14:45:24.073Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GYNKFocw4P4MpLdcWo38Gg.jpeg" /></figure><p><strong>What is zkVM?</strong></p><p><strong>zkVM, </strong>or <em>zero-knowledge virtual machine is </em>a transaction format for a shared, multi-asset, cryptographic ledger. A virtual machine that ensures secure and verifiable trustworthiness through zero-knowledge proofs. This machine facilitates the transition from an old state and program to a new state in a trusted manner. Furthermore, it can optimize its environment, making the integration of zero-knowledge proofs into on-chain transactions more cost-effective, efficient, and user-friendly.</p><p>Apart from being a virtual machine, it is also a versatile machine engineered to facilitate zero-knowledge proofs across diverse computational tasks. It is not Ethereum-centric which means it seamlessly integrates with various computations and chains.</p><pre>Key Features of zkVM:<br><br>- Efficient and LightWeight<br>- Ideal for simple, high-frequency operations<br>- Compartible with all networks</pre><p>The functionality of <strong>zkVM</strong> includes:</p><ol><li>Customizability: it allows for the creation of custom contracts that support realistic use cases through programmable constraints over encrypted data and assets. This flexibility enables a wide range of higher-level protocols without changing the entire network.</li><li>Confidentiality: it encrypts the quantities and types of assets, ensuring that the asset flow is hidden on the transaction level. This allows individuals and organizations to safely perform transactions directly on the shared ledger, eliminating the need for separate databases.</li><li>Efficiency: utilizes a compact data model that can fit a few kilobytes. Transaction verification is highly parallelizable and takes only 1–2 milliseconds per CPU core. Nodes can quickly bootstrap from a network-verified snapshot, and devices with limited data plans can save bandwidth by tracking relevant state updates without verifying all transactions.</li><li>Simplicity: does not require special compilers, debuggers, or optimizers. Its abstractions align well with real-world concepts, and the technology stack consists of a small number of well-reviewed inventions from the global community of cryptographers and engineers.</li></ol><p><strong>What is zkEVM?</strong></p><p><strong>zkEVM, or </strong><em>zero-knowledge ethereum virtual machine is </em>a virtual machine compatible with the Ethereum Virtual Machine [EVM] and is designed to be zero-knowledge proof-friendly. It ensures the correctness of programs, operations, as well as inputs and outputs. It is built on top of the Ethereum blockchain, thereby the zkEVM takes on Ethereum’s pros and cons.</p><p>It is an extension of <a href="https://medium.com/@biyiemmy/wtf-is-snarks-and-zksnarks-8a05455ed297">zkSNARKs</a> [Zero-Knowledge Succinct Non-Interactive Arguments of Knowledge] tailored specifically for the Ethereum ecosystem and a specialized system for generating zero-knowledge proofs for the Ethereum Virtual Machine (EVM). zkEVM executes the EVM and produces zero-knowledge proofs to validate their execution.</p><p>In the<strong> zkEVM</strong> framework, the EVM is treated as a computational unit, zkEVM produces both the result of the computation through the EVM and zero-knowledge proofs confirming the validity of the execution. This allows for integration into zero-knowledge rollups, which are layer-2 scaling solutions designed to enhance transaction throughput and reduce costs.</p><pre>Key Features of zkEVM:<br><br>- Optimized compatibility with Ethereum network alone<br>- Game changer for privacy on the Ethereum network<br>- zkEVM model that fully emulates the Ethereum model</pre><p>Some of the benefits of<strong> zkEVM</strong> include:</p><ul><li>Privacy: Sensitive transaction data is kept private and not exposed on the blockchain.</li><li>Scalability: Private transactions do not bloat the blockchain.</li><li>Flexibility: Applications can choose what data to keep public and what to keep private.</li><li>Security: Validations and computations are still verifiable without revealing inputs.</li></ul><p><strong>Comparative Analysis:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Xn9FZZIynDmoXQudGi1Lg.jpeg" /></figure><p>zkEVM’s compatibility refers to its ability to be compatible with the Ethereum Virtual Machine (EVM) ecosystem. This includes compatibility at the Solidity language level, EVM bytecode level, and even at the EVM specification level. It aims to provide a seamless integration with existing Ethereum infrastructure and development tools.</p><p>On the other hand, zkVM’s compatibility refers to its ability to support smart contracts written in various programming languages, not just Solidity or Cairo. It envisions a universal zkVM that can run smart contracts in languages like Rust, C++, Go, and Solidity. The goal is to provide a zero-knowledge runtime environment for developers in any language, expanding the EVM ecosystem beyond its current limitations.</p><p>The implementation of zkEVM is complex due to the need to refactor the entire state transition of Ethereum using zero-knowledge proof techniques while zkVM is easier to build compared to zkEVM as it doesn’t have to deal with the technical debt of the EVM and can be more flexible and optimized. However, one drawback of zkVM is that it may not have the same level of compatibility with the existing Ethereum ecosystem as zkEVM.</p><p>zkVM, in the realm of web3 development, holds the promise of emerging as the future of Web3 development, unlike zkEVM. It achieves this by offering a virtual machine that is not only more flexible but also optimized for the construction of decentralized applications.</p><p>In summary, zkEVM is focused on being EVM-compatible and enhancing the Ethereum ecosystem with zero-knowledge-proof capabilities, while zkVM offers a more versatile [compatibility across different programming languages] and user-friendly approach to running programs securely with zero-knowledge proofs. Also, has greater potential and flexibility beyond the limitations of the EVM.</p><p>Overall, both zkEVM and zkVM offer solutions for improving scalability, privacy, and security in blockchain networks, while <strong>zkVM</strong> specifically expands the capabilities of the virtual machine for various computational tasks.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FcfHB9X_Dr1Q&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DcfHB9X_Dr1Q&amp;image=http%3A%2F%2Fi.ytimg.com%2Fvi%2FcfHB9X_Dr1Q%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/7f646833872b7b8393989f7673babd04/href">https://medium.com/media/7f646833872b7b8393989f7673babd04/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49a9e39a0600" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hybrid Rollup: Optimistic & ZK Combo]]></title>
            <link>https://biyiemmy.medium.com/hybrid-rollup-optimistic-zk-combo-9233a8b594aa?source=rss-cdc9ed87f220------2</link>
            <guid isPermaLink="false">https://medium.com/p/9233a8b594aa</guid>
            <category><![CDATA[zkrollup]]></category>
            <category><![CDATA[optimistic-rollup]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[hybrid-rollup]]></category>
            <dc:creator><![CDATA[Emmanuel Adebiyi]]></dc:creator>
            <pubDate>Sat, 09 Dec 2023 06:17:20 GMT</pubDate>
            <atom:updated>2023-12-09T06:26:38.698Z</atom:updated>
            <content:encoded><![CDATA[<p>Hybrid Rollup is the combination of optimistic rollup and zero-knowledge proofs to address the shortcomings of each while providing higher throughput and scalability. It combines the benefits of optimistic rollups and zero-knowledge proofs to provide higher throughput, lower costs and stronger security compared to using just one approach. Optimistic rollups are faster but rely on fraud proofs to detect any invalid transactions, while zero-knowledge rollups are more secure but have lower speeds.</p><p>The hybrid approach uses:</p><ul><li>Optimistic rollups for most transactions to maximize speed</li><li>Zero-knowledge proofs when needed to provide additional security</li></ul><p>This allows hybrid rollups to achieve:</p><ul><li>Throughput that is significantly faster than Layer 1 blockchains</li><li>Costs that are lower than using only zero-knowledge proofs</li><li>Security that is strengthened by the option to use zero-knowledge proofs when needed</li></ul><p>Hybrid rollups aim to provide faster transaction speeds than standard Layer 1 blockchain, maintain high security through zero-knowledge proofs, and reduce costs compared to rollups that only use zero-knowledge proofs</p><pre><strong>Key points about hybrid rollups:<br><br>- They combine optimistic and zk-rollup approaches to optimize<br>  for speed and cost.<br>- Optimistic rollups provide faster transaction speeds <br>  but rely on fraud proofs<br>- Zero-knowledge rollups provide stronger security but have lower throughput<br><br>The hybrid approach uses optimistic rollups for most transactions and <br>zero-knowledge only when needed for added security.</strong></pre><p>According to <a href="https://medium.com/u/91f33735bd6a">ZKM</a>, the idea behind Hybrid Rollup is to create a chimera by putting a ZK Rollup inside an Optimistic Rollup body. This design allows for a more comprehensive solution that can cater to different user needs and wants. By combining the two Rollup types, Hybrid Rollup aims to provide a seamless user experience with higher throughput.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*-9BnpR5C47PT-P068l1j6A.jpeg" /><figcaption><em>Hybrid Rollup Process Diagram (User-Centric View) from ZKM</em></figcaption></figure><p>The design goals of Hybrid Rollup include addressing the conflicting needs of near-instant withdrawals and longer fraud challenge windows, as well as solving the stability problem of the Ethereum Virtual Machine (EVM). The concept of Hybrid Rollup is to cover as many use cases as possible and provide a smoother user experience.</p><h3>The Hybrid Approach</h3><p>ZKM is taking a hybrid approach to their rollup solution by combining the benefits of both optimistic and ZK rollups. This allows them to achieve:</p><ul><li>Higher throughput than optimistic rollups alone</li><li>Lower cost than ZK rollups alone</li></ul><p>By using optimistic rollups for simple transactions and ZK rollups for more complex ones, they can optimize for speed and cost-effectiveness.</p><p>Optimistic rollups are fast but require fraud proofs to be included in the main chain. ZK rollups are more secure since they provide fraud proofs within the rollup itself, but they are slower to generate.</p><p>By splitting transactions between the two roll-up types, ZKM can:</p><ul><li>Handle simple transactions quickly on optimistic rollups</li><li>Use ZK rollups for transactions that require higher security</li><li>Avoid including as many fraud proofs on the main chain, reducing costs</li></ul><p>This hybrid approach seeks to balance the trade-offs between speed, security and cost for an optimal rollup solution. It allows ZKM to cater to a wide range of transactions and users with different needs</p><p><strong>How ZKM are working towards their implementation</strong></p><p>ZKM is working towards the implementation of Hybrid Rollup by developing its own ZK Rollup component called zkMIPS. This component is designed to be an efficient machinery for the Hybrid Rollup process.</p><p>The goal is to create capable components that can address the shortcomings of both Optimistic Rollup and ZK Rollup. By combining the strengths of both rollup types, Hybrid Rollup aims to cover a broader spectrum of use cases and provide a smoother user experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*LdQlfQiF8XPO2BZ7KJudVA.png" /><figcaption><em>Hybrid Rollup Function Diagram from ZKM</em></figcaption></figure><p>For a more in-depth look into ZKM’s Hybrid Rollup implementation, check out their detailed blog post <a href="https://www.zkm.io/blog-zkm/hybrid-rollup-a-birds-eye-view"><em>here</em></a>.</p><p><strong>Conclusion</strong></p><p>Hybrid rollups have the potential to deliver the best of both optimistic and zero-knowledge rollups: high throughput, low costs and strong security. They represent an innovative approach to scaling blockchain networks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9233a8b594aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlocking Interoperability: ZK Bridge and Trustless Cross-Chain Bridging.]]></title>
            <link>https://biyiemmy.medium.com/unlocking-interoperability-zk-bridge-and-trustless-cross-chain-bridging-7ee5ca5e1b52?source=rss-cdc9ed87f220------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ee5ca5e1b52</guid>
            <category><![CDATA[zkrollup]]></category>
            <category><![CDATA[zkbridge]]></category>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[interoperability]]></category>
            <category><![CDATA[crypto]]></category>
            <dc:creator><![CDATA[Emmanuel Adebiyi]]></dc:creator>
            <pubDate>Fri, 08 Dec 2023 08:11:09 GMT</pubDate>
            <atom:updated>2023-12-08T08:30:17.445Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>INTRODUCTION</strong></p><p>Today, we are embarking on the forefront of blockchain innovation, zkBridge emerges as a groundbreaking cross-chain bridge, distinguished by its trustless nature, efficiency, and robust security.</p><p>Unlike conventional approaches that hinge on external trust assumptions through committees, zkBridge relies on succinct proofs and cryptographic assumptions to ensure a resilient and secure platform.</p><p>This article explores the potential of ZK Bridge in overcoming the interoperability challenge in the blockchain space. Join me as we dive into this cutting-edge technology and explore how zkBridge is reshaping the landscape of cross-chain interoperability.</p><p><strong>What is ZK Bridge?</strong></p><p>ZK (Zero-Knowledge) can be utilized to facilitate interoperability between blockchains via trustless cross-chain bridging by providing cryptographic proofs that ensure the correctness of block headers on remote blockchains.</p><p>In the zkBridge solution, the block header relay network relays block headers along with correctness proofs, and an updater contract verifies and accepts these proofs. The updater contract maintains a list of recent block headers and provides an API for application contracts to obtain verified block headers.</p><pre><strong>zkBridge is a trustless, efficient, and secure cross-chain bridge that <br>enables interoperability between different blockchains.<br> <br>It utilizes succinct non-interactive proofs (zk-SNARKs) to ensure the <br>correctness of block headers on remote blockchains without relying on <br>external trust assumptions or centralized committees.</strong></pre><p>By using zk-SNARKs (Zero-Knowledge Succinct Non-Interactive Arguments of Knowledge), zkBridge achieves trustlessness and security without relying on external trust assumptions.</p><p>The correctness of block headers is proven by zk-SNARKs, ensuring that as long as the connected blockchains and the underlying light-client protocols are secure, zkBridge is secure.</p><p>This eliminates the need for a central or Proof-of-Stake committee for block header validation, resulting in a permissionless and decentralized solution.</p><p><strong>Key features of zkBridge:</strong></p><ol><li>Trustless and Secure: The correctness of block headers is proven using zk-SNARKs, eliminating the need for external trust assumptions. As long as the connected blockchains and the underlying light-client protocols are secure, zkBridge is secure.</li><li>Permissionless and Decentralized: Any node can join the network to relay block headers, generate proofs, and claim rewards. zkBridge does not rely on a centralized or Proof-of-Stake committee, ensuring better decentralization.</li><li>Extensible: Smart contracts using zkBridge can easily invoke the updater contract to retrieve verified block headers and perform application-specific verification and functionality. This separation of the bridge from application-specific logic allows for maximum flexibility and easy development of applications on top of the bridge.</li><li>Universal: The block header relay network and the underlying proof scheme in zkBridge are universal as long as the blockchain supports a light client protocol.</li><li>Efficient: zkBridge employs a highly optimized recursive proof scheme called deVirgo, which significantly reduces the proof generation time. Block headers can be relayed within a short time, and the on-chain verification cost is minimized.</li><li>Security: zkBridge combines the security of zk-SNARKs, the flexibility of smart contracts, and the efficiency of optimized proof generation to provide a practical and secure cross-chain bridge solution.</li></ol><p>Furthermore, zkBridge is extensible, allowing smart contracts to invoke the updater contract to retrieve verified block headers and perform application-specific verification and functionality. This separation of the bridge from application-specific logic enables maximum flexibility in developing applications on top of the bridge.</p><p>In terms of efficiency, zkBridge utilizes a highly optimized recursive proof scheme. Block headers can be relayed within a short time, and the relayed information can be quickly verified on-chain, making the cross-chain bridging process practical and efficient.</p><p><strong>CONCLUSION:</strong></p><p>Leveraging ZK and zk-SNARKs, zkBridge provides a secure, trustless, permissionless, decentralized, extensible, and efficient solution for interoperability between blockchains.</p><p><strong>References:</strong></p><ol><li>Short <a href="https://x.com/biyiemmy/status/1733017245775700318?s=20">post</a> explaining ZK Bridge.</li><li>zkBridge: Trustless Cross-chain Bridges Made Practical by Tiancheng Xie et al.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ee5ca5e1b52" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Deep Dive into DEX Aggregators on the Metis Network and the Latest Quest on Layer3]]></title>
            <link>https://biyiemmy.medium.com/a-deep-dive-into-dex-aggregators-on-the-metis-network-and-the-latest-quest-on-layer3-f1a733863ec7?source=rss-cdc9ed87f220------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1a733863ec7</guid>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[layer-3]]></category>
            <category><![CDATA[dex]]></category>
            <category><![CDATA[time]]></category>
            <category><![CDATA[metisdao]]></category>
            <dc:creator><![CDATA[Emmanuel Adebiyi]]></dc:creator>
            <pubDate>Sun, 26 Nov 2023 11:19:47 GMT</pubDate>
            <atom:updated>2023-11-26T11:21:39.100Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction</strong></p><p>Explore the ever-evolving world of Decentralized Finance (DeFi) with the latest quest on <a href="https://www.metis.io/">Metis Network</a>, presented by <a href="https://layer3.xyz/">@layer3xyz</a>.</p><p>This engaging journey invites participants to dive into the realm of decentralized exchanges (DEX) aggregators, featuring prominent platforms such as <a href="https://twitter.com/HeraAggregator">@HeraAggregator</a>, <a href="https://twitter.com/OpenOceanGlobal">@OpenOceanGlobal</a>, and <a href="https://twitter.com/CryptoRubic">@CryptoRubic</a>.</p><p>This is an opportunity to expand your knowledge about these aggregators and also a chance to earn rewards through limited-edition NFTs from Metis Network.</p><p><strong>Unraveling Metis Network and Its DEX Aggregators</strong></p><p>Metis network is a dynamic player in the DeFi space, emphasizing its commitment to fostering user-friendly decentralized solutions. Also, an Ethereum Layer 2 roll-up platform that offers low gas fees, fast transactions, native storage and high security.</p><p>Metis aims to solve some of Ethereum’s biggest challenges, including scalability, transaction speed, and high gas fees. Recently, they <a href="https://metisdao.medium.com/metis-andromeda-2023-roadmap-646117a74b5c">announced</a> that they are building the first-of-its-kind Hybrid rollup for Ethereum, poised to be delivered after decentralizing the sequencer.</p><p>Let&#39;s dive into DEX Aggregators on Metis Network:</p><ol><li><a href="http://app.hera.finance/"><strong>Hera Finance:</strong></a><strong> </strong>AI-Powered Multichain Dex Aggregator which directly connects AMM pools no matter the provider and will find all direct/multihop routes between any two tokens on multichain. They are live on Metis and Arbitrum.</li><li><a href="http://openocean.finance/"><strong>OpenOcean</strong></a><strong>: </strong>leading DEX aggregator, integrating 1000+ liquidity sources across 30+ blockchains into one seamless trading interface, to bring users the best swap returns on their DeFi trading.</li><li><a href="http://rubic.exchange/"><strong>Rubic</strong></a><strong>: C</strong>ross-Chain Tech Aggregator for users + tools for dApps. Trade 15,500+ tokens across 70+ networks, through the aggregation of 220+ DEXs and bridges.</li></ol><p><strong>Metis Quest on Layer3— A Learning Expedition in DeFi</strong></p><p>The objective of this DeFi quest is to enhance the understanding of Metis Network and DEX aggregators while unlocking token swap aggregation capabilities on the Network.</p><p>How to Participate:</p><ol><li>To begin this quest, go to <a href="https://layer3.xyz/quests/aggregate-on-metis">Layer3</a></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8gHlLKWv8jpI000JPqFMqQ.png" /></figure><p>2. Click on either “Log in to start” or “Sign in”. This will show you a pop where you can connect the dapp to your wallet. For new users, set up your wallet on Metis via the <a href="https://docs.metis.io/dev/readme/metamask-setting-how-to-connect-your-metamask-crypto-wallet-to-metis-platform">link</a>.</p><p>3. Accept the sign-in request.</p><p>4. Embark on the quest, which consists of 4 steps:</p><ul><li>Intro to Aggregators</li><li>Hold $Metis for gas</li><li>Swap at least $20 in assets</li><li>Share on Social</li></ul><p>Voila! You’ve completed the Quest and earned a limited-edition NFT.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_g6JxZxMa6pgpHvoXgpTPg.png" /></figure><p><strong>Conclusion</strong></p><p>In conclusion, this deep dive into DEX aggregators on the Metis Network and the accompanying quest marks a significant step in understanding and embracing the transformative potential of decentralized finance. The exploration of platforms such as <a href="https://medium.com/u/82fbb4b95398">Hera Finance</a>, <a href="https://medium.com/u/1e5ac1bbe1a6">OpenOcean</a>, and <a href="https://medium.com/u/3021d7d0499f">Rubic</a> within the Metis ecosystem not only provides insights into streamlined trading experiences but also underscores the network’s commitment to user-friendly solutions.</p><p>As we witness the increasing adoption of decentralized technologies, the role of DEX aggregators in simplifying complex processes becomes more apparent. The rewards, including limited-edition NFTs, not only serve as a token of achievement but also signify active participation in the ongoing evolution of decentralized finance.</p><p>Looking ahead, the future of trading holds exciting possibilities, with DEX aggregators at the forefront of innovation within the Metis Network. As users continue to explore, learn, and engage with these platforms, the decentralized finance ecosystem is poised for further growth and transformation, offering a more inclusive and rewarding experience for all participants.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1a733863ec7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WTF is SNARKS and zkSNARKs?]]></title>
            <link>https://biyiemmy.medium.com/wtf-is-snarks-and-zksnarks-8a05455ed297?source=rss-cdc9ed87f220------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a05455ed297</guid>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[zksnark]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[snark]]></category>
            <dc:creator><![CDATA[Emmanuel Adebiyi]]></dc:creator>
            <pubDate>Fri, 24 Nov 2023 14:21:54 GMT</pubDate>
            <atom:updated>2023-11-24T14:23:07.303Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b1_yv9KRU6NvtAgDwQFLMw.jpeg" /></figure><p><strong>Introduction:</strong><br>In the advancing digital age of cryptography and blockchain technology, the quest for secure and private transactions has led to the development of advanced cryptographic tools.</p><p>One of the recent innovations is Zero-Knowledge Succinct Non-Interactive Arguments of Knowledge (zkSNARKs) as a robust solution with the potential to revolutionize data privacy, security, and the scalability of blockchain networks.</p><p>We will dive into the concepts of SNARKs and zkSNARKs in this article, exploring their properties and diverse applications.</p><p><strong>Understanding SNARKs:<br></strong>SNARKs, or Succinct Non-Interactive Arguments of Knowledge, are cryptographic proof systems that allow one party to prove to another that a certain statement is true without revealing any information about the statement itself.</p><p>The term “succinct” means to produce short and easy-to-verify proofs, even for complex statements as they highlight the efficiency of SNARKs.</p><p><strong>Properties of SNARKs:<br>1. </strong>Zero-Knowledge: The prover can convince the verifier of the truth of a statement without disclosing any information beyond the statement’s validity. This property ensures privacy, making SNARKs ideal for applications where data confidentiality is very crucial.</p><p><strong>2</strong>. Non-Interactive: Unlike other proof systems, SNARKs are non-interactive, meaning that a single proof is sufficient to convince the verifier. This simplicity makes them practical for a wide range of applications.</p><p><strong>3.</strong> Completeness: If the statement is true, the verifier would be convinced of the truth of the statement by the prover</p><p><strong>4.</strong> Soundness: The prover can only convince the verifier of the truth of the statement if that statement itself is actually true, except with some very small probability.</p><p><strong>Applications of SNARKs:<br>i. </strong>Blockchain Scalability: SNARKs can be employed to reduce the computational load required to validate transactions on a blockchain. By generating succinct proofs, SNARKs enable efficient verification, contributing to the scalability of blockchain networks such as Ethereum.</p><p><strong>ii.</strong> Secure Multi-Party Computation: SNARKs find applications in secure multi-party computation, allowing multiple parties to jointly compute a function over their inputs while keeping those inputs private.</p><p><strong>Understanding zkSNARKs</strong></p><p>Zero-Knowledge Succinct Non-Interactive Arguments of Knowledge (zkSNARK) is a protocol that lets one party — the prover, prove to another party — the verifier, that a statement is true without revealing the information itself.</p><p>It is a specific type of SNARK that adds zero-knowledge properties to the succinct and non-interactive aspects. zkSNARKs came into the limelight by the implementation of zk-Rollups in the Layer 2 Chains, providing scalability to the Layer 1 Chain.</p><p><strong>Properties of zkSNARKs:</strong></p><ol><li>Zero-Knowledge Succinctness: zkSNARKs inherit the zero-knowledge and succinctness properties of SNARKs, allowing for scalability, transparency, efficiency, and private proofs.</li><li>Non-Interactive: Like SNARKs, zkSNARKs are non-interactive, making the proof procession simpler.</li></ol><p><strong>Applications of zkSNARKs:</strong></p><p>a. Privacy in Cryptocurrencies: zkSNARKs are widely used in privacy-focused cryptocurrencies to enable shielded transactions. Users can prove the validity of a transaction without revealing the sender, receiver, or the transaction details.</p><p>b. Identity and Access Management: zkSNARKs can be applied to authenticate users or entities without disclosing sensitive information, offering a robust solution for identity and access management systems.</p><p>c. Decentralized Finance (DeFi): zkSNARKs can increase privacy and security by allowing DeFi users to prove ownership or eligibility for certain transactions without revealing specific information about themselves.</p><p><strong>Conclusion</strong></p><p>SNARKs and zkSNARKs represent cutting-edge cryptographic tools with transformative potential. Their attributes such as zero-knowledge, succinctness, and non-interactive properties make them valuable in various fields, from blockchain scalability to privacy-centric applications.</p><p>As technology advances, this cryptographic knowledge will likely play a pivotal role in shaping the future of secure and private digital interactions.</p><p><strong>References:</strong></p><p><strong>1.</strong> <a href="https://x.com/biyiemmy/status/1726856205614690411?s=20">Short thread on “A High-Level Introduction To Zero Knowledge And SNARKS” by Jeroen van de Graaf</a>.<br><strong>2.</strong> <a href="https://youtu.be/7pWxCklcNsU?si=TXSCim5RgZZxmZgG">ROLLUPS — The Ultimate Ethereum Scaling Strategy? Arbitrum &amp; Optimism Explained</a>.<br><strong>3.</strong> A Review of zk-SNARKs by Thomas Chen et al.<br><strong>4.</strong> An Exploration of Zero-Knowledge Proofs and zk-SNARKs by Professor. David Crosbie.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a05455ed297" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>