<?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 Divinefavour Nwachukwu on Medium]]></title>
        <description><![CDATA[Stories by Divinefavour Nwachukwu on Medium]]></description>
        <link>https://medium.com/@dabbichuks?source=rss-f84c76d3e064------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8bSCzP4ArNmH2bRnwyF7GQ.jpeg</url>
            <title>Stories by Divinefavour Nwachukwu on Medium</title>
            <link>https://medium.com/@dabbichuks?source=rss-f84c76d3e064------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 01:56:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dabbichuks/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[Wazuh for Beginners: Setting Up a SIEM Lab With Ubuntu and Kali on VirtualBox (and the Errors…]]></title>
            <link>https://medium.com/@dabbichuks/wazuh-for-beginners-setting-up-a-siem-lab-with-ubuntu-and-kali-on-virtualbox-and-the-errors-f9815132ded2?source=rss-f84c76d3e064------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9815132ded2</guid>
            <category><![CDATA[beginner]]></category>
            <category><![CDATA[wazuh]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[soc]]></category>
            <category><![CDATA[siem]]></category>
            <dc:creator><![CDATA[Divinefavour Nwachukwu]]></dc:creator>
            <pubDate>Tue, 06 Oct 2026 22:22:21 GMT</pubDate>
            <atom:updated>2026-10-06T22:22:21.408Z</atom:updated>
            <content:encoded><![CDATA[<h3>Wazuh for Beginners: Setting Up a SIEM Lab With Ubuntu and Kali on VirtualBox (and the Errors Nobody Warns You About)</h3><p><em>A beginner-friendly walkthrough of deploying a free, open-source SIEM, onboarding your first agents, and the errors that almost made me quit on day one.</em></p><h3>Introduction</h3><p>If you’re getting into cybersecurity, you’ve probably seen the word <strong>SIEM</strong> thrown around like everyone was born knowing what it means. I wasn’t. So let me explain it the way I wish someone had explained it to me.</p><p>A <strong>SIEM (Security Information and Event Management)</strong> is a tool that collects logs from all your machines (laptops, servers, firewalls) and puts them in one place, so you can search them, correlate them, and spot suspicious activity. Think of it as a CCTV control room, except instead of video feeds, you’re watching logs.</p><p><strong>Wazuh</strong> is a free, open-source security platform that does exactly this, plus extras like file integrity monitoring, vulnerability detection and intrusion detection. It’s one of the best ways to get hands-on SIEM experience without paying for anything.</p><p>This is the first post in my Wazuh lab series, and it covers only the setup: getting Wazuh running and connecting two machines to it. No attacks yet. That’s for the next post.</p><p>If you’re a beginner, don’t skip the troubleshooting sections. That’s where the real learning is.</p><h3>Lab Architecture Overview</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IJhKIQh2qWVlbVW8MLeLsw.png" /></figure><pre>[Host Machine]<br>     |<br>     └── Oracle VirtualBox<br>           ├── Wazuh Server (OVA)   ← SIEM (Manager + Indexer + Dashboard)<br>           │<br>           ├── Ubuntu               ← Victim (Wazuh agent installed)<br>           │<br>           └── Kali Linux           ← Attacker (Wazuh agent installed)</pre><p>Here’s what each piece does:</p><ul><li><strong>Wazuh Server:</strong> the brain. It receives, analyses and stores everything.</li><li><strong>Ubuntu (victim):</strong> the machine we’ll monitor and later attack.</li><li><strong>Kali (attacker):</strong> the machine we’ll attack <em>from</em>. Since we want to see what the attack looks like in the logs, we’ll monitor Kali too.</li><li><strong>Agents:</strong> small programs installed on Ubuntu and Kali that send their logs to the Wazuh server.</li></ul><h3>Part 1: The Plan That Didn’t Work (How It All Started)</h3><p>I’ll be honest with you: my original plan was to install Wazuh straight into my Kali machine using the terminal. Wazuh has an installation assistant script that does this on supported systems:</p><pre>curl -sO https://packages.wazuh.com/4.14/wazuh-install.sh &amp;&amp; sudo bash ./wazuh-install.sh -a</pre><p>It looked simple. It was not.</p><p>The install started, then <strong>stopped abruptly partway through the download</strong>. No dramatic crash, it just quit on me. I ran it again. Same result.</p><p>My next thought was that the script was refusing to continue because my VM didn’t meet the minimum hardware requirements. So I added the -i argument, which tells the script to <strong>ignore the hardware requirement check</strong>:</p><pre>sudo bash ./wazuh-install.sh -a -i</pre><p>Still the same result. It always stopped somewhere along the download, never at the same point twice.</p><p>At this point I&#39;d burned a lot of time, and I&#39;d also learned something worth knowing: Wazuh&#39;s server components are only officially supported on specific operating systems, and Kali is not one of them. Kali is built for offensive tools, not for hosting a SIEM. Even without that, I was forcing a tool onto a machine that was never meant to run it.</p><p>One thing worth knowing: Wazuh’s server components are only officially supported on specific operating systems, and Kali is not one of them. Kali is built for offensive tools, not for hosting a SIEM.</p><blockquote><strong>Problem #1, lesson learned:</strong> Don’t force your attacker machine to also be your SIEM. Keep roles separate. It’s cleaner, and it’s how real environments work. And if a script fails the same way twice, adding more flags rarely fixes it. Step back and look for a different route.</blockquote><p>The fix was to stop fighting it and use the <strong>Wazuh OVA</strong>.</p><h3>Part 2: What is an OVA?</h3><p><strong>OVA (Open Virtual Appliance)</strong> is a pre-built virtual machine packed into a single file. Instead of installing Wazuh component by component, someone has already done that work. You import the file into VirtualBox, press start, and you have a working Wazuh server.</p><p>This OVA includes the <strong>Wazuh manager</strong> (analyses the data), the <strong>Wazuh indexer</strong> (stores it), and the <strong>Wazuh dashboard</strong> (the web interface you’ll look at).</p><h3>Part 3: Downloading and Importing the Wazuh OVA</h3><h3>Step 1: Install VirtualBox</h3><p>If you don’t have it, download Oracle VirtualBox from https://www.virtualbox.org, install it, and restart your PC if it asks.</p><h3>Step 2: Download the Wazuh OVA</h3><ol><li>Go to the official Wazuh documentation: <a href="https://documentation.wazuh.com/">https://documentation.wazuh.com</a></li><li>Navigate to <strong>Virtual Machine (OVA)</strong>. It’s under the installation/deployment options.</li><li>Click the <strong>OVA download link</strong>. At the time of writing, it’s wazuh-4.14.7.ova.</li><li>Wait for the download. It’s a big file, so be patient.</li></ol><blockquote>Tip: The documentation shows a <strong>sha512</strong> checksum next to the download. It’s a fingerprint of the file, so you can confirm your download wasn’t corrupted. On Windows, open PowerShell in your downloads folder and run:</blockquote><pre>Get-FileHash .\wazuh-4.14.7.ova -Algorithm SHA512</pre><p><em>Compare the output with the one on the docs page. If they match, you’re good.</em></p><h3>Step 3: Import the OVA into VirtualBox</h3><ol><li>Open VirtualBox</li><li>Click <strong>File → Import Appliance</strong></li><li>Click the folder icon, select the .ova file, then click <strong>Next</strong></li><li>You’ll see the VM’s default settings (name, RAM, CPUs). Leave them as they are for now, then click <strong>Finish</strong></li><li>Wait for the import to complete. It can take a few minutes.</li></ol><h3>Step 4: Change the Graphics Controller (Important!)</h3><p>The Wazuh docs specifically say that if you’re using VirtualBox, you must set the graphics controller to <strong>VMSVGA</strong>. Skip this and you may get a blank or broken screen.</p><ol><li>Select the Wazuh VM → <strong>Settings → Display</strong></li><li>Set <strong>Graphics Controller</strong> to <strong>VMSVGA</strong></li><li>Click <strong>OK</strong></li></ol><h3>Step 5: Fix the Clock (Time Skew)</h3><p>The docs also warn that VirtualBox can cause time skew in this VM, which messes with log timestamps. For a SIEM, wrong timestamps are a real problem.</p><ol><li><strong>Settings → System → Motherboard</strong> tab</li><li>Check <strong>Hardware Clock in UTC Time</strong></li><li>Click <strong>OK</strong></li></ol><h3>Step 6: Set the Network Adapter</h3><p>All your lab machines need to be able to reach each other.</p><ol><li><strong>Settings → Network → Adapter 1</strong></li><li>Set it to <strong>Bridged Adapter</strong></li><li>Make sure Ubuntu and Kali use the <strong>same</strong> network setup</li></ol><h3>Step 7: Start the VM and Log In</h3><ol><li>Click <strong>Start</strong></li><li>When the login prompt appears, use the default credentials from the docs:</li></ol><pre>user: wazuh-user<br>password: wazuh</pre><p>wazuh-user has sudo privileges, which means it can run admin commands.</p><h3>Step 8: Find the Wazuh Server’s IP Address</h3><pre>ip a</pre><p>Look for the address next to inet on your main network interface (e.g. 192.168.x.x). <strong>Write this down.</strong> You&#39;ll need it for the dashboard and every agent. (You&#39;ll see why this matters in Problem #4.)</p><h4>Step 9: Make Sure Wazuh Is Actually Running</h4><p>Before you open the dashboard, check that the Wazuh manager, the service doing all the real work, is up. On the Wazuh VM terminal:</p><pre>sudo systemctl status wazuh-manager.service</pre><p>If you see <strong>active (running)</strong> in green, you’re good. If it says <strong>inactive</strong> or <strong>failed</strong>, start it:</p><pre>sudo systemctl start wazuh-manager.service</pre><p>Breaking that down:</p><ul><li>sudo: run as administrator</li><li>systemctl: the tool for controlling services on Linux</li><li>start: start the service</li><li>wazuh-manager.service: the service we want</li></ul><blockquote>The OVA is supposed to start its services on boot, but it doesn’t always happen right away, and as you’re about to see, mine didn’t. Checking takes ten seconds and saves you a confusing error.</blockquote><h4>Step 10: Open the Wazuh Dashboard</h4><p>On your host machine, open a browser and go to:</p><pre>https://&lt;wazuh-server-ip&gt;</pre><p>Your browser will warn you that the connection isn’t private. That’s expected, because Wazuh uses a self-signed certificate in the lab. Click <strong>Advanced → Proceed</strong>.</p><p>Log in with the default dashboard credentials (<strong>admin / admin</strong>, per the Wazuh docs).</p><p><strong>You’re in!</strong> 🎉 …or you might see an error. Which brings me to the next problem.</p><h3>Part 4: Problem #2: “Unable to connect to API”</h3><p>When I first got here, I skipped Step 9 and went straight to the dashboard. Instead of a clean login, I got an error saying the dashboard was <strong>unable to connect to the API</strong>.</p><p><strong>What was happening:</strong> The dashboard is only the <em>face</em> of Wazuh. Behind it, the Wazuh manager service does the actual work, and mine simply wasn’t running.</p><p><strong>The fix:</strong> Start the service from the Wazuh VM terminal:</p><pre>sudo systemctl start wazuh-manager.service</pre><p>Then <strong>refresh the dashboard</strong>. Mine loaded.</p><blockquote><strong>Lesson learned:</strong><em> </em>When a dashboard can’t reach its backend, check the service before you check anything else.</blockquote><h3>Part 5: Adding Agents (Onboarding Ubuntu and Kali)</h3><p>Right now Wazuh is listening, but nobody is talking to it. We need to install an <strong>agent</strong> on each machine we want to monitor.</p><h3>Step 1: Open the Agent Deployment Wizard</h3><p>In the Wazuh dashboard, go to <strong>Endpoints → Deploy new agent</strong>. (The same steps are in the official docs under <strong>Wazuh agent → Installation guide</strong>.)</p><h3>Step 2: Fill in the Wizard</h3><ol><li><strong>Operating system:</strong> Linux → <strong>DEB amd64</strong> (Ubuntu and Kali are both Debian-based)</li><li><strong>Server address:</strong> the Wazuh server IP from earlier</li><li><strong>Agent name:</strong> something recognisable, like kali or Ubuntu (optional)</li><li><strong>Group:</strong> leave it as default</li></ol><h3>Step 3: Copy and Run the Install Command</h3><p>The wizard generates an install command with your server IP already filled in. It looks roughly like this (yours will differ, so <strong>copy yours from the wizard</strong>):</p><pre>wget https://packages.wazuh.com/4.x/apt/pool/main/w/wazuh-agent/wazuh-agent_&lt;version&gt;_amd64.deb &amp;&amp; sudo WAZUH_MANAGER=&#39;&lt;WAZUH_SERVER_IP&gt;&#39; dpkg -i ./wazuh-agent_&lt;version&gt;_amd64.deb</pre><p>Open a terminal on the machine you want to monitor, in its home directory (/home/kali for Kali, /home/ubuntu for Ubuntu, or your own username), and paste the command. <strong>Do this on Ubuntu and on Kali separately.</strong></p><h3>Step 4: Start the Agent</h3><p>Installing the agent doesn’t start it. The wizard shows a start command too:</p><pre>sudo systemctl daemon-reload<br>sudo systemctl enable wazuh-agent<br>sudo systemctl start wazuh-agent</pre><h3>Part 6: Problem #3: Agents Not Showing Up</h3><p>I ran the install command. I ran systemctl enable wazuh-agent. I ran it again. <strong>Countless times.</strong> And the dashboard still showed no active agents.</p><p>Then came my aha moment. In the wizard’s “start the agent” step, there’s a choice of how to start it: <strong>systemd</strong> or <strong>No service manager</strong>. I’d been using the systemd commands, and they weren’t working on my machines. So I switched to the <strong>No service manager</strong> option and ran the command it gave me.<strong>sudo /var/ossec/bin/wazuh-control start</strong></p><p>I refreshed the dashboard, and my agents showed <strong>Active</strong>.</p><blockquote><strong>Lesson learned:</strong><em> </em>If one start method fails, don’t keep repeating it. Check the other options the wizard gives you.</blockquote><h3>Part 7: Verifying the Lab</h3><p>Go to <strong>Endpoints</strong> in the dashboard. You should see:</p><ul><li>Your agents listed with a status of <strong>active</strong></li><li>Their names, IP addresses and operating systems</li><li>The version of the agent</li></ul><figure><img alt="WAZUH DASHBOARD SHOWING ON-BOARDED AGENTS" src="https://cdn-images-1.medium.com/max/1024/1*w47ELtXTF9YvB6AlKcipxA.png" /></figure><blockquote>You’ll notice a third agent in my list: a Windows machine. I on-boarded it while testing the deployment wizard (it works the same way for any OS), but it’s not part of this lab. For this series, we’re focused on <strong>Ubuntu</strong> and <strong>Kali</strong>.</blockquote><p>If you see your Ubuntu and Kali agents showing <strong>active</strong>, congratulations. You’ve deployed a working SIEM. 🎉</p><h3>Part 8: Problem #4: The Next Day, Everything Was Disconnected</h3><p>This is the one I need you to read carefully.</p><p>The first login worked perfectly. The next day, I started everything up again: Wazuh server, Ubuntu, Kali. Then I opened the dashboard and <strong>every agent was disconnected</strong>. I’ll be honest, I panicked. (Okay, I really panicked.)</p><p><strong>Why it happened:</strong> My network had DHCP on, which means every time the VMs restarted, the router could hand out different IP addresses. The Wazuh server had a <strong>new IP</strong>, but my agents were still trying to talk to the <strong>old one</strong>. They were knocking on a door nobody lived behind anymore.</p><p><strong>The fix</strong>, on each endpoint (Ubuntu and Kali):</p><ol><li>Open the agent’s config file:</li></ol><pre>sudo nano /var/ossec/etc/ossec.conf</pre><ol><li>Scroll down to the &lt;server&gt; section</li><li>Find the &lt;address&gt; line. It still has the <strong>old</strong> Wazuh server IP</li><li>Replace it with the <strong>current</strong> Wazuh server IP (run ip a on the Wazuh VM to check)</li><li>Save with Ctrl + O, press Enter, then exit with Ctrl + X</li><li>Restart the agent so it reads the new config:</li></ol><pre>sudo systemctl restart wazuh-agent</pre><p>(or restart it the same way you started it earlier)</p><p>Refresh the dashboard, and the agents came back.</p><blockquote><strong>Lesson learned the hard way:</strong><em> </em>If your agents show “disconnected” after a restart, don’t panic. First check whether the Wazuh server’s IP changed. To stop this happening again, give the Wazuh VM a static IP or a DHCP reservation.</blockquote><h3>Challenges I Encountered (And What I Learned)</h3><p><strong>1. Forcing Wazuh onto Kali.</strong> Wrong tool for the job. Use the OVA, and keep your SIEM separate from your attacker machine.</p><p><strong>2. “Unable to connect to API”.</strong> The manager service wasn’t running. The fix was sudo systemctl start wazuh-manager.service.</p><p><strong>3. Agents not going active.</strong> Repeating the same start command doesn’t help. Try the other start method in the wizard.</p><p><strong>4. Agents disconnected the next day.</strong> DHCP changed the server’s IP. Update ossec.conf on every endpoint.</p><h3>Summary: Full Lab Stack at a Glance</h3><p>Components &amp; their roles:</p><ol><li>Wazuh Server (OVA): SIEM (manager, indexer, dashboard)</li></ol><p>2. Ubuntu: Victim (agent installed)</p><p>3. Kali Linux: Attacker (agent installed)</p><p>4. Oracle VirtualBox: Hypervisor</p><h3>Final Thoughts</h3><p>I went into this thinking setting up a SIEM would be the hard part. It turned out the real lesson wasn’t the install; it was learning that things <em>break</em>, and that every error message is trying to tell you something. Once you understand why something broke, you never forget it.</p><p>In the next post, we’ll finally have some fun: attacking Ubuntu from Kali and watching it light up in Wazuh.</p><p>If you got stuck anywhere in this guide, reach out. Let’s build.</p><p><em>Written by Divinefavour | Cybersecurity Analyst | Security Operations</em></p><p><em>#Cybersecurity #Wazuh #SIEM #SOC #BlueTeam #HomeLab</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9815132ded2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Built a SOC Home Lab From Scratch (pfSense + Splunk + Kali + Windows 10)]]></title>
            <link>https://medium.com/@dabbichuks/how-i-built-a-soc-home-lab-from-scratch-pfsense-splunk-kali-windows-10-efa330d416c1?source=rss-f84c76d3e064------2</link>
            <guid isPermaLink="false">https://medium.com/p/efa330d416c1</guid>
            <category><![CDATA[kali-linux]]></category>
            <category><![CDATA[cybersecurity-home-lab]]></category>
            <category><![CDATA[soc-analyst]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Divinefavour Nwachukwu]]></dc:creator>
            <pubDate>Sun, 07 Jun 2026 13:06:42 GMT</pubDate>
            <atom:updated>2026-06-07T13:06:42.490Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A step-by-step walkthrough of setting up a real Security Operations Center lab environment using VirtualBox; including every challenge, mistake, and lesson along the way.</em></p><h3>Introduction</h3><p>Building a SOC (Security Operations Center) lab is one of the best things a cybersecurity student or aspiring analyst can do. Not because it looks good on a CV (though it does), but because it forces you to actually understand how everything connects; firewalls, SIEMs, attacker machines, victim machines, network segmentation. You stop reading about it and start <strong><em>doing</em></strong> it.</p><p>This lab was built as part of my coursework under the <strong>ICDFA (International Cybersecurity and Digital Forensics Academy) Advanced SecOps scholarship program. </strong>The objective: design and deploy a functional virtualized SOC environment from scratch.</p><p>Over four days, I set up the following:</p><ul><li><strong>pfSense: </strong>open-source firewall/router (the network brain)</li><li><strong>Splunk Enterprise on Ubuntu: </strong>SIEM for log collection and analysis</li><li><strong>Kali Linux: </strong>attacker machine</li><li><strong>Windows 10: </strong>victim machine</li></ul><p>Everything runs inside <strong>Oracle VirtualBox</strong> on a single host machine, isolated in a private virtual network.</p><p>This guide covers every step in detail, including the parts that went wrong. If you’re a beginner, don’t skip the troubleshooting sections. That’s where the real learning is.</p><h3>Lab Architecture Overview</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kQfBCJIoMqfYQyLjxqtIFA.png" /></figure><p>Before touching any tool, understand what you’re building:</p><pre>[Host Machine]<br>     |<br>     └── VirtualBox<br>           ├── pfSense VM          ← Firewall / Router<br>           │     ├── Adapter 1: NAT (internet access)<br>           │     └── Adapter 2: Host-Only Adapter (internal network)<br>           │<br>           ├── Ubuntu (Splunk)     ← SIEM<br>           │     └── Adapter: Host-Only Adapter<br>           │<br>           ├── Kali Linux          ← Attacker<br>           │     └── Adapter: Host-Only Adapter<br>           │<br>           └── Windows 10          ← Victim<br>                 └── Adapter: Host-Only Adapter</pre><p>All internal machines communicate through pfSense, which also controls internet access. Splunk sits in the middle, collecting logs from everything.</p><h3>Part 1: Setting Up the Host-Only Network in VirtualBox</h3><p>Before creating any VM, you need to configure a <strong>Host-Only Network</strong> in VirtualBox. This is the private internal network that all your VMs will share.</p><h3>What is a Host-Only Network?</h3><p>A Host-Only network is a virtual network that exists only between your host machine and your VMs. It’s isolated from the internet by default. Think of it as a private LAN just for your lab.</p><h3>What is a DHCP Server (and should you use it)?</h3><p>A DHCP server automatically assigns IP addresses to devices on the network. In VirtualBox’s Host-Only settings, you can enable or disable it:</p><ul><li><strong>Enabled</strong>: VMs get IPs automatically — easier to set up, but IPs may change</li><li><strong>Disabled</strong>: You assign static IPs manually — more control, better for a lab environment</li></ul><p>For a SOC lab, static IPs are strongly recommended. You want to know exactly where Splunk is, where pfSense is, and where each machine lives.</p><h3>Steps:</h3><ol><li>Open Oracle VirtualBox</li><li>Go to <strong>File → Tools → Network Manager</strong></li><li>Click <strong>“Create”</strong> to add a new Host-Only Network</li><li>Go to the <strong>Adapter</strong> tab — note the IP (e.g., 192.168.56.9)</li><li>Go to the <strong>DHCP Server</strong> tab — you can enable or disable here</li><li>Click <strong>Apply</strong> and close</li></ol><blockquote><strong><em>Note:</em></strong><em> The adapter IP you see (e.g., </em><em>192.168.56.9) is your host machine&#39;s address on this virtual network. Your VMs will use addresses in the same subnet.</em></blockquote><h3>Part 2: Setting Up pfSense (The Firewall)</h3><p>pfSense is a FreeBSD-based open-source firewall. In this lab, it acts as the gateway between your internal virtual network and the internet.</p><h3>Why pfSense?</h3><p>In a real SOC, traffic flows through a firewall before hitting any internal system. Having pfSense in your lab gives you:</p><ul><li>Real-world firewall configuration experience</li><li>Network segmentation practice</li><li>A realistic traffic flow to log and monitor</li></ul><h3>Download</h3><p><strong>Method 1 (Online — not recommended for lab use):</strong> Visit https://www.pfsense.org/download/ and download the Netgate Installer (AMD64 ISO, IPM version). You&#39;ll need to create an account. A download link will be sent to your email.</p><blockquote><strong><em>Lesson learned the hard way:</em></strong><em> The online installer method often fails in lab environments. pfSense sometimes requires internet connectivity during installation and can break if the connection drops or is restricted.</em></blockquote><p><strong>Method 2 (Offline ISO — strongly recommended):</strong> Use the offline version from the Netgate archive:</p><pre>https://atxfiles.netgate.com/mirror/downloads/</pre><p>Find and download: pfSense-CE-2.7.2-RELEASE-amd64.iso.gz</p><p>Extract with WinRAR to get the .iso file. Keep the ISO in a dedicated VMs folder for easy access.</p><h3>VirtualBox Configuration for pfSense</h3><p>Create a new VM with these settings:</p><p>Setting Value Type BSD Version FreeBSD (64-bit), RAM 1024 MB, Disk 8 GB (VDI, Dynamically Allocated), Network Adapter 1 Attached to NAT, Network Adapter 2 Attached to Host-Only Adapter.</p><p><strong>Why two adapters?</strong></p><ul><li>Adapter 1 (NAT) gives pfSense access to the internet through your host machine</li><li>Adapter 2 (Host-Only) connects pfSense to your internal lab network</li></ul><h3>Installing pfSense</h3><ol><li>Attach the ISO: In VM Settings → Storage → select the optical drive → choose your pfSense ISO</li><li>Start the VM</li><li>Follow the installer prompts</li><li>When asked about partition scheme, select <strong>GPT (GUID Partition Table)</strong> → click Finish</li><li>The installer will begin extracting and installing applications</li><li>When installation completes, remove the ISO: <strong>Devices → Optical Drives → Remove disk from virtual drive → Force Unmount</strong></li><li>Reboot the VM</li></ol><h3>Post-Installation: Setting the IP Address</h3><p>Once pfSense boots to the console menu:</p><ol><li>Select the option to <strong>Set Interface IP Address</strong></li><li>Set the IP address and subnet for the LAN interface (e.g., 192.168.56.11, subnet 255.255.255.0)</li></ol><p>This IP is how other VMs on the Host-Only network will reach pfSense.</p><blockquote><strong><em>Default credentials:</em></strong><em> Username: </em><em>admin / Password: </em><em>pfsense (change this immediately in production)</em></blockquote><h3>Part 3: Setting Up Splunk Enterprise on Ubuntu Linux</h3><p>Yes, on Linux. Not Windows. And yes, it works beautifully.</p><h3>Why Ubuntu for Splunk?</h3><p>Splunk Enterprise runs natively on Linux, and for a SOC lab, Ubuntu LTS is the ideal platform. It’s stable, well-documented, and lightweight enough to run alongside other VMs.</p><h3>Downloading Ubuntu LTS</h3><ol><li>Go to https://ubuntu.com and download the latest <strong>LTS</strong> (Long-Term Support) release as an ISO</li><li>Before creating your VM, a quick note:</li></ol><blockquote><strong><em>Important:</em></strong><em> If you’ve run Ubuntu VMs before in VirtualBox, delete old VM logs and snapshots before creating a new one. Leftover data can cause conflicts during unattended installation.</em></blockquote><p>Also, when creating the VM in VirtualBox, avoid the <strong>“Unattended Install”</strong> option. Set it up manually for full control.</p><h3>VirtualBox Configuration for Ubuntu</h3><p>Create a new VM:</p><p>Setting Value Type Linux Version Ubuntu (64-bit), RAM 2048 MB minimum (4096 recommended), Disk 20 GB+ (VDI, Dynamically Allocated), Network Adapter Attached to Host-Only Adapter.</p><h3>Installing Ubuntu</h3><ol><li>Attach the ISO and start the VM</li><li>Follow the standard Ubuntu installation wizard</li><li>When setting up partitions, select <strong>GPT</strong> → proceed</li><li>Complete the installation, then remove the ISO and reboot</li></ol><h3>Installing VirtualBox Guest Additions on Ubuntu (CLI Method)</h3><p>Guest Additions improves display resolution, shared clipboard, and folder sharing.</p><p><strong>Option A — Via CLI (recommended):</strong></p><pre>sudo apt update<br>sudo apt install virtualbox-guest-utils virtualbox-guest-x11 -y<br># Reboot after installation</pre><p><strong>Option B — Via GUI (Windows VMs):</strong></p><ol><li>Devices → Insert Guest Additions CD Image → File Explorer → CD Drive → VBoxWindowsAdditions.exe (double-click)</li><li>Double-click VBoxWindowsAdditions-amd64</li><li>Follow prompts → Reboot</li></ol><h3>Transferring Files from Host to VM (Shared Folders)</h3><p>If you need to move files from your Windows host into any VM:</p><ol><li>In VirtualBox, select the VM → <strong>Settings → Shared Folders</strong></li><li>Click the <strong>Add</strong> button (folder+ icon)</li><li>Enter the path to the folder on your host</li><li>Give it a name</li><li>Check <strong>Auto-mount</strong> and <strong>Make Permanent</strong></li><li>Click OK → Start or Restart the VM</li></ol><p>The shared folder will appear as a network drive inside the VM.</p><h3>Installing Splunk Enterprise</h3><ol><li>Visit <a href="https://splunk.com/">https://splunk.com</a></li><li>Click <strong>Free Trials &amp; Downloads</strong></li><li>Create an account or log in</li><li>Navigate to <strong>Splunk Enterprise → Linux</strong></li><li>Select the <strong>.deb (Debian)</strong> package option</li><li>You’ll see a web link — <strong>do not click it</strong>. Copy it instead.</li></ol><blockquote><em>You’ll likely see a web link. The trick is to copy the link, not click it. The download is timed (it expires), so paste it immediately into your terminal.</em></blockquote><ol><li>In your Ubuntu terminal:</li></ol><pre># Step 6: Click Download → Check the &quot;Accept Conditions&quot; box<br># Step 7: A new page shows &quot;You&#39;re downloading 8.x for Linux...&quot;<br># Step 8: On the right side, click &quot;Download via Command Line (wget)&quot;<br># Step 9: Copy the link (it&#39;s timed — act fast)<br># Step 10: Copy the link<br># Step 11: Paste into your terminal — allow to download (~30 mins depending on speed)<br># Step 12: Run ls — you should see the zipped Splunk file</pre><ol><li>Install Splunk:</li></ol><pre>sudo dpkg -i splunk-&lt;version&gt;-amd64.deb</pre><ol><li>Start Splunk and accept the license:</li></ol><pre>sudo /opt/splunk/bin/splunk start --accept-license --run-as-root</pre><ol><li>Enable Splunk to start on boot:</li></ol><pre>sudo /opt/splunk/bin/splunk enable boot-start</pre><ol><li>Get your IP address:</li></ol><pre>ip addr</pre><ol><li>Open your browser and navigate to:</li></ol><pre>http://&lt;your-ubuntu-ip&gt;:8000</pre><ol><li>Log in with the credentials you set during installation</li></ol><p><strong>Congratulations. You’re in!</strong> 🎉</p><h3>Part 4: Setting Up Kali Linux (The Attacker Machine)</h3><p>Kali Linux is your offensive operations platform. In this lab, it simulates an attacker trying to compromise the Windows 10 victim.</p><h3>Why Kali?</h3><p>Kali comes pre-loaded with hundreds of security tools; Nmap, Metasploit, Wireshark, Burp Suite, and more. It’s the industry-standard platform for penetration testing and red team activities.</p><h3>Setup</h3><ol><li>Download Kali Linux ISO from <a href="https://kali.org/get-kali">https://kali.org/get-kali</a></li><li>Create a VirtualBox VM:</li></ol><ul><li>Type: Linux, Version: Debian (64-bit)</li><li>RAM: 2048 MB minimum</li><li>Disk: 20 GB (VDI, Dynamically Allocated)</li><li>Network: Host-Only Adapter</li></ul><p>3. Install using the standard Kali installer</p><p>4. Set a static IP in the same subnet as your other lab machines</p><h3>Part 5: Setting Up Windows 10 (The Victim Machine)</h3><p>The Windows 10 VM is your target. In later exercises, you’ll simulate attacks against it and observe the logs in Splunk.</p><h3>Setup</h3><ol><li>Download a Windows 10 ISO (evaluation copy available from Microsoft’s website)</li><li>Create a VirtualBox VM:</li></ol><ul><li>Type: Microsoft Windows, Version: Windows 10 (64-bit)</li><li>RAM: 2048 MB minimum</li><li>Disk: 50 GB (VDI, Dynamically Allocated)</li><li>Network: Host-Only Adapter</li></ul><p>3. Install Windows 10 normally</p><p>4. Install VirtualBox Guest Additions (see the Windows method covered in Part 3)</p><p>5. Configure a static IP in the same subnet as the rest of the lab</p><h3>Part 6: Verifying the Lab; Can Everyone Talk to Each Other?</h3><p>Once all VMs are up, verify connectivity:</p><p><strong>From Kali, ping pfSense:</strong></p><pre>ping 192.168.56.9</pre><p><strong>From Ubuntu (Splunk), ping pfSense:</strong></p><pre>ping 192.168.56.9</pre><p><strong>From Windows 10, open Command Prompt:</strong></p><pre>ping 192.168.56.10</pre><p>If all three respond, your network is working correctly.</p><blockquote><strong><em>Troubleshooting tip:</em></strong><em> If pings fail, check that all VMs are using the</em><strong><em> </em>same<em> </em></strong><em>Host-Only network adapter (they should match the one you configured in Network Manager). Also confirm static IPs are set correctly and are in the same subnet.</em></blockquote><h3>Challenges I Encountered (And What I Learned)</h3><h3>1. Wrong pfSense Image</h3><p>The first attempt used the online Netgate installer. During boot, pfSense tried to fetch packages from the internet and failed because of network restrictions. The fix: switch to the offline ISO (Method 2).</p><p>Lesson: for lab work, always use the offline version of anything.</p><h3>2. Ethernet Adapter IP Confusion</h3><p>While configuring the Host-Only adapter, I mixed up 192.168.56.90 and 192.168.56.9. This caused connectivity failures between VMs that took a long time to diagnose.</p><p>The lesson: document your IP scheme <em>before</em> you start assigning addresses. Write it down.</p><h3>3. Splunk Download Link Expiry</h3><p>The Splunk CLI download link is time-limited. First attempt; I copied it, switched windows to look something up, came back, pasted it into the terminal, and it had already expired.</p><p>Lesson: once you copy that link, paste it into the terminal immediately.</p><h3>4. Ubuntu VM Conflicts from Old Snapshots</h3><p>Had an old Ubuntu VM with leftover snapshots. When creating the new Ubuntu VM for Splunk, there were subtle conflicts in VirtualBox’s VM registry.</p><p>Lesson: clean up old VMs and snapshots before starting fresh.</p><h3>Summary: Full Lab Stack at a Glance</h3><p>Component — Role — Platform</p><p>pfSense — Firewall / Router — FreeBSD</p><p>VM Splunk Enterprise — SIEM — Ubuntu</p><p>VM Kali Linux — Attacker — Kali</p><p>VM Windows 10 — Victim — Windows</p><p>VM VirtualBox — Hypervisor — Host Machine</p><h3>Final Thoughts</h3><p>A SOC home lab isn’t built in a day (mine took four). It breaks, confuses you, and occasionally makes you question your choices. But every time something goes wrong and you fix it, you understand the technology better than any tutorial could teach you.</p><p>Understanding comes from building, breaking, troubleshooting, and rebuilding.</p><p>If you’re working through a similar setup or got stuck somewhere in this guide, feel free to reach out. Let’s build.</p><p><em>Written by Divinefavour | Cybersecurity Analyst | Security Operations</em></p><p><em>#Cybersecurity #SOC #Splunk #BlueTeam #SIEM #HomeLab</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=efa330d416c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>