<?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 VishnuPratapBisht on Medium]]></title>
        <description><![CDATA[Stories by VishnuPratapBisht on Medium]]></description>
        <link>https://medium.com/@vishnupratap24?source=rss-44821f9ad75e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*IZXuzxj1qnnvMzXy</url>
            <title>Stories by VishnuPratapBisht on Medium</title>
            <link>https://medium.com/@vishnupratap24?source=rss-44821f9ad75e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 22:13:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vishnupratap24/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[No Subscriptions, No Third Parties: How I Built My Own Private Cloud From Spare Parts]]></title>
            <link>https://medium.com/@vishnupratap24/no-subscriptions-no-third-parties-how-i-built-my-own-private-cloud-from-spare-parts-4db258ca0570?source=rss-44821f9ad75e------2</link>
            <guid isPermaLink="false">https://medium.com/p/4db258ca0570</guid>
            <category><![CDATA[port-forwarding]]></category>
            <category><![CDATA[vps]]></category>
            <category><![CDATA[home-server]]></category>
            <category><![CDATA[wireguard]]></category>
            <category><![CDATA[tunneling]]></category>
            <dc:creator><![CDATA[VishnuPratapBisht]]></dc:creator>
            <pubDate>Mon, 03 Aug 2026 09:10:45 GMT</pubDate>
            <atom:updated>2026-08-03T09:10:45.974Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>How a $0 cloud VPS, a wall called CGNAT, and four small shell scripts turned a spare-parts-bin computer into my own private cloud</blockquote><p>Right now, sitting in a coffee shop or on a train or basically anywhere with a signal, I can pull out my phone, open a dashboard, and turn on a light in my house. I can SSH into a machine sitting quietly in a closet at home — a machine on a network the internet was never supposed to be able to find. It’s a small thing, and most days I don’t even think about it. But it didn’t used to be possible, and getting here took a lot longer than “plug it in and forward a port.”</p><p>It started with a small, oddly-shaped PC I didn’t fully know what to do with.</p><h3>The mystery box</h3><p>The PC in question is what’s called an OPS unit — short for Open Pluggable Specification. If you’ve never heard of it, that’s because it’s not really a consumer format. OPS is a standard originally designed for digital signage: those commercial displays you see in airports, retail stores, and conference rooms often have a slot in the back where a small, self-contained computer module slides in and powers the screen. It’s a whole PC, just shaped like a slab so it can hide behind a monitor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GovKmnyu6SMNAjuScVL-yA.jpeg" /><figcaption>The mystery box itself — an OPS unit, a Sony 2.5&quot; HDD zip-tied on top for NAS storage.</figcaption></figure><p>That commercial-signage pedigree also makes OPS units surprisingly good candidates for a second life as a home server. They’re built to run 24/7 in a box with mediocre airflow behind a wall-mounted screen, so they’re low-power and quiet by design, and because they’re a somewhat niche commercial format, capable units end up cheap on the secondhand market.</p><p>Mine turned out to be genuinely capable hardware:</p><ul><li><strong>CPU:</strong> Intel Core i5–12450H — a 12th-gen “Alder Lake” chip with a hybrid design (4 Performance cores + 4 Efficiency cores, 12 logical threads, boosting up to 4.4GHz)</li><li><strong>RAM:</strong> about 12GB</li><li><strong>Storage:</strong> a 238GB NVMe SSD for the boot/hypervisor drive, plus a roughly 1TB 2.5&quot; HDD hanging off a USB port to serve as NAS storage</li><li><strong>GPU:</strong> integrated Intel UHD Graphics, currently just idling — a candidate for media transcoding down the line</li><li><strong>Networking:</strong> Gigabit Ethernet, actively in use, plus an 802.11ac Wi-Fi card doing nothing at all</li></ul><p>My favorite detail, though, is what the board reports when you ask it who made it. Pull up its firmware info and the manufacturer field reads “To be filled by O.E.M.” — never actually filled in. It’s a small giveaway of just how commodity and white-label this whole class of hardware really is: a generic reference board, rebadged and dropped into a hundred different signage products, that nobody ever bothered to finish labeling.</p><h3>What I actually wanted</h3><p>None of this was really “because I could” energy, or at least not only that. I had an actual destination in mind: Home Assistant for home automation, and a NAS for personal files and media — both reachable from wherever I happened to be, not just from the couch on the home Wi-Fi.</p><p>That “reachable from anywhere” part is the whole story. Getting the hardware running was the easy 10%.</p><h3>Why Proxmox, not just Docker on Ubuntu</h3><p>The first real decision was what to actually run on the box. I didn’t want just a single flat Ubuntu install with a pile of Docker containers on it — I wanted proper isolation, because Home Assistant OS in particular really wants to own its own kernel, and I didn’t want that requirement dictating how everything else on the machine worked.</p><p>The answer was Proxmox VE, a real Type-1 hypervisor. It let me give Home Assistant its own VM with its own kernel, while everything else — a general-purpose Docker host, a Cockpit systems dashboard, later a small NAS web dashboard — ran as lightweight LXC containers sharing the same box efficiently. Proxmox also gave me snapshotting and a proper web UI, both of which I’d end up leaning on more than I expected once I started experimenting.</p><p>Rather than clicking through every VM and container by hand, I set most of this up using the well-known <strong>Proxmox VE Helper-Scripts</strong> community project — a collection of scripts that automate the fiddly parts of standing up common services on Proxmox. It’s the difference between “read six wiki pages and hope you didn’t miss a step” and “run a script, answer three prompts.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lvtQTZTso4HME6eZtnGzpQ.png" /><figcaption>The actual dashboard, mid-project: one VM running Home Assistant OS, three LXCs handling Docker, Cockpit, and the helper-scripts install.</figcaption></figure><h3>Hitting the wall nobody warns you about</h3><p>With the hypervisor up and Home Assistant and a Docker host running, I did the thing every home-server tutorial says to do next: I opened my router’s port-forwarding page, forwarded a port for SSH and a port for the dashboard, and expected to be five minutes from done.</p><p>Nothing worked. Not “slow,” not “half-working” — completely unreachable from outside the house.</p><p>The culprit turned out to be something called <strong>CGNAT</strong>, or Carrier-Grade NAT. Here’s the plain version: IPv4 addresses — the numerical addresses that identify a location on the internet — are a genuinely limited resource, and the world ran short of them years ago. Rather than give every household its own public IP address, many ISPs now share a single public IP across large groups of customers, using a layer of address translation at the carrier level rather than just inside your own router.</p><p>I found this out somewhat by accident, comparing two numbers that should have matched and didn’t: a public “what’s my IP” tool reported one address as my outward-facing address, while my router’s own status page claimed a different one as its WAN IP. That second number — the one the router thought was “mine” — fell inside 100.64.0.0/10, a block of addresses specifically reserved for exactly this kind of carrier-side sharing.</p><p>That explained everything. Port forwarding only works if you control the piece of infrastructure that’s actually holding the public IP. My router had never held a real public IP to begin with — the ISP did, several layers upstream, shared across who knows how many other households. There was no port to forward, because there was no public door on my router to forward it through.</p><h3>Three roads I didn’t take</h3><p>Before landing on the fix that actually worked, I ran down a few other options:</p><p><strong>IPv6.</strong> My router did have a real, non-CGNAT’d IPv6 address, which was briefly exciting. The catch: it only works if the device trying to connect <em>also</em> has usable IPv6 — and that’s inconsistent enough across mobile carriers and random public Wi-Fi networks that I couldn’t rely on it as the primary path.</p><p><strong>Tailscale.</strong> I’d actually used Tailscale once before on this exact server, found it sluggish and laggy, and pulled it off — almost certainly because CGNAT was forcing every connection into a relayed hop through Tailscale’s own infrastructure instead of a direct peer-to-peer link. In a small, slightly absurd twist, I’d found Tailscale still installed and logged out on the machine earlier in this same project and removed it for a clean baseline — only to reconsider it here, and rule it back out for the same performance reason that killed it the first time.</p><p><strong>Asking my ISP for a static IP.</strong> A perfectly legitimate fix on paper. In practice, this one stalled out simply because I couldn’t get through to a human who could actually make it happen.</p><h3>The actual fix: move the meeting point</h3><p>The realization that unlocked everything wasn’t a networking trick at all — it was reframing the problem. I didn’t need to fight my ISP into giving me a real public IP. I needed a “meeting point” on a machine that already had one: a cheap cloud VPS.</p><p>I looked at the usual paid options — DigitalOcean, Vultr, AWS Lightsail — all reasonable, all a few dollars a month. But I landed on <strong>Oracle Cloud’s Always Free tier</strong> instead, which is genuinely free forever rather than a 30-day trial with a credit card waiting in the wings. It comes with a real, always-on public IP, which is the one thing this whole project actually needed. I picked a Mumbai-region instance, since it’s the lowest-latency region to home for me in India.</p><p>It wasn’t completely frictionless: my first attempt to spin up the free ARM-based “Ampere” shape failed with an “out of capacity” error — a known, common hiccup on Oracle’s Always Free tier when demand in a region is high. I fell back to the AMD-based Always Free micro shape instead, which is still free and still plenty for what this needed to do. One deliberate choice worth calling out: I requested a <em>reserved</em> public IP rather than an ephemeral one, specifically so the address stays stable across reboots — every client device would end up hardcoding this address as its tunnel endpoint, so it needed to never change.</p><h3>What tunneling and WireGuard are actually doing</h3><p>Before describing what I built, it’s worth explaining the two ideas underneath it, because neither is obvious if you haven’t run into them before.</p><p><strong>Tunneling</strong> is the general idea of wrapping a packet destined for a private network inside an encrypted, publicly-routable envelope, so it can cross the open internet and land somewhere it otherwise has no way to reach. A decent analogy: sealing a private letter inside a properly stamped, addressed envelope so the ordinary postal system can carry it across the country, while only the intended recipient can actually open the inner letter and read it.</p><p><strong>WireGuard</strong> is the specific tool I used to build that tunnel — a modern VPN protocol with a notably small, fast codebase compared to older protocols like OpenIPsec or OpenVPN. Every device gets its own public/private keypair: the private key never leaves that device, and only the public key gets handed to peers it wants to talk to. Two peers with each other’s public keys can complete an encrypted handshake and establish a session.</p><p>The single most interesting mechanism, once I understood it, is WireGuard’s AllowedIPs setting. It quietly does two jobs at once: it&#39;s both the routing table entry (&quot;where is this peer&#39;s traffic allowed to go&quot;) <em>and</em> the security filter (&quot;what traffic will I even accept as legitimately coming from this peer&quot;). One setting, two jobs — which turns out to be exactly the right primitive for what I wanted to build next.</p><p>The architecture I ended up with is a <strong>hub-and-spoke</strong> design: the Oracle VPS is the hub — always reachable, sitting on a real public IP. My home server is a spoke that makes an <em>outbound</em> connection to the hub, which works fine even sitting behind CGNAT, since outbound connections are never blocked the way inbound ones are. Every client device — my laptop, my phone — is its own spoke, each with its own keypair and its own connection to the hub.</p><p>The part I actually care most about, though, is that each device’s AllowedIPs only lists the one to three specific services it&#39;s actually meant to reach — SSH, the home automation dashboard, the NAS dashboard, whatever&#39;s relevant to that device. Nothing else on the home network is visible to it. That&#39;s not an accident or a default; it&#39;s the point.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OBoHmxcT_aYSqLJFp2zbiA.png" /></figure><h3>Automating the boring, error-prone part</h3><p>Doing all of the above by hand for every single new device — generate a keypair, register it on the VPS, hand-write a config, activate it — is tedious, and it turned out to be genuinely error-prone in a way I didn’t expect until I’d done it wrong a few times. So I wrote four small scripts to cover the whole lifecycle of a device.</p><p>A server-side script that registers a new device and auto-assigns it the next free address inside the tunnel subnet, so nobody has to track that by hand:</p><pre># on the VPS — register-peer.sh (illustrative, redacted)<br>next_ip=$(get_next_free_tunnel_ip 10.x.x.0/24)<br>wg set wg0 peer &lt;new-device-public-key&gt; allowed-ips &quot;${next_ip}/32&quot;<br>echo &quot;Assigned ${next_ip} to new peer&quot;</pre><p>A client-side setup script that installs what’s needed, asks the person setting up the device which specific services <em>this</em> device should be allowed to reach — a real multi-select prompt, not a one-size-fits-all config — generates its own keypair, and then registers itself with the server. That last part changed over time: an early version of this script required manually copying a public key value from one terminal window into another, which I eventually rewrote so the client registers itself automatically over SSH instead, removing that manual step entirely.</p><p>Two matching removal scripts reverse the whole process cleanly — a lost or retired device can be fully cut off with a single command on either side, with no leftover keys or config sitting around.</p><p>One last quality-of-life piece: a private DNS resolver running on the home server, so devices on the tunnel can refer to things by name instead of memorizing IP addresses — basically a home-network version of how localhost maps to 127.0.0.1 on any machine.</p><h3>What went wrong (and what it taught me)</h3><p>A few honest flaws, briefly:</p><p>The recurring villain of this entire project was manually copying cryptographic keys between two machines. More than once, a single visually near-identical character — a lowercase “l” that looks like a “1,” or, once, a Cyrillic letter standing in for a nearly identical Latin one — silently corrupted a config. And “silently” is the operative word: WireGuard doesn’t throw an error on a wrong key, it just never responds, which looks exactly like an unrelated network problem until you’ve spent twenty minutes ruling out everything else first. This is precisely the failure mode that pushed me to rewrite the client setup script to register devices automatically instead of relying on copy-paste at all.</p><p>A smaller, related lesson came from a misordered firewall rule: a broad “reject everything” rule sitting ahead of a narrow “allow this one thing” rule meant one service worked perfectly while a nearly identical one silently didn’t. The cause, once found, was almost embarrassingly simple — just rule ordering — but it took longer to spot than I’d like to admit.</p><p>And an honest scope note: this is personal-scale infrastructure, not enterprise-grade. There’s a single free-tier VPS in the middle of it with no redundancy. If it goes down, remote access goes down with it — though the home network itself keeps running fine on its own, since the VPS is only the meeting point, not a dependency for anything happening locally. That’s a tradeoff I’m fine with for a hobby project, but it’s worth saying plainly rather than glossing over.</p><h3>Where this goes next</h3><p>A few realistic directions from here: more self-hosted services can sit behind the same tunnel pattern, each just getting its own scoped AllowedIPs entry. The idle integrated GPU is a candidate for media-server transcoding down the line. A second relay or fallback path is worth considering if the single-VPS limitation ever becomes a real problem rather than an accepted tradeoff. Both the IPv6 path and asking the ISP for a static IP remain live possibilities I haven&#39;t closed the door on. And the automation scripts themselves have room to grow — more granular per-service permissions, basic monitoring or alerting on tunnel health, and eventually onboarding family members with their own scoped, revocable access rather than a shared login.</p><h3>Why build your own</h3><p>Back to the opening image: what once required physically standing in my house on the same Wi-Fi now works from anywhere. But the real lesson here wasn’t just “getting past a router limitation” — it was about deliberately scoping trust. Every device on this network sees exactly what it’s allowed to see, and nothing more, by design rather than by accident.</p><p>And the practical case for doing this yourself is straightforward: this cost nothing beyond hardware that was already sitting around and a cloud tier that’s permanently free — no subscription, no recurring fee, no third party in the middle able to see your files or your traffic the way a commercial cloud service or a VPN provider can. It’s also more approachable than it looks from the outside. I didn’t start this with deep networking expertise. I started by hitting a wall — a router page that should have worked and didn’t — and worked through it one layer at a time. That’s really the whole shape of self-hosting as a hobby: not expertise going in, just the willingness to find out why the thing in front of you isn’t working, and keep going until it does.</p><p>The payoff isn’t abstract, either. It’s a home dashboard and my own files, reachable from anywhere, built and owned entirely on my own terms.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4db258ca0570" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>