<?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 Mithun Rosinth on Medium]]></title>
        <description><![CDATA[Stories by Mithun Rosinth on Medium]]></description>
        <link>https://medium.com/@blabber_ducky?source=rss-5bf5e411509a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6KFAWQj6J3B73Qoc60uI4w.jpeg</url>
            <title>Stories by Mithun Rosinth on Medium</title>
            <link>https://medium.com/@blabber_ducky?source=rss-5bf5e411509a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 07:25:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@blabber_ducky/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[My Self Hosting Stack]]></title>
            <link>https://medium.com/@blabber_ducky/my-self-hosting-stack-55c8fe66f5c2?source=rss-5bf5e411509a------2</link>
            <guid isPermaLink="false">https://medium.com/p/55c8fe66f5c2</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[ufw]]></category>
            <category><![CDATA[bash]]></category>
            <category><![CDATA[docker-compose]]></category>
            <category><![CDATA[selfhost]]></category>
            <dc:creator><![CDATA[Mithun Rosinth]]></dc:creator>
            <pubDate>Thu, 19 Mar 2026 23:48:39 GMT</pubDate>
            <atom:updated>2026-03-19T23:48:39.184Z</atom:updated>
            <content:encoded><![CDATA[<p>In my previous post I wrote about the journey that led to discovering self hosting and the solutions that I am using right now. This post, as promised, will cover the technical details on how I host them, and the automation and security solutions to keep them safe.</p><p>Let us get the hardware details out of the way first. All my services are running on a mini PC that has an Intel N95 with 16GB RAM and a 512GB boot SSD. There is another 512GB SSD and a couple of 4TB Seagate IronWolf drives running in RAID1 (mirrored for redundancy) for my storage needs. The SSD is the primary storage for my Immich library and the HDDs in mirror give 4TB of space for my personal cloud storage. Both HDDs are configured using hardware RAID on the QNAP 4Bay DAS enclosure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/363/1*DUI23dBMCc8c_F1p449-bg.jpeg" /><figcaption>My Hardware</figcaption></figure><p>On the software side of things, the mini PC runs Ubuntu Server 24.04 LTS and all the services are hosted using Docker and managed using Docker Compose. All my Docker Compose files are hosted in my git repo and I create .env_template files under each service folder to supply secret values. I copy this file to .env on the machine and fill in the values; on the repo only the templates exist. While this is not the most secure way of storing secrets — the best way would be to use a password vault or secret manager — the tolerance is a little higher in a homelab environment and .env files serve me well.</p><p>Coming to the services that I am running. For <a href="https://immich.app/">Immich</a>, I use the default compose manifest provided by the developers on their git repo. I just add the Tailscale sidecar container to enable secure access and HTTPS certificates through Tailscale DNS. For <a href="https://github.com/9001/copyparty">CopyParty</a>, I use templates from an amazing resource called <a href="https://docs.linuxserver.io/images-by-category/">LinuxServer</a>.io. This is a community that maintains Docker images and template Docker Compose files for various self-hostable services. Go ahead and give it a look — you might find your next service there.</p><p>On my git <a href="https://github.com/blabber-ducky/homelab">repo</a>, I have a directory named “server_automation” which is also added to the PATH variable on my server. It contains scripts that give me a quicker way to start, stop, restart and update all the Docker Compose stacks running on my server. Here is a sample snippet for updating services or a specified service.</p><pre>#!/bin/bash<br><br>if [[ $1 ]]<br>then<br>    export services=$1;<br>else<br>    export services=$(docker ps --filter &quot;label=com.docker.compose.project&quot; -q | xargs docker inspect --format=&#39;{{index .Config.Labels &quot;com.docker.compose.project&quot;}}&#39;| sort | uniq)<br>fi<br><br>echo -e &quot;\e[32mFollowing services are running:\e[0m&quot;<br>echo $services<br><br>for service in $services;<br>do<br>        echo -e &quot;\e[32mWorking on $service .....\e[0m&quot;<br><br>        if [[ &quot;$service&quot; = &quot;samba&quot; ]];<br>        then<br>                cd ~/homelab/samba &amp;&amp;<br>                docker compose down &amp;&amp;<br>                docker compose pull &amp;&amp;<br>                docker compose up -d;<br>        elif [[ &quot;$service&quot; = &quot;immich&quot; ]];<br>        then<br>                cd ~/immich-app &amp;&amp;<br>                docker compose down &amp;&amp;<br>                docker compose pull &amp;&amp;<br>                docker compose up -d;<br>        elif [[ &quot;$service&quot; = &quot;copyparty&quot; ]];<br>        then<br>                cd ~/homelab/copyparty &amp;&amp;<br>                docker compose down &amp;&amp;<br>                docker compose pull &amp;&amp;<br>                docker compose up -d;<br>        elif [[ &quot;$service&quot; = &quot;karakeep&quot; ]];<br>        then<br>                cd ~/homelab/karakeep &amp;&amp;<br>                docker compose down &amp;&amp;<br>                docker compose pull &amp;&amp;<br>                docker compose up -d;<br>        elif [[ &quot;$service&quot; = &quot;jellyfin&quot; ]];<br>        then<br>                cd ~/homelab/jellyfin &amp;&amp;<br>                docker compose down &amp;&amp;<br>                docker compose pull &amp;&amp;<br>                docker compose up -d;<br>        elif [[ &quot;$service&quot; = &quot;arr&quot; ]];<br>        then<br>                cd ~/homelab/arr &amp;&amp;<br>                docker compose down &amp;&amp;<br>                docker compose pull &amp;&amp;<br>                docker compose up -d;<br>        else<br>                echo -e &quot;\e[31mDid not find $service in configuration\e[0m&quot;;<br>        fi<br><br>done;<br><br>docker image prune -f<br><br>echo -e &quot;\e[32mFinished updating the following services:\e[0m&quot;<br>echo $services</pre><p>I also have cron jobs running that trigger backup scripts to take a backup of my home directory along with configurations and application data of the services into the RAID volume. Another job takes a DB backup of my Immich instance and the library. All these jobs run every day at 5 AM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S9oYECamnnjG7GKjncnkUA.jpeg" /><figcaption>cronjobs</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U_drkCxo8qzdgdfxvQk1vw.jpeg" /><figcaption>immich backup script</figcaption></figure><p>From a security perspective, I have UFW acting as the host-based firewall on the server. I have a few simple rules: a default rule to block all incoming traffic, a couple of rules to allow incoming and outgoing traffic on Tailscale (further locked down by Tailscale Access Grants, about which I wrote in my Tailscale article), and a couple more rules to allow SSH from my laptop and phone on the local network through static IPs (which have been statically assigned using MAC binding on my router).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XaNNWt4QvVIedif0OWe3Mw.jpeg" /><figcaption>UFW</figcaption></figure><p>As I continue to experiment with new services and devices, I have a few different ideas for how I could architect this setup further — more network segmentation using VLANs, granular local network controls, and more. I will make sure to write about them as soon as I implement them. Until then, happy hosting!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55c8fe66f5c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Self hosting the tech super spell every techie should learn]]></title>
            <link>https://medium.com/@blabber_ducky/self-hosting-the-tech-super-spell-every-techie-should-learn-6ee9f3d961ac?source=rss-5bf5e411509a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ee9f3d961ac</guid>
            <category><![CDATA[self-hosting]]></category>
            <category><![CDATA[copyparty]]></category>
            <category><![CDATA[homelab]]></category>
            <category><![CDATA[immich]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Mithun Rosinth]]></dc:creator>
            <pubDate>Thu, 19 Mar 2026 23:03:03 GMT</pubDate>
            <atom:updated>2026-03-19T23:03:03.676Z</atom:updated>
            <content:encoded><![CDATA[<p>Being a tech geek, it is hard to not have a hobby that involves building and breaking computer stuff. What started as a way to conveniently watch movies on any device on my local network slowly turned into a part-time job of maintaining services that my family members use. This post is to share about how I got started and progressed to where I am today in my self hosting journey, and to inspire more people to try out some awesome open source projects.</p><p>It had been a couple of months since I moved to a new city for work. Since I had not bought all the furniture for my room, I was mostly working off my bed with my main laptop. Since my secondary laptop had more storage, all my movies and files for my labs were stored on it (the speaker on my main machine was way better so I preferred it for content consumption). Every time I wanted to watch a movie or spin up a VM from an ISO I had not used in a while, I had to ransack my backpack to get a USB drive (yes, people still use them…. at least we tech people do) and transfer what was required. This ordeal got me wondering if there was a way to directly stream the movies out of my secondary laptop and access the files over the network.</p><p>Enter trusty old SMB. The quickest way for me to access all the files including the movies over the network was SMB. Now the HDD on my secondary machine had essentially become a NAS. This is where my hyper picky brain for compartmentalizing stuff spoiled this simple solution. Now that I had access over the network, I wanted a “continue where you left off” kind of resume while watching media. This put me on a quest to find a service that would allow me to have an OTT-style local streaming experience.</p><p>Enter Plex and Jellyfin. Right about this time I had started watching a few YouTube channels that were publishing content on self hosting, from where I picked up Jellyfin and Plex. For the uninitiated, Jellyfin and Plex are media server software that allow us to serve media content on a local machine to the local network. With solutions like Tailscale, both Jellyfin and Plex can become your own private OTT platform.</p><p>With the media sharing solution out of the way, I started exploring other services that I could run on the machine to spice up my janky self hosting setup. At this point all my services were running on WSL on a Windows machine and all the data was stored on an external HDD. Then for my birthday that year, I decided to gift myself a couple of NAS HDDs, a DAS, and a mini PC with an Intel N95 to build a dedicated self hosting setup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/363/1*DUI23dBMCc8c_F1p449-bg.jpeg" /><figcaption>My Setup Right Now. Second miniPC for my cybersec homelab needs.</figcaption></figure><p>Around the same time I also decided to set up something that would allow remote backup of photos from my phone and my mom’s. This wasn’t critical, but was to act as a secondary backup to my cloud storage.</p><p>Enter Immich — arguably the most awesome open source self-hosted application on my list. Immich is a photo backup solution that can very well replace Google Photos and iCloud Photos for a lot of people. As for me, availability matters and I can’t guarantee the same level of redundancy as Apple, so Immich stays as my secondary backup to iCloud Photos. I have configured the app on my phone and my mom’s in a way that the photos get automatically backed up to Immich through secure tailscale network alongside iCloud.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-_jqubgpj2RTn1BoDS79yw.jpeg" /><figcaption>Immich media backup</figcaption></figure><p>With Jellyfin and Immich under my belt, I wanted a fancier solution for my file server needs.</p><p>Enter CopyParty. Again, an awesome open source tool that allows me to access all my files over the network, mount a 4TB storage directory on my main machine remotely, and share it with anybody through Tailscale.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xkCQSxI9Gv1ywch3M3h6Lw.jpeg" /><figcaption>Copyparty File Server</figcaption></figure><p>The actual ROI for me in this project has been designing Docker Compose files to make the deployments and maintenance very easy, writing bash scripts and cron jobs for server maintenance, learning about RAID to design redundancy for storage, and a lot of network security architecture ideas to segment the services using Tailscale and write UFW rules for host-level network firewall. Let us leave the more technical nitty gritty stuff for another post. I will dive deeper into how Docker is being utilized and all the other apps and services I talked about. Until then, happy hosting!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ee9f3d961ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Home Lab — 7— Architecting the Network]]></title>
            <link>https://medium.com/@blabber_ducky/home-lab-7-architecting-the-network-030a63779a2c?source=rss-5bf5e411509a------2</link>
            <guid isPermaLink="false">https://medium.com/p/030a63779a2c</guid>
            <category><![CDATA[homelab]]></category>
            <category><![CDATA[computer-network-security]]></category>
            <category><![CDATA[security-architecture]]></category>
            <category><![CDATA[proxmox]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Mithun Rosinth]]></dc:creator>
            <pubDate>Sun, 12 Oct 2025 19:02:16 GMT</pubDate>
            <atom:updated>2025-10-12T19:02:16.808Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Home Lab — 7— Architecting the Network</strong></h3><p>The network design for the home lab environment has been through several iterations. This involved me redoing the whole environment multiple times with different choices for the platforms being used. Recently I made a choice to stick with a few solution (All of them opensource) that could be potentially used in a small/medium business environment.</p><p>As with my previous posts in this series, the hypervisor is proxmox and linux bridges in proxmox are a crucial part in the setup described in this post. OPNSense in the routing and firewall solution used to handle most of the control pane of the network. To start off with the basics, there are 3 linux bridge interfaces in the hypervisor level.<br>1. <strong>vmbr0</strong> — Management interface for proxmox and enables network connectivity to the host.<br>2. <strong>Lab WAN </strong>— An intermediary interface to connect the OPNSense to host network.<br>3. <strong>Lab LAN </strong>— Consists of all the VLANs for all the VMs to be created.</p><p>The IP Range used for the lab is <strong><em>10.10.0.0/16</em></strong>. Subnetting details for the environment so far is as below.<br>1. WAN — Connection from OPNSense to LabWAN — <strong><em>10.10.99.0/30</em></strong><br>2. LAN — Connection from OPNSense and gives access to Network Management Console — <strong><em>10.10.88.0/30</em></strong><br>3. Sec VLAN (Tag: 100) — VLAN for all servers running security and infra tools — <strong><em>10.10.77.0/29</em></strong><br>4. Server VLAN (Tag: 200) — VLAN for all servers running applications — <strong><em>10.10.66.0/29</em></strong><br>5. Workstation VLAN (Tag: 300) — VLAN for all user machines — <strong><em>10.10.55.0/29</em></strong><br>6. ADHOC VLAN (Tag: 400) — VLAN for VMs that I will be using for CTFs and random testing — <strong><em>10.10.44.0/29</em></strong><br>7. Isolated VLAN (Tag: 500) — VLAN for VMs used for Sandboxing and DFIR purposes —<strong><em> 10.10.33.0/29</em></strong></p><p>All of the VLANs are configured as optional interfaces on OPNSense and the gateway IP address (first address in the subnet) is assigned to the interface itself. DHCP has been enabled in all VLANs except Sec VLAN and Server VLAN. This is to ensure IP assignments are validated and done manually for servers that run crucial services and to make firewall rule writing easier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YbTAMfUKs4ELiNFlCyF35A.png" /><figcaption>Interface assignments in OPNSense</figcaption></figure><p>All these subnets will still not be able to connect to any external network since the only outbound path via <strong><em>vmbr0</em></strong> is not configured to route and handle traffic from all these internal networks. I utilised iptables for adding rules that will allow the traffic to be NATed by both the WAN interface and vmbr0. The below specified <strong><em>iptables</em></strong> rules are supposed to be added to a script (should be made executable) file under <strong><em>/etc/network/if-up.d/</em></strong> for the NAT rules to be persistent.</p><p><strong>vmbr0</strong></p><pre>iptables -t nat -A POSTROUTING -s 10.10.99.0/30 -o vmbr0 -j MASQUERADE<br>iptables -A FORWARD -s 10.10.99.0/30 -o vmbr0 -j ACCEPT<br>iptables -A FORWARD -d 10.10.99.0/30 -m state - state ESTABLISHED,RELATED -i vmbr0 -j ACCEPT</pre><p><strong>Lab WAN</strong></p><pre>iptables -t nat -A POSTROUTING -s 10.10.88.0/30 -o LabLAN -j MASQUERADE<br>iptables -A FORWARD -s 10.10.88.0/30 -o LabLAN -j ACCEPT<br>iptables -A FORWARD -d 10.10.88.0/30 -m state - state ESTABLISHED,RELATED -i LabLAN -j ACCEPT<br>iptables -t nat -A POSTROUTING -s 10.10.77.0/29 -o LabLAN -j MASQUERADE<br>iptables -A FORWARD -s 10.10.77.0/29 -o LabLAN -j ACCEPT<br>iptables -A FORWARD -d 10.10.77.0/29 -m state - state ESTABLISHED,RELATED -i LabLAN -j ACCEPT<br>iptables -t nat -A POSTROUTING -s 10.10.66.0/29 -o LabLAN -j MASQUERADE<br>iptables -A FORWARD -s 10.10.66.0/29 -o LabLAN -j ACCEPT<br>iptables -A FORWARD -d 10.10.66.0/29 -m state - state ESTABLISHED,RELATED -i LabLAN -j ACCEPT<br>iptables -t nat -A POSTROUTING -s 10.10.55.0/29 -o LabLAN -j MASQUERADE<br>iptables -A FORWARD -s 10.10.55.0/29 -o LabLAN -j ACCEPT<br>iptables -A FORWARD -d 10.10.55.0/29 -m state - state ESTABLISHED,RELATED -i LabLAN -j ACCEPT<br>iptables -t nat -A POSTROUTING -s 10.10.44.0/29 -o LabLAN -j MASQUERADE<br>iptables -A FORWARD -s 10.10.44.0/29 -o LabLAN -j ACCEPT<br>iptables -A FORWARD -d 10.10.44.0/29 -m state - state ESTABLISHED,RELATED -i LabLAN -j ACCEPT<br>iptables -t nat -A POSTROUTING -s 10.10.33.0/29 -o LabLAN -j MASQUERADE<br>iptables -A FORWARD -s 10.10.33.0/29 -o LabLAN -j ACCEPT<br>iptables -A FORWARD -d 10.10.33.0/29 -m state - state ESTABLISHED,RELATED -i LabLAN -j ACCEPT</pre><p>The completed network architecture will be as depicted in the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*7COn0JwqiBDM--c6a3D_BA.jpeg" /><figcaption>Network Architecture</figcaption></figure><p>As an added way for ease of access (since this is just a home lab environment), I have also installed tailscale community plugin on the OPNSense appliance to enable direct access to all the VLANs and the management console of OPNSense from my laptop.</p><p>In the upcoming posts I will go through the firewall rules on OPNSense and walkthrough a few network level use cases.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=030a63779a2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Managing Tailscale Network Access with ACLs]]></title>
            <link>https://medium.com/@blabber_ducky/managing-tailscale-network-access-with-acls-e2989b550e27?source=rss-5bf5e411509a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2989b550e27</guid>
            <category><![CDATA[dns]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[tailscale]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[network-security]]></category>
            <dc:creator><![CDATA[Mithun Rosinth]]></dc:creator>
            <pubDate>Fri, 13 Jun 2025 00:32:22 GMT</pubDate>
            <atom:updated>2025-06-13T00:32:22.119Z</atom:updated>
            <content:encoded><![CDATA[<p>Tailscale recently introduced a new access control method called Grants. While I’ve been using ACLs for some time, I haven’t yet migrated to the new system — that’s a topic for a future post.</p><p><strong>Understanding ACLs in Tailscale</strong></p><p>Access Control Lists (ACLs) are rules that help control device access within a Tailscale network. ACLs form the core component that makes Tailscale a Software-Defined Network (SDN). Before diving into my ACL Policy File, let me outline a few network scenarios and how I want access to be managed.</p><p><strong>Network Architecture Overview</strong></p><p>My Tailscale network consists of:</p><p>- Family members’ devices<br>- My administrative devices (where I handle most network management)<br>- Mini PCs functioning as servers<br>- Household devices (currently an Apple TV, with more planned for the future)</p><p><strong>Service Categories</strong><br>My servers host various services, which I’ve organized into two main categories:</p><p><strong>User Services</strong><br>- Jellyfin: Self-hosted media server<br>- Immich: Self-hosted image backup server</p><p><strong>Admin Services</strong><br>- Homepage: Dashboard for all services and bookmarks to network resources<br>- ARR stack applications: For media acquisition</p><p>Some services require the ability to communicate with other services for dashboards and statistics collection.</p><pre>{<br> &quot;tagOwners&quot;: {<br>  &quot;tag:admin-devices&quot;: [&quot;autogroup:admin&quot;], //my devices<br>  &quot;tag:lab-devices&quot;:   [&quot;autogroup:admin&quot;], //cybersecurity labs<br>  &quot;tag:home-devices&quot;:  [&quot;autogroup:admin&quot;], //devices for all home services<br>  &quot;tag:home-services&quot;: [&quot;autogroup:admin&quot;], //home services with tailscale docker/service<br>  &quot;tag:home-servers&quot;:  [&quot;autogroup:admin&quot;], //home servers<br>  &quot;tag:home-users&quot;:    [&quot;autogroup:admin&quot;], //Other home user devices<br>  &quot;tag:smb-access&quot;:    [&quot;autogroup:admin&quot;], //Machines with access to shares (segregated using usernames)<br> },<br> &quot;acls&quot;: [<br>  {<br>   //Rule 1<br>   &quot;action&quot;: &quot;accept&quot;,<br>   &quot;src&quot;:    [&quot;tag:admin-devices&quot;],<br>   &quot;dst&quot;:    [&quot;*:*&quot;],<br>  },<br>  {<br>   //Rule 2<br>   &quot;action&quot;: &quot;accept&quot;,<br>   &quot;src&quot;: [<br>    &quot;tag:home-users&quot;,<br>    &quot;tag:home-devices&quot;,<br>    &quot;tag:home-servers&quot;,<br>   ],<br>   &quot;dst&quot;: [&quot;tag:home-services:443&quot;], //Access to only allow jellyfin and immich<br>  },<br>  {<br>   //Rule 3<br>   &quot;action&quot;: &quot;accept&quot;,<br>   &quot;src&quot;:    [&quot;tag:home-servers&quot;],<br>   &quot;dst&quot;: [<br>    &quot;tag:home-servers:8080,8989,9696,7878&quot;,<br>    &quot;192.168.0.145:8920&quot;,<br>   ],<br>  },<br>  {<br>   //Rule 4<br>   &quot;action&quot;: &quot;accept&quot;,<br>   &quot;src&quot;:    [&quot;*&quot;],<br>   &quot;dst&quot;:    [&quot;autogroup:internet:*&quot;],<br>  },<br>  {<br>   //Rule 5<br>   &quot;action&quot;: &quot;accept&quot;,<br>   &quot;src&quot;:    [&quot;tag:smb-access&quot;],<br>   &quot;dst&quot;:    [&quot;tag:home-servers:445,137,138,139&quot;],<br>  },<br> ],<br><br> &quot;ssh&quot;: [<br>  {<br>   &quot;action&quot;: &quot;accept&quot;,<br>   &quot;src&quot;:    [&quot;tag:admin-devices&quot;],<br>   &quot;dst&quot;:    [&quot;tag:lab-devices&quot;, &quot;tag:home-servers&quot;],<br>   &quot;users&quot;:  [&quot;home_admin&quot;, &quot;root&quot;],<br>  },<br> ],<br> &quot;nodeAttrs&quot;: [<br>  {<br>   &quot;target&quot;: [&quot;tag:lab-devices&quot;],<br>   &quot;attr&quot;:   [&quot;funnel&quot;],<br>  },<br> ],<br>}</pre><p><strong>ACL Implementation Strategy</strong><br>Device segregation is achieved through ACL tags that help identify devices and assign them to specific rules. The system operates in default-deny mode, meaning only traffic explicitly allowed in the policy file is permitted.</p><p><strong>Current Rule Structure</strong><br>Here’s what my existing rules accomplish:<br><strong>1.Full Admin Access:</strong> Grant complete network access to devices tagged as “admin-devices” (my personal devices)<br><strong>2. User Service Access:</strong> Allow all users, servers, and the Apple TV (tagged as “home-devices”) to access Immich and Jellyfin services<br><strong>3.Inter-Server Communication:</strong> Enable all servers to reach ARR stack services on ports 8080, 8989, 9696, and 7878, plus allow access to the Jellyfin server using local network IP addresses when hostname resolution fails<br><strong>4.Exit Node Access:</strong> Permit all devices to use any device advertising itself as an exit node. Exit nodes allow routing all traffic through them, making it appear to originate from their network (covered in detail in my previous post)<br><strong>5.SMB File Sharing:</strong> Enable flexible file sharing through SMB by temporarily adding the “smb-access” tag to any device requiring share access. My admin devices maintain permanent access</p><p><strong>SSH Configuration</strong><br>The SSH section leverages Tailscale’s SSH feature for passwordless, key-based authentication to SSH-enabled devices on the tailnet. I simply add the usernames I’ve configured on each server.</p><p><strong>Lab Device Isolation</strong><br>One notable tag that doesn’t appear in the main rules is “lab-devices.” These are devices I use for cybersecurity projects. By design, they cannot reach other devices on the tailnet by default, though I can still access them from my admin devices. The funnel feature configured at the end allows me to enable public internet access to any service I configure to use funnel, facilitating the sharing of test deployments with peers when needed.</p><p><strong>Future Exploration</strong><br>I recently discovered app connectors, which enable routing traffic to specific applications through designated nodes on the tailnet. This will be my next area of exploration.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2989b550e27" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tailscale — VPN, SDN and more]]></title>
            <link>https://medium.com/@blabber_ducky/tailscale-vpn-sdn-and-more-897fbb743b5d?source=rss-5bf5e411509a------2</link>
            <guid isPermaLink="false">https://medium.com/p/897fbb743b5d</guid>
            <category><![CDATA[vpn]]></category>
            <category><![CDATA[homelab]]></category>
            <category><![CDATA[selfhost]]></category>
            <category><![CDATA[tailscale]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[Mithun Rosinth]]></dc:creator>
            <pubDate>Sun, 09 Mar 2025 01:38:26 GMT</pubDate>
            <atom:updated>2025-03-09T01:38:26.401Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Tailscale — VPN, SDN and more</strong></h3><p>This article provides an overview of the Tailscale features I use and actively rely on. We will explore various use cases where Tailscale has been particularly useful in my setup.</p><h3>What is Tailscale?</h3><p>Tailscale is a mesh-based VPN solution that uses WireGuard as its data plane. It eliminates the need to maintain a dedicated VPN server for self-hosting needs.</p><p>In a traditional VPN setup, each client connects to a VPN gateway, which acts as the control plane for access control and authentication. In contrast, Tailscale uses a cloud-hosted Coordination Server (which is also open source) as the control plane while leveraging external identity providers like Google, Apple, and Microsoft for authentication.</p><p>Like all VPN solutions, Tailscale provides end-to-end encryption. It uses WireGuard to establish lightweight, secure tunnels between clients, ensuring privacy and security.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/1*g6MlF2fKP3JUVpcC_hQc1Q.png" /></figure><h3>Remote Labs and Personal Cloud Services</h3><p>Many of us prefer having a powerful desktop at home and a lightweight laptop for portability. When accessing a home workstation remotely, we often rely on services like Parsec or self-host a VPN.</p><p>While Parsec is great for remote desktop access, it is limited to screen sharing and does not facilitate access to other services on the home network. Self-hosting a VPN, on the other hand, requires setup, configuration, and ongoing maintenance.</p><p>Tailscale strikes a balance between flexibility and ease of use. It functions as a VPN, allowing access to native OS services while requiring minimal setup and maintenance. With features like ACLs, Exit Nodes, Funnel, and Serve, Tailscale offers a feature set comparable to a full-fledged SDN. Let’s go over some of these features and their use cases.</p><h3>Exit Node</h3><p>When multiple devices (nodes) are connected to a Tailscale network, certain nodes (running Android, Windows, Linux, macOS, Apple TV, etc.) can be designated as <strong>Exit Nodes</strong>. This allows other devices to route their internet traffic through the selected node.</p><p>Architecturally, this setup resembles a traditional VPN, except that the endpoint is one of your own machines instead of a third-party server. This feature is particularly useful for:</p><ul><li>Bypassing geo-restrictions</li><li>Encrypting traffic when using public WiFi or untrusted networks</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/1*GipXd4QWM_cEv3yCLJZdhg.png" /></figure><h3>Subnet Routing</h3><p>One key application of VPNs is site-to-site connectivity, allowing access to private networks over the internet. Tailscale’s <strong>Subnet Routing</strong> feature enables this by allowing a node to advertise entire subnets to the Tailscale network.</p><p>When enabled, other nodes in the Tailscale network can access devices in the advertised subnet — even if those devices do not have Tailscale installed.</p><p>For example, if <strong>Node 1</strong> advertises <strong>Subnet 1</strong> and <strong>Subnet 2</strong>, other devices connected to Tailscale can access machines within those subnets as if they were on the same local network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*Sab-9hzoERU92m45rOIOMg.png" /></figure><h3>Funnel and Serve</h3><p>There are scenarios where internally hosted services need to be accessed via a tunnel connection. This often leads to <strong>untrusted certificate warnings</strong> when using self-signed certificates.</p><p>Tailscale addresses this in two ways:</p><ol><li>Using Tailscale for secure server access via direct connections or subnet routing</li><li><strong>Serve &amp; Funnel</strong>: This feature allows hosting services with proper DNS hostnames and Let’s Encrypt certificates, eliminating certificate warnings and the need for a reverse proxy just for handling TLS.</li></ol><ul><li><strong>Tailscale Serve</strong>: Enables internal services to be accessed using hostnames instead of IP addresses, without needing manual DNS records or host file entries.</li><li><strong>Tailscale Funnel</strong>: Exposes internal services to the internet without requiring port forwarding, Dynamic DNS, or custom domain name configurations.</li></ul><p>For example, with <strong>Serve</strong>, services hosted on <strong>Node 1</strong> can be accessed using their hostnames. When <strong>Funnel</strong> is enabled, those services can also be accessed from the internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*DPKwyuJDr80Tmf6Cps_sDA.png" /></figure><h3>My Use Cases with Tailscale</h3><p>Since switching to an Apple Silicon MacBook, running certain virtual machines and tools has been challenging due to architecture limitations. With Tailscale, I can securely access my Windows workstation from anywhere when needed.</p><p>Additionally, I use Tailscale to access self-hosted services, including:</p><ul><li>A personal media server</li><li>Image backup solutions</li><li>SMB shares for backups and data storage</li></ul><p>With <strong>Subnet Routing</strong>, I can also administer embedded devices at home that don’t support Tailscale natively. This is particularly useful for managing network appliances like Ubiquiti devices without relying on vendor cloud accounts for remote access.</p><h3>Conclusion</h3><p>Tailscale has significantly streamlined my remote access needs, offering a simple yet powerful way to connect to my home network securely.</p><p>In future posts, I will dive deeper into configuring ACLs, setting up these features, and optimizing Tailscale for various use cases.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=897fbb743b5d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Home Lab — 6 — Active Directory Server]]></title>
            <link>https://medium.com/@blabber_ducky/home-lab-6-active-directory-server-7ab5e289c256?source=rss-5bf5e411509a------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ab5e289c256</guid>
            <category><![CDATA[homelab]]></category>
            <category><![CDATA[active-directory]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[soc]]></category>
            <category><![CDATA[windows]]></category>
            <dc:creator><![CDATA[Mithun Rosinth]]></dc:creator>
            <pubDate>Fri, 05 Jan 2024 16:02:16 GMT</pubDate>
            <atom:updated>2024-01-05T16:02:16.923Z</atom:updated>
            <content:encoded><![CDATA[<h3>Home Lab — 6 — Active Directory Server</h3><p>In this part of the Lab we will setup an active directory server, this will enable us to learn about Active Directory configurations and also test some of the vulnerabilities that arise from misconfigurations in an Active Directory environment.</p><p>This part of the series will involve provisioning an active directory server, creating a couple of users and their workstations and deploying some Group Policies for ease of access and testing purposes.</p><p>I have chosen <a href="https://www.microsoft.com/en-us/evalcenter/evaluate-windows-server-2019">Windows Server 2019</a> (the screenshots were taken from my another side project 😅)for the Server and <a href="https://www.microsoft.com/en-us/evalcenter/evaluate-windows-10-enterprise">Windows 10 Enterprise</a> for the client machines. All the ISOs are evaluation copies and have a license validity of 180 days. Now let go through the initial setup of the server, which includes OS install, adding server roles for Active Directory and then promoting the server to a Domain Controller.</p><h3>OS install</h3><p>This is very similar to standard Windows setup. Choose the “Standard Evaluation (Desktop Experience)”, this options gives us the Desktop Experience with standard in-built server tools. If you are using the Proxmox like me, then you will have to <a href="https://www.oreilly.com/library/view/mastering-proxmox/9781788397605/925d5eee-7d6e-47d3-b9af-5fbe252e30bd.xhtml">use</a> the VirtIO drivers to gain access to the Virtual Disk on which we will install the OS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UIqX9JTCzpLVxD3JxZ8yfQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aWNkvqVBX2kPS-fHDiCBdw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TLemrp8u1yb_DLdH5upMaw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-DKgiPHzj78ZlytORZ-Ofw.png" /></figure><h3>Server Roles</h3><p>Upon first boot, we will be greeted with the Server Manager Console. From here we will be adding Active Directory services on the server. This one is pretty straight forward. Click on Manage then Add Roles and Features . In the new menu select Active Directory Domain Services and then proceed with all the default options on the successive menus.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8F0ThcbMv2K9-atDod6AOw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jvJuyble_xr6y9rHCmlvCw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g0XlqIHSgqTSeSW0nrpsQw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Or5yqzcj9DxV63x_QS4_gQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*trnEuCChU4Cb44PcmC3y4g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_MHbRRJucUQvANeP4U5sJQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u4gpGQlkUgwSQJFCIyp_pQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iUERfoOaottF8mDtZQvWZw.png" /></figure><p>Once you reach the Results menu, wait for the installation to complete. Once completed, close this window. We will now proceed to promoting this server to a Domain Controller.</p><h3>Promoting to Domain Controller</h3><p>As we are focusing on a simplified setup, this single server will be our multi-function server. We need to promote it to be a Domain Controller , this will allow us to configure all the policies, users, services and computers from a single server. Once the Role Addition is completed, you will see a warning sign near the flag icon on top right corner of the Server Manager windows. Click on it, you will be presented with the option to promote the server to a domain controller, select it. In the next dialogue box select to Add a new forest , give a name for your domain in this window.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_D6Dx_mar4kEAZzDx1fdnw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*fnffICb7oKiJSCTRnJeeFQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gGdKfou8KRWl8ev1S4vpZA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T-k_qvTKOipCNNW7QBOzQg.png" /></figure><p>After that, you will have to set a password for Directory Services Restore Mode (Safe mode used for recovery and restore purposes). Note that this password can be same as the password for the administrator. But it is good practice to have a different one. The other menus can be just left at their defaults.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sBljknqZUjjT3i13FNqzAA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-rz5qStn1CctEQjwfRySng.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1tBBWerVTMc5vCq7aYYKMQ.png" /></figure><p>Once the setup has been completed, you will have a installation success message displayed. After we reach this stage, the server is ready with its full functionality for our lab.</p><h3>Creating Users</h3><p>For this lab, we will be creating a couple of users at the start, each with standard user permissions. This operation also can be performed from the Server Mananger. Under Tools menu select Active Directory Users and Computers. Then create two new users with names of your choice under the Users folder (OU). You will be required to supply an initial password, when we configure the user on a machine, we will be required to reset it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*NUsEcInvr__beslbI2G6pw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7COvXFaD6Pu_tBHbQ_a8VA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*A44ir6_XkKbSSNlosCBHOw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*wPAohW4H1kvq5FYes7rltg.png" /></figure><h3>Group Policies</h3><p>Group Policies can be considered rules or configurations that we define in the domain controller, which can be applied to any user/computer in the domain. This helps is managing a environment with many users and computers. The Active Directory helps us to group users, apply group or user specific rules. For this lab, we are creating the following configurations :</p><ol><li>Disabling Windows Defender and Windows Realtime Protection → As the aim of the current lab is detection and analysis, we want the environment to allow us to run all the offensive tools that we nee.</li><li>Enabling RDP (Environment Specific)→ Gaining access to all the machine (including the Domain Controller). This is just for ease of access, as the proxmox noVNC solution allow clipboard sharing. This particular configurations requires us to make changes to firewall configuration, local group policies on machines.</li></ol><p>To get started, we have to open the Group Policy Management tool from the start menu search (can also be opened from the tools menu in Server Manager).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qBz15_SIWr0xf_o8apTj9w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*oPm-N83Z-R-2JQGN-sg1lg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*80UiRWXTq5RPboLtS3qEGA.png" /></figure><p>Then we create a new GPO (Group Policy Object) and edit it. Refer to the screenshots below for the specific configurations.</p><p><strong>WINDOWS DEFENDER</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PbcfBad2q_oVOYZuqwWHew.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ejwnFZlKFMoVXPIarPWIAg.png" /></figure><p><strong>RDP ACCESS</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YSDlJorz8_SWvJ092jjRMw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X0FAyrQlyrdsqa5j_KqkPw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R0M0NavqkFuwhC6SoRRioA.png" /><figcaption>Adding users to a computer’s local RDP group</figcaption></figure><p>Once our server-side configurations are done, our next step would be configure a couple of client machines with users and then verify if the group policies get applied successfully.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ab5e289c256" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Home Lab — 5 — Suricata x Wazuh]]></title>
            <link>https://medium.com/@blabber_ducky/home-lab-5-suricata-x-wazuh-99676918cf03?source=rss-5bf5e411509a------2</link>
            <guid isPermaLink="false">https://medium.com/p/99676918cf03</guid>
            <category><![CDATA[soc]]></category>
            <category><![CDATA[siem]]></category>
            <category><![CDATA[homelab]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[wazuh]]></category>
            <dc:creator><![CDATA[Mithun Rosinth]]></dc:creator>
            <pubDate>Thu, 04 Jan 2024 23:45:56 GMT</pubDate>
            <atom:updated>2024-01-04T23:45:56.011Z</atom:updated>
            <content:encoded><![CDATA[<h3>Home Lab — 5 — Suricata x Wazuh</h3><p>The next step in the home lab setup would be to integrate our IDS with our SIEM solution. This step will be very similar to adding an agent for the wazuh server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FEvf8ExZ6b9xSFDj0jHWrg.png" /><figcaption>Wazuh add agent</figcaption></figure><p>The wazuh agent must be deployed on the suricata server. Select the options corresponding to your deployment of suricata. Copy the commands on the page and execute them on the suricata server.</p><p>In the wazuh agent configuration — /var/ossec/etc/ossec.conf. In the &lt;/ossec_config&gt; section, add the following</p><pre>&lt;localfile&gt;<br>    &lt;log_format&gt;syslog&lt;/log_format&gt;<br>    &lt;location&gt;/var/log/suricata/eve.json&lt;/location&gt;<br>&lt;/localfile&gt;</pre><p>At instances, it is also required for us to add the above configuration to the wazuh manager configuration from the dashboard. After making changes to the configuration, start the wazuh-agent service in the suricata server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FGwK0Tk0vlv0u7PJ72xFzg.png" /><figcaption>Wazuh-agent service running on Suricata server</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jmdcLLMTawaqCBHc0Zm1Ow.png" /><figcaption>Suricata as agent on Wazuh</figcaption></figure><p>To test our integration we can try pinging one of our VMs from another. This would fire the test rule that we wrote for testing custom rules in the previous step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rdsn91Cou4O4VLyGenxfGg.png" /><figcaption>Ping to test suricata rules</figcaption></figure><p>To view the logs on wazuh, set the filter to rule.groups is suricata under the agent/events section for the suricata server in the wazuh dashboard to view all the logs generated by suricata.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gLRDLPhGh9-RwlcF_HgeAg.png" /><figcaption>Filter on Wazuh</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ndNQ4JIZHdwWrDiSVhCzlA.png" /><figcaption>Suricata logs on Wazuh</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99676918cf03" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Home Lab — 4 — Suricata]]></title>
            <link>https://medium.com/@blabber_ducky/home-lab-4-suricata-0c60dac60b08?source=rss-5bf5e411509a------2</link>
            <guid isPermaLink="false">https://medium.com/p/0c60dac60b08</guid>
            <category><![CDATA[proxmox]]></category>
            <category><![CDATA[suricata]]></category>
            <category><![CDATA[homelab]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[security-operations]]></category>
            <dc:creator><![CDATA[Mithun Rosinth]]></dc:creator>
            <pubDate>Wed, 20 Dec 2023 13:35:17 GMT</pubDate>
            <atom:updated>2023-12-20T13:35:17.321Z</atom:updated>
            <content:encoded><![CDATA[<h3>Home Lab — 4 — Suricata</h3><p>Suricata is an open-source based intrusion detection system and intrusion prevention system. We can use it in our homelab as a IDS solution to monitor the whole network and act as feed source for our SIEM solution.</p><p>Suricata can operate in two modes :</p><ul><li>Passive Mode — Identify + Logs + Alerts</li><li>Active Mode — Block + Logs + Alerts</li></ul><p>It can be deployed in two ways depending on our requirements :</p><p>IPS Mode — Deployed between gateway and switch</p><p>IDS Mode — Deployed behind the switch and monitors the whole network</p><p>Follow the steps in the link below to install suricata on a ubuntu machine</p><p><a href="https://docs.suricata.io/en/latest/install.html#ubuntu-from-personal-package-archives-ppa">https://docs.suricata.io/en/latest/install.html#ubuntu-from-personal-package-archives-ppa</a></p><p>These are some important directories to remember</p><p><strong>Configuration :</strong></p><pre>/etc/suricata/suricata.yaml</pre><p><strong>Rules:</strong></p><pre>/etc/suricata/rules</pre><h3>Configuring Suricata</h3><p>Suricata can be configured to auto start using Systemd (any another init system) :</p><pre>sudo systemctl enable --now suricata.service</pre><p>Always update suricata before starting it for the first time :</p><p>sudo suricata-update</p><p>The following configurations are to be made in the configuration file located in the path mentioned before.</p><p>The <strong>home network</strong> is the network in which we want to monitor all the devices, in my case the home network would be the LAN network on the pfSense.</p><pre>HOME_NET: &quot;[10.10.1.0/24]&quot;</pre><p>The <strong>external network</strong> is the network that is our WAN, for this configuration we are making anything other than our home network to be seen as external network. So any IP that does not belong to the <a href="http://10.10.1.0/24">10.10.1.0/24</a> subnet will be considered external network.</p><pre>EXTERNAL_NET: &quot;!$HOME_NET&quot;</pre><p>To mark the interface on which we want to monitor the traffic, we configure the <em>af_packet</em> section of the configuration file.</p><pre>af_packet:<br>    - interface: eth0</pre><p>To enable pcap capture support on the monitor interface, add the interface name to the <em>pcap</em> section.</p><pre>pcap:<br>    - interface: eth0</pre><p>When working with multiple tools in an environment, it will be complex to keep track of an incident across logs from tools. To avoid this, we enable community-id to EVE records (Logs created in JSON format). This will add a common ID to an event which will be consistent across logs generated by all the tools.</p><pre>community-id: true</pre><p>To add new custom rules, add them to /var/lib/suricata/rules , then add the files to rule-file section of the suricata configuration. You can also keep the files in a custom folder and add the full path in the rule-file attribute.</p><p>The /var/lib/suricata/rules directory is created after the tool is run once.</p><p>Updating Suricata before running (updates the rules as well) sudo suricata-update</p><p>You can also set Suricata to pull rules from different sources. Here are a few tips to help with the initial setup</p><p><strong>To list sources :</strong></p><p>sudo suricata-update list-sources</p><p>If the license parameter is set to MIT/GPLv3/Non-Commercial, we can pull the rules and use them for free</p><p><strong>To enable a new source :</strong></p><p>sudo suricata-update enable-source &lt;source_name&gt;</p><p>then update using sudo suricata-update</p><p><strong>Test Suricata configuration :</strong></p><p>sudo suricata -T -c &lt;path to config file&gt;</p><h3>Logs and Rules</h3><p>The Suricata logs are located in : /var/log/suricata</p><p>stats.log - contains system resource usage info</p><p>eve.json - IDS/IPS logs in json format</p><p>fast.log - IDS/IPS logs from network interfaces</p><p>With this basic understanding and setup we can test the functionality of our setup. To do so, we can utilise the following command to trigger a fake command execution through web (the page we are requesting returns the output of id command in its body).</p><pre>curl &lt;http://testmynids.org/uid/index.html&gt;</pre><p>After executing the command, check the following file to verify that the configuration is working.</p><pre>sudo cat /var/log/suricata/fast.log</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QEjXqZXwoQC3b93HLRf7jg.png" /><figcaption>Logs appearing for the test request</figcaption></figure><p>To start writing custom rules for Suricata use the following link as a reference.</p><p><a href="https://docs.suricata.io/en/suricata-6.0.0/rules/intro.html">https://docs.suricata.io/en/suricata-6.0.0/rules/intro.html</a></p><p>Quick look into the format of a simple rule would be like the following</p><pre>action protocol src_ip/range src_port -&gt; dst_ip/range dst_port (msg: &quot;Message to be logged&quot;; sid: &lt;unique_id_for_rule&gt;; rev: &lt;version_no_for_rule&gt;;)</pre><p>For example, a rule to block all the home network devices from reaching out to external DNS servers would look some thing like this</p><pre>block any $HOME_NET any -&gt; $EXTERNAL_NET 53 (msg: &quot;Blocking DNS request&quot;; sid: 153; rev: 1;)</pre><p>To alert for all the icmp pings to the home network</p><pre>alert icmp any any -&gt; $HOME_NET any (msg: &quot;Blocking all the pings&quot;; sid: 123; rev: 1;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DOpWFddJigqIRoyh3-XDwQ.png" /><figcaption>Ping Attempt</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A0FFClIWP_i7BM1N0iO_lA.png" /><figcaption>Ping Alert</figcaption></figure><p>Always test after making changes in configuration or adding new rules. If you experience any issues in running suricata check the /var/log/suricata/suricata.log and follow the errors displayed on it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0c60dac60b08" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Home Lab — 3 — Wazuh SIEM solution setup]]></title>
            <link>https://medium.com/@blabber_ducky/home-lab-3-wazuh-siem-solution-setup-6bcc34e480fa?source=rss-5bf5e411509a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6bcc34e480fa</guid>
            <category><![CDATA[homelab]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[soc]]></category>
            <category><![CDATA[wazuh]]></category>
            <category><![CDATA[siem]]></category>
            <dc:creator><![CDATA[Mithun Rosinth]]></dc:creator>
            <pubDate>Thu, 26 Oct 2023 16:08:00 GMT</pubDate>
            <atom:updated>2023-10-26T16:08:00.111Z</atom:updated>
            <content:encoded><![CDATA[<h3>Home Lab — 3 — Wazuh SIEM solution setup</h3><p>This is going to be a quick one. Setting up a SIEM solution has become relatively simple to what it was before. Thanks to Open Source Projects like Wazuh, we can deploy a fully functional SIEM with XDR capabilities within a matter of minutes.</p><p>For my Home Lab, I chose WAZUH because I am pretty inexperienced when it comes to SIEM solutions. This choice lowers the barrier to entry, until I familiarise myself with the functions of a SIEM and completely understand its working and capabilities.</p><p>For the server setup, I first created a Ubuntu Server 22.04 VM with the following specifications</p><p><strong>RAM :</strong> 8GB</p><p><strong>Cores :</strong> 4</p><p><strong>Storage : </strong>80 GB</p><p>Then installing Wazuh takes executing the following command. Copy, paste, hit enter and wait for the installer to complete.</p><p>curl -sO https://packages.wazuh.com/4.5/wazuh-install.sh &amp;&amp; sudo bash ./wazuh-install.sh -a</p><p>Once the installation is done, you will be presented with the login username and password for login</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pTTzCdbB7DNVzVofbxwp9g.png" /><figcaption>Install output</figcaption></figure><p>Once this is done, we can navigate to the IP of the machine to reach the Wazuh server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zJHJNNfsAd6SQpXrqShB9Q.png" /><figcaption>wazuh dashboard</figcaption></figure><p>TIP :</p><p>Set host aliases for all the server components in the lab in your Analyst Machine (in my case it is a Ubuntu Desktop VM).</p><p>Aliases can be created in the /etc/hosts file on unix system and on windows the file is in C:\Windows\System32\drivers\etc (named as Hosts). In both cases you will need elevated privileges.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6bcc34e480fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Home Lab — 2 — pfSense]]></title>
            <link>https://medium.com/@blabber_ducky/home-lab-2-pfsense-9968d57fb223?source=rss-5bf5e411509a------2</link>
            <guid isPermaLink="false">https://medium.com/p/9968d57fb223</guid>
            <category><![CDATA[proxmox]]></category>
            <category><![CDATA[pfsense]]></category>
            <category><![CDATA[homelab]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[soc]]></category>
            <dc:creator><![CDATA[Mithun Rosinth]]></dc:creator>
            <pubDate>Tue, 17 Oct 2023 14:07:39 GMT</pubDate>
            <atom:updated>2023-10-17T14:07:39.550Z</atom:updated>
            <content:encoded><![CDATA[<h3>Home Lab — 2 — pfSense</h3><p>In this step I am going over the process of quickly setting up pfSense to setup a safe virtual network for all our Home Lab VMs. For this purpose we will utilise pfSense and will be adding a firewall rule to block access to our actual home network.</p><p>Before getting started, you will need another VM with GUI (any linux distribution with a desktop environment) deployed with vmbr1 as network device. This machine will help us access the dashboards (including the pfSense configuration panel) we deploy within the network.</p><p>Create a new VM with following configurations :</p><ul><li>2 GB RAM</li><li>2 CPU cores</li><li>32 GB Storage</li><li>Rest all defaults</li></ul><p>Add both vmbr1 and vmbr0 to the VM (These networks were created as part of our proxmox setup).</p><p>During the initial setup, assign the interface with vmbr0 as the WAN interface. The interface with vmbr1 becomes the LAN interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IRZIxGlHpC0jKlX7OnShtg.png" /><figcaption>Interface assignments on pfSense</figcaption></figure><p>For the LAN interface, do a static assignment of any desired private subnet that doesn’t collide with your own home network (the network address of your router).</p><p>Enable the DHCP service for this interface, so that all our VMs can lease IP addresses from pfSense. In the DHCP configuration, configure the DNS servers (in my case : <a href="http://8.8.8.8/">8.8.8.8</a>, <a href="http://1.1.1.1/">1.1.1.1</a>) and also the gateway for the network, this should be the IP address assigned to the LAN interface (in my case : 10.10.1.1).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LLzmRFTwZlvP9IYi92fAUw.png" /><figcaption>DHCP Range</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Poyn4bw66BDXIuRIsA8dJw.png" /><figcaption>Gateway for LAN (VM network)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2WbBFujzsqlytXoxC3EeQw.png" /><figcaption>DNS Servers</figcaption></figure><p>We also need to make sure that our VMs (LAN from the pfSense) are not able to access any of our home devices (Router, Proxmox Interface and any other services running in the home network). To achieve this we add a block rule to block all traffic from LAN net to the WAN net .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bdiYqGsNbu7ZgEnSwa3QAw.png" /><figcaption>Firewall rule to prevent WAN (Home Network) access.</figcaption></figure><p>This rule will also prevent us from accessing any of the VMs from our workstations on the home network. We will rely completely on the Proxmox noVNC connection for interacting with our VMs. As a workaround we can also enable specific traffic from our workstation to certain VMs (ex : SSH to Kali).</p><p>PS : We might also have to configure static routes in our home network to reach the VM network (I am not covering that here as I intend to use only the noVNC from proxmox).</p><p>In the next step we will setup a ubuntu server to act as our SIEM solution (using wazuh).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9968d57fb223" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>