<?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 Manish Kumar on Medium]]></title>
        <description><![CDATA[Stories by Manish Kumar on Medium]]></description>
        <link>https://medium.com/@manishprivet?source=rss-7d6d2d7e2bab------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*u1OvvCRpj8QhNThxsgskoQ.jpeg</url>
            <title>Stories by Manish Kumar on Medium</title>
            <link>https://medium.com/@manishprivet?source=rss-7d6d2d7e2bab------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 15:00:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@manishprivet/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[Setup your personal VPN in the cloud, free for a lifetime]]></title>
            <link>https://medium.com/tech-iiitg/setup-your-personal-vpn-in-the-cloud-free-for-a-lifetime-52e93b3e30b5?source=rss-7d6d2d7e2bab------2</link>
            <guid isPermaLink="false">https://medium.com/p/52e93b3e30b5</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[wireguard]]></category>
            <category><![CDATA[vpn]]></category>
            <category><![CDATA[free-vpn]]></category>
            <category><![CDATA[oracle-cloud]]></category>
            <dc:creator><![CDATA[Manish Kumar]]></dc:creator>
            <pubDate>Thu, 25 Nov 2021 12:48:57 GMT</pubDate>
            <atom:updated>2021-11-25T12:48:57.148Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TtbQDQu-kAGC68dZK9RMXg.png" /></figure><p>In the past 2–3 decades, Technology and the Internet have provided us with communication access, access to knowledge at our fingertips, and so much more, something we never had before. This results in us having to be extra careful with security on the internet. Post-Snowden era, the need for privacy has increased a lot for us, and one of the most common services to protect your internet privacy is using a VPN or a Virtual Private Network</p><p>A VPN is a digital tool/service, that lets you connect your personal device to another computer somewhere on the globe, through a private tunnel, and lets you access the internet through that computer as if their computing devices were directly connected to the private network. VPNs encrypt your internet traffic and disguise your online identity. This makes it more difficult for third parties to track your activities online and steal data. The encryption takes place in real-time.</p><p>There are multiple VPN services that you can get online, both paid and free. But, there’s a common primary concern in all of them, i.e., the servers that they use for VPN services, are managed by them. That means, that even though your browsing history and identity are hidden from your ISP or public, the people who manage those servers have complete access over that, and it’s up to their discretion to log them. Many top VPN services out their <em>promise</em> that they do not collect user’s browsing data, but it’s just their word against the world, and you can never know for sure whether they’re telling the truth or not. Plus they charge a hefty amount for their services, which you’re might or might not willing to pay.</p><p>So, what is the solution? Above, I mentioned that people who control those VPN servers have full access to your data. So, if you were able to host the VPN on your own server, that would mean that no person, other than yourself, could access that data, right? That’s exactly what we’re going to do in this blog, and trust me, once you set it up, you’ll have your own personal VPN, for all your devices, and you won’t have to pay a single dime for it, <strong>for a lifetime!!!</strong></p><p>In the modern era of cloud computing, getting your own Virtual Private Server (VPS) is easy as clicking a button. But, before that, you might ask what is a VPS. A VPS/Instance/Compute is basically a computer, that’s sitting at a remote place in large data centres, among thousands of other servers just like it, and you can rent it, use it, pay for what you use, and then dump it. It’s simple as that. There are some major players in the Cloud Computing field, like Amazon AWS, Microsoft Azure, Google Cloud and Oracle Cloud. These provide a plethora of on-demand services, but what we’re most interested in is the basic VPS service, and it’s provided by all of them.</p><p>Now, the title says that you can set up a VPN for free for a lifetime, but for that, you’ll need a VPS that you can rent for free. Now, among the 4 major cloud providers mentioned above, only two of them, i.e., Google Cloud and Oracle cloud provide at least one instance free for a lifetime, or according to them, in their <strong>Always Free</strong> plan. The other two also provide free compute instances, but that’s only for the first year after signing up on their platform.</p><p>Another area where it might cost you, other than the instance itself, is the bandwidth consumed by the instance. This is directly proportional to your VPN usage, i.e., if you use 100 GB of data while connected to your VPN in a month, 100 GB of bandwidth will be added to the bill, even if the instance itself is free. This is where <strong>Oracle Cloud</strong> shines for us, as it allows a whopping <strong>10 TB</strong> of bandwidth for free per month in its <em>Always Free</em> tier. Compare that to Google Cloud, which only gives 1 GB of network bandwidth. So, with a VPS free for a lifetime, and 10 TB of bandwidth per month, which you’re not likely to run out of even if you have <strong>10 devices connected to the VPN, that consume 30 GB per day</strong>!!!</p><blockquote><em>Please note that even if I’m suggesting Oracle Cloud to set up your VPN, you’re free to go for the cloud provider of your choice if you’re willing to pay for it or if you have trust issues with Oracle.</em><strong><em> </em></strong><em>You will need to do a similar setup as it’s being done in the </em>Oracle Specific section<em>, according to your own cloud provider. I’ll make sure to link relevant resources for other cloud providers wherever I can, at the end of each section.</em></blockquote><blockquote><em>Then you can follow the </em>General<em> section, no matter what your cloud provider is. I’ll also provide relevant information whenever there are any fundamental differences between Oracle Cloud and other cloud providers.</em></blockquote><h3>Let’s Start</h3><p>Before creating a VPS on Oracle Cloud, you’ll need to create an account on the platform. You can go to <a href="https://signup.cloud.oracle.com/">https://signup.cloud.oracle.com/</a> to create an account. There are two primary things to note here:</p><ol><li>Oracle cloud requires a valid credit card during the signup. This is different from other cloud providers, on whom you can sign up with a debit card too. <em>If you don’t have a credit card, you can use a service like </em><a href="https://privacy.com/"><em>https://privacy.com/</em></a><em> that’s available in your country to create a temporary credit card. If you’re </em><strong><em>living in India, </em></strong><em>you can also use the </em><strong><em>Paytm Payments Bank</em></strong><em> international card during sign-up (That’s how I signed up </em>😛).</li><li>During the signup process, you’ve to select your primary region, in which you can avail of the Always Free services. This is again different from other cloud providers, in which you can avail of free services from any region. <strong>So choose the region that’s closest to your location, as it’ll provide the highest speed and lowest speed possible.</strong></li></ol><h4>Creating an Instance</h4><p>Once you’re signed up and signed in to your oracle account, you’ll be greeted with the homepage of the cloud console, which will look something like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Diu8lDaznt5CquksaXyfnQ.png" /></figure><p>One the top search bar, search <strong>Instances</strong>, and then click on the <em>Instances</em> link.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*dZZn87CwWeS5z3LzePZtKw.png" /></figure><p>Then, click on the <strong>Create Instance</strong> button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*4QL0b0wq6_KHzexjlPluMg.png" /></figure><p>The instance creation wizard will open up. Name your server whatever you want. I have named it <em>vpn-server</em>.</p><p>Now, in the <strong>Image and Shape</strong> section, click on the <strong>Edit</strong> button, and then on the <strong>Change Image</strong> button. This will open up the Image selection tray. Wait for a few seconds for the images to load up, and then select <strong>Canonical Ubuntu </strong>and the OS version as <strong>20.04 </strong>only.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-WWojARzVmPuLR9Y8GRl4g.png" /></figure><p>Now, in the <strong>Add SSH keys</strong> section, click on the <strong>Save Private Key</strong> button to download the Private key for your server, which will enable you to access it. <strong>Note that without this key file, you won’t be able to access the server. So keep it safe and secure.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JivK7rhsbBqwiI_IFkabPQ.png" /></figure><p>Once that is done, you can leave everything else to default and proceed with creating your instance. Your screen should look something like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UKapkel1UffPS28IcKDtLg.png" /></figure><p>Give it a few minutes to set up your instance. Once done, your instance should be in a Green/Running state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*LXKbO6ib2LvB98A1cGxuTg.png" /></figure><blockquote><em>For people who’re not using Oracle Cloud, the process of instance creation can be found on google. I’ve also linked the resources for some of them below.<br>One primary thing to take care of is to always select a </em><strong><em>Ubuntu 20.04</em></strong><em> image/AMI/OS when launching an instance, as it comes with WireGuard installed and with minimum fuss.</em></blockquote><blockquote><a href="https://docs.aws.amazon.com/quickstarts/latest/vmlaunch/step-1-launch-instance.html">Instance creation on Amazon Web Services (AWS</a>)</blockquote><blockquote><a href="https://cloud.google.com/compute/docs/quickstart-linux">Instance creation on Google Cloud Platform (GCP)</a></blockquote><blockquote><a href="https://docs.microsoft.com/en-us/azure/virtual-machines/linux/quick-create-portal">Instance creation on Microsoft Azure</a></blockquote><h4>Setting up Firewall Rules</h4><p>When you launch an instance on the cloud, it is generally protected by a set of firewall rules that restrict access on how one can communicate to the instance from an external source. For your VPN server, we’ll be using a modern Open Source VPN library, <a href="https://www.wireguard.com/">WireGuard</a>. It requires us to allow incoming connections on our instance on <strong>port 51280 using UDP protocol</strong>. So, we’ll enable that for our instance.</p><p>In the search bar on the top of the dashboard, search for <strong>Virtual Cloud Networks</strong>, and click on the same in the results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*yUsIgaC2BBq3OxrIvKnjTA.png" /></figure><p>In the list of VCNs, click on the first and only one VCN available in your account, which was created automatically when you created the instance.</p><p>In that, on the left sidebar, click on <strong>Network Security Groups</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/1*lY7z-tj-Qa-G1S12qHad-A.png" /></figure><p>Now, click on <strong>Create Network Security Group</strong> button, give your NSG a name (<em>something like </em><strong><em>vpn-sg</em></strong><em>)</em>, and click on <strong>Next</strong>.<br>Now, here we have to add two rules.</p><ol><li>One Ingress rule to allow incoming connections on port 51280 using UDP protocol.</li><li>One Egress rule allowing our VPS to connect to the public internet.</li></ol><p>In the Create Network Security Group wizard, fill up the fields according to the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3e6YAy3UQfJCONmPLfwzRw.png" /></figure><p>Now that your NSG has been created, go back to your VCN, and click on <strong>Security Rules</strong> on the left sidebar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/294/1*ZzBeCWyT9U6t_cKje4VHgw.png" /></figure><p>In that, click on your Default Security List, and then on <strong>Add Ingress Rule</strong> button. In the newly opened modal, fill up the values according to the image below, and click <strong>Add Ingress Rules.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fKOq-grAh92N6XigCDdrHw.png" /></figure><p><a href="https://cloud.google.com/compute/docs/ip-addresses/reserve-static-external-ip-address#reserve_new_static">https://cloud.google.com/compute/docs/ip-addresses/reserve-static-external-ip-address#reserve_new_static</a> . Now, at last, go again to your instance page, and in there, you will see something like this is on right.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/412/1*RMQlkGkKC6xVIRcEi4WaJQ.png" /></figure><p>Here, you have the Public IP address of your server. Copy it as it’ll be used when we will log in to the server. <br>Apart from that, we also have the <strong>Network Security Groups</strong> part. Click on <strong>Edit, </strong>choose your newly created NSG from the drop-down, and click on <strong>Save Changes.</strong> It should now look something like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/371/1*3s3cyT80W3sdnff1uUF3dQ.png" /></figure><p>Congratulations, if you have reached this part, that means you have your instance setup and you’re ready to install the VPN on it and connect to it from your devices.</p><blockquote>If you’re not using Oracle Cloud, you’ll need to enable port 51820/UDP ingress for your instance in your cloud provider-specific firewall. Again, I’ve linked the relevant resources for that below.</blockquote><blockquote><a href="https://stackoverflow.com/a/21068402/13217252">Customizing Firewall rules in Google Cloud Platform (GCP)</a></blockquote><blockquote><a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/authorizing-access-to-an-instance.html.">Customizing Firewall/Security rules in Amazon Web Services (AWS)</a></blockquote><blockquote><a href="https://docs.microsoft.com/en-us/azure/virtual-machines/windows/nsg-quickstart-portal">Customizing Firewall/Security rules in Microsoft Azure</a></blockquote><p>All the steps from now on are independent of the Cloud Service Provider. So even if you’re not using Oracle Cloud, but have set up the instance and firewall rules in your cloud provider, you can easily proceed to the next steps.</p><blockquote>One important thing to make note of here is that in most of the cloud providers, the public IP address of a VPS is ephemeral, i.e., it can change after the instance reboots. To prevent that, the cloud providers have a concept of Reserved IPs/Elastic IPs, through which you can reserve a permanent public IPv4 address for your instance. Oracle Cloud provides a static IP address by default for the first two instances, so we don’t have to worry about it. But if you’re using any other cloud provider, you can find the instructions for the same from the links below.</blockquote><blockquote><a href="https://www.c-sharpcorner.com/article/assign-static-public-ip-address-to-azure-vm/">Assigning Static IP on Azure VM</a></blockquote><blockquote><a href="https://aws.amazon.com/premiumsupport/knowledge-center/ec2-associate-static-public-ip/">Assigning Static IP on an AWS EC3 Instance</a></blockquote><blockquote><a href="https://cloud.google.com/compute/docs/ip-addresses/reserve-static-external-ip-address#reserve_new_static">Assigning Static IP on a GCP Compute Engine</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52e93b3e30b5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tech-iiitg/setup-your-personal-vpn-in-the-cloud-free-for-a-lifetime-52e93b3e30b5">Setup your personal VPN in the cloud, free for a lifetime</a> was originally published in <a href="https://medium.com/tech-iiitg">tech@iiit-gwalior</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An introduction to Cloud, Docker and AWS Fargate]]></title>
            <link>https://medium.com/@manishprivet/hey-folks-e4a300a5465c?source=rss-7d6d2d7e2bab------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4a300a5465c</guid>
            <category><![CDATA[fargate]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[ec]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[serverless]]></category>
            <dc:creator><![CDATA[Manish Kumar]]></dc:creator>
            <pubDate>Sat, 23 May 2020 13:08:22 GMT</pubDate>
            <atom:updated>2020-06-04T10:17:50.029Z</atom:updated>
            <content:encoded><![CDATA[<p>Technology is at pace with a rate that’s faster than ever. You take a break for one month, and boom, ten new tools, and 100 new frameworks are currently in trend you have no idea about. But there’s one thing that’s required for any tool or language or framework to work or deployed is the underlying hardware. Most of us can’t afford the hardware to set up for small startups. That’s the problem that cloud solves.</p><p>The below section is an introduction about cloud and serverless functions, so if you know about them, you can skip that.</p><p>Cloud technology provides us with Infrastructure as a Service (IaaS), Platform as a Service (PaaS), and Software as a Service (SaaS). Whether you’re a system admin and server administrator, who wants to manage his/her own barebones server or an awesome developer who just wants to write the code and deploy it to the world with every push, the cloud has you covered.</p><p>Cloud isn’t free, there are costs, but it’s very very less than the costs incurring in managing your own hardware and Infrastructure. Out of all the cloud services, a game-changer service emerged in recent years, Function as a Service (FaaS). It lets you run your app functions in the cloud without a server, that’s why the name serverless, and costs only for the number of times the function is called. FaaS has been a game-changer since now developers don’t have to worry about setting up and managing virtual computers or instances in the cloud. They can split their code in various microservices and run them independently, leading to better code and faster debugging.</p><p>Various companies around the world provide cloud services, but the leading top 3 companies are Amazon, Microsoft, and Google. Among the 3, as of now, Amazon holds a whopping 32.4% market share. And there’s a reason for that. AWS provides a very tight and integrated environment, with all the services you’ll ever need, but they also come up with new services every now and then that you thought you didn’t need.</p><p>At this point, maybe you need an introduction to Docker and Docker Compose. If you know them already, you can skip to the next section.</p><p>Docker is a revolutionary technology that lets you run your applications in a container. Now you ask what a container is? Containers are basically little virtual instances inside a server that contains an app and it’s dependencies, nothing else. There’re two significant technologies when it comes to containers, Docker and Kubernetes. Both can run containers independently or together. Kubernetes is out of scope for this blog, so we’ll talk about Docker only. With Docker, you can build your containers as images. Also, if you have multiple containers, you can run them simultaneously by the use of Docker Compose.</p><p>Enough with the mumbo jumbo. If you have come this far, first of all, a huge thanks to you, since this is my first blog 😅.</p><p>Now, if you have your node app ready to serve some awesome websites, you can either run it on a server directly or ship it in a Docker image. A Docker image will ensure that your application will run the same no matter where it runs.</p><p>All major cloud providers provide a Container Registry, which is basically a repository to store your Docker images. AWS also provides one. It’s called Elastic Container Registry or ECR. ECR is part of a bigger service by AWS, ECS, Elastic Container Service. ECS lets you push your containers to the ECR, and then run those containers on the cloud with the help of Task Definitions. A Task Definition is basically a set of rules that define how the container will be connected to the outside world, or how two or more containers will be connected to each other. The task definitions then run the containers on an ECS Cluster, which is a service provided by AWS to launch and manage clusters easily and scale them when needed.</p><p>ECS Clusters are of two types, Fargate and EC2. An EC2 instance is basically a virtual computer located on the cloud on which you have full control. An EC2 cluster lets you provision an EC2 instance according to your needs. It provides you full control over your EC2 instance, the container deployment model. But we’re not here to talk about EC2 clusters.</p><p>We’re here to talk about Fargate, a service provided by AWS, which lets you run your containers on the cloud, serverless. With Fargate, you don’t need to provision or maintain any instance. And unlike EC2, and you pay only for the amount of CPU and RAM usage by your application. This comes with some caveats, but often the benefits provided by Fargate outweigh them.</p><p>For a nodejs application, AWS Fargate proves to be a better choice by all means, as you don’t need to worry about managing any server. And if you’re just starting, the costs are also minimal at the start.</p><p>AWS provides a 12 month free trial for its various services, but keep in mind that Fargate doesn’t come under the free trial.</p><p>In the next blog, We’re going to deploy our nodejs app on a production-ready ECS cluster with Fargate, along with Nginx as a reverse proxy. So stay tuned.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4a300a5465c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>