<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Ayush Madavi</title>
    <description>The latest articles on Forem by Ayush Madavi (@ayush_madavi_).</description>
    <link>https://forem.com/ayush_madavi_</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3701526%2F7e8fc30f-2aaa-480b-a1d1-bc005792b40e.jpg</url>
      <title>Forem: Ayush Madavi</title>
      <link>https://forem.com/ayush_madavi_</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/ayush_madavi_"/>
    <language>en</language>
    <item>
      <title>Building a Cybersecurity Home lab: Architecture, Tools, and Lessons Learned</title>
      <dc:creator>Ayush Madavi</dc:creator>
      <pubDate>Fri, 09 Jan 2026 14:41:04 +0000</pubDate>
      <link>https://forem.com/ayush_madavi_/building-a-cybersecurity-home-lab-architecture-tools-and-lessons-learned-jo0</link>
      <guid>https://forem.com/ayush_madavi_/building-a-cybersecurity-home-lab-architecture-tools-and-lessons-learned-jo0</guid>
      <description>&lt;p&gt;Cybersecurity is best learned by building and breaking real system not only through theory.&lt;/p&gt;

&lt;p&gt;In this blog i document my journey of creating a personal home lab using tools like pfsense, vpn, linux server and one media service.&lt;/p&gt;

&lt;p&gt;The goal of this blog is to share my practical configurations, real world problems i faced and the solution i implemented while securing and managing my own infrastructure.&lt;/p&gt;

&lt;p&gt;This blog will serve as a learning log as well as resource for student and beginners interested in hands-on cybersecurity and networking.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I Built a Cybersecurity Home lab
&lt;/h2&gt;

&lt;p&gt;While studying cybersecurity, I realized that concepts such as networking, firewalls, VPNs, NAT, and server hardening are difficult to fully understand without practical exposure.&lt;/p&gt;

&lt;p&gt;A home lab allows me to:&lt;/p&gt;

&lt;p&gt;Simulate real-world networks&lt;/p&gt;

&lt;p&gt;Practice firewall and VPN configuration&lt;/p&gt;

&lt;p&gt;Understand security misconfigurations&lt;/p&gt;

&lt;p&gt;Learn Linux system administration&lt;/p&gt;

&lt;p&gt;Experiment safely without impacting production systems&lt;/p&gt;

&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;p&gt;Basic knowledge of the following topics helps in understanding this blog:&lt;/p&gt;

&lt;p&gt;IP addressing and basic networking&lt;/p&gt;

&lt;p&gt;Virtual machines (VirtualBox / VMware)&lt;/p&gt;

&lt;p&gt;Linux fundamentals&lt;/p&gt;

&lt;p&gt;Firewall concepts&lt;/p&gt;

&lt;h2&gt;
  
  
  Architecture Overview
&lt;/h2&gt;

&lt;p&gt;My home lab is designed to mimic a small real-world network.&lt;/p&gt;

&lt;p&gt;High-level architecture includes:&lt;/p&gt;

&lt;p&gt;A firewall acting as the network gateway&lt;/p&gt;

&lt;p&gt;Internal machines behind the firewall&lt;/p&gt;

&lt;p&gt;Secure remote access using VPN&lt;/p&gt;

&lt;p&gt;Self-hosted services inside a protected network&lt;/p&gt;

&lt;p&gt;The firewall controls incoming and outgoing traffic between the internal network and the internet, while VPN access allows secure remote connectivity even under CGNAT conditions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tools and Technologies Used
&lt;/h2&gt;

&lt;p&gt;pfSense – Firewall and network gateway&lt;/p&gt;

&lt;p&gt;Linux (Ubuntu Server) – Hosting services&lt;/p&gt;

&lt;p&gt;VPN (Tailscale) – Secure remote access&lt;/p&gt;

&lt;p&gt;Jellyfin / Navidrome – Self-hosted media services&lt;/p&gt;

&lt;p&gt;VirtualBox / VMware – Virtualization platform&lt;/p&gt;

&lt;p&gt;These tools are widely used in real environments, making this home lab highly relevant for learning.&lt;/p&gt;

&lt;h2&gt;
  
  
  Implementation Steps
&lt;/h2&gt;

&lt;p&gt;Step 1: Firewall Setup&lt;/p&gt;

&lt;p&gt;I deployed the firewall as a virtual machine in VMware with one WAN and one LAN interface.&lt;br&gt;
I configured the DHCP server to automatically assign IP addresses and set up basic outbound NAT.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5980zvpu68kdu09jzhow.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5980zvpu68kdu09jzhow.png" alt=" "&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This step helped me clearly understand how network traffic flows through a firewall to the internet.&lt;/p&gt;

&lt;p&gt;Step 2: Internal Network Configuration&lt;/p&gt;

&lt;p&gt;Behind the firewall, I created:&lt;/p&gt;

&lt;p&gt;One Linux server for hosting services&lt;/p&gt;

&lt;p&gt;One Parrot OS machine for managing web interfaces such as pfSense and internal services&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyrfpfj9iltxjkla7z3oo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyrfpfj9iltxjkla7z3oo.png" alt=" "&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This setup allowed me to practice access control and rule-based filtering inside a protected network.&lt;/p&gt;

&lt;p&gt;Step 3: VPN Configuration&lt;/p&gt;

&lt;p&gt;Accessing the home lab remotely was challenging due to CGNAT. I had two options:&lt;/p&gt;

&lt;p&gt;Self-host a VPN&lt;/p&gt;

&lt;p&gt;Use a cloud-based VPN service&lt;/p&gt;

&lt;p&gt;I chose Tail scale because it is easy to set up and works well under CGNAT. It uses a mesh topology instead of traditional port forwarding.&lt;/p&gt;

&lt;p&gt;This solution:&lt;/p&gt;

&lt;p&gt;Encrypts traffic end-to-end&lt;/p&gt;

&lt;p&gt;Allows remote access without a public IP&lt;/p&gt;

&lt;p&gt;Avoids port forwarding security risks&lt;/p&gt;

&lt;p&gt;Step 4: Self-Hosted Services&lt;/p&gt;

&lt;p&gt;I deployed services such as Jellyfin inside the secured network and restricted access using firewall rules and VPN-only connectivity.&lt;/p&gt;

&lt;p&gt;This step demonstrated how exposed services can significantly increase the attack surface if not properly secured.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F156pmym0iqr1zkisy4s3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F156pmym0iqr1zkisy4s3.png" alt=" "&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Problems Faced and Solutions
&lt;/h2&gt;

&lt;p&gt;Issue: Permission Denied Errors in Jellyfin&lt;/p&gt;

&lt;p&gt;Cause: Incorrect Linux directory ownership&lt;/p&gt;

&lt;p&gt;While adding a media path in Jellyfin, I faced permission errors when uploading files.&lt;/p&gt;

&lt;p&gt;Solution:&lt;/p&gt;

&lt;p&gt;I created a dedicated group for Jellyfin, added the service user to that group, and assigned proper read and write permissions to the specific directory.&lt;br&gt;
This successfully resolved the upload issue.&lt;/p&gt;
&lt;h2&gt;
  
  
  Security Consideration
&lt;/h2&gt;

&lt;p&gt;While building the lab, I focused on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Disabling default credentials&lt;/li&gt;
&lt;li&gt;Minimizing exposed services&lt;/li&gt;
&lt;li&gt;Applying the principle of least privilege in firewall rules&lt;/li&gt;
&lt;li&gt;Using VPN for administrative access&lt;/li&gt;
&lt;li&gt;Monitoring logs and traffic&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Security is not a one-time task but a continuous process.&lt;/p&gt;
&lt;h2&gt;
  
  
  Results and What I Learned
&lt;/h2&gt;

&lt;p&gt;This home lab significantly improved my understanding of:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Firewall rule evaluation&lt;/li&gt;
&lt;li&gt;VPN architectures&lt;/li&gt;
&lt;li&gt;CGNAT limitations&lt;/li&gt;
&lt;li&gt;Linux permissions and service management&lt;/li&gt;
&lt;li&gt;Real-world security mistakes and fixes&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;More importantly, it helped me understand how attackers exploit misconfigurations.&lt;/p&gt;
&lt;h2&gt;
  
  
  Conclusion and Future Work
&lt;/h2&gt;

&lt;p&gt;This cybersecurity home lab has become my primary learning environment.&lt;br&gt;
In future posts, I plan to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Add intrusion detection and monitoring&lt;/li&gt;
&lt;li&gt;Implement centralized logging&lt;/li&gt;
&lt;li&gt;Perform attack simulations&lt;/li&gt;
&lt;li&gt;Convert selected findings into research papers&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This blog will continue to document my progress, mistakes, and improvements as I grow in cybersecurity.&lt;/p&gt;
&lt;h2&gt;
  
  
  Final Tip
&lt;/h2&gt;

&lt;p&gt;Don’t wait until everything is perfect.&lt;br&gt;
Build, document, break, fix, and share.&lt;/p&gt;

&lt;p&gt;This blog was originally published on Hashnode&lt;br&gt;
Website:

&lt;/p&gt;
&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
      &lt;div class="c-embed__body flex items-center justify-between"&gt;
        &lt;a href="https://home-lab.hashnode.dev/building-a-cybersecurity-home-lab-architecture-tools-and-lessons-learned" rel="noopener noreferrer" class="c-link fw-bold flex items-center"&gt;
          &lt;span class="mr-2"&gt;home-lab.hashnode.dev&lt;/span&gt;
          

        &lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;




</description>
      <category>architecture</category>
      <category>beginners</category>
      <category>cybersecurity</category>
      <category>networking</category>
    </item>
  </channel>
</rss>
