Logo

dev-resources.site

for different kinds of informations.

Proxmox: Network Storage

Published at
9/16/2024
Categories
proxmox
nas
storage
Author
sebos
Categories
3 categories in total
proxmox
open
nas
open
storage
open
Author
5 person written this
sebos
open
Proxmox: Network Storage

When I imagine the future of my home lab, I envision it filled with professional-grade equipment—a sleek server rack, servers humming away, and network switches blinking behind a perforated door. However, like many enthusiasts, my current setup is a bit more modest, made up of a mix of end-of-life workstations and desktops.

But that's part of the fun, right? Taking bits and pieces of hardware and transforming them into something practical and useful. That’s the beauty of a home lab.

In this article series, I’ll walk you through how I built a Network Attached Storage (NAS) solution using a DAC (Direct Access Storage) and a Single Board Computer (SBC). While this may not be the most conventional approach, it was certainly a fun and rewarding experience!

The SBC NAS

At its core, a NAS (Network Attached Storage) is simply a device that shares storage across a network. For my setup, I had an Orange Pi 5 Pro that I’d been experimenting with, and since it features two network interfaces, it was a perfect candidate for the NAS device to connect to the DAC.

One network interface would serve Proxmox, acting as the NAS for my virtual environment, while the other would be dedicated to my personal media storage. I set up the Orange Pi with a headless Debian server and connected it to the DAC, using Samba to share the storage across the network.

And just like that, I had something that was almost a fully functional NAS!

To Bridge or Not to Bridge

The Orange Pi 5 Pro comes with two network interfaces, and when I first envisioned this project, I considered bridging them. However, bridging the two would essentially connect two subnets that are normally separated by a firewall, bypassing that isolation.

This led to an important question: did I really want to bridge these two networks on a Debian SBC? After weighing the pros and cons, I had to carefully consider whether merging these networks would compromise the structure and security of my home lab.

Security Concerns with the Bridge

Although my home lab isn’t a production-level environment, I try to approach it with the same security considerations. By bridging the networks, I realized a couple of important access concerns:

  • From a Proxmox and personal device perspective, bridging effectively gave both access to the NAS.
  • From a NAS perspective, it now had access not only to the Proxmox server and VMs running on it, but also to any personal devices I use to access media.

This raised a significant question: was I compromising security by bridging these networks?

In my next post, I’ll walk through the steps I took to secure access to the NAS and maintain proper isolation.

/etc/samba/smb.conf

[global]
    workgroup = sebos
    log file = /var/log/samba/smb.log
    max log size = 10000
    log level = 1
    server string = sebos nas %v
    security = user
    min protocol = SMB2

    # Include additional configuration files
[media]
    include = /etc/samba/smb.d/media.conf
[pve]
    include = /etc/samba/smb.d/pve.conf

Enter fullscreen mode Exit fullscreen mode

/etc/samba/smb.d/media.conf

    comment = home media server
    path = /srv/nas_storage/media
    browseable = yes
    writable = yes
    guest ok = no
    create mask = 0664
    directory mask = 0775
    force user = samba_media
    force group = samba_admin_media
    valid users = samba_media
Enter fullscreen mode Exit fullscreen mode

/etc/samba/smb.d/pve.conf

    comment = pve storage
    path = /srv/nas_storage/pve
    browseable = yes
    writable = yes
    guest ok = no
    create mask = 0664
    directory mask = 0775
    force user = samba_pve
    force group = samba_admin_pve
    valid users = samba_pve
Enter fullscreen mode Exit fullscreen mode
storage Article's
30 articles in total
Favicon
Mastering Kubernetes Storage: A Deep Dive into Persistent Volumes and Claims
Favicon
Clean up S3 with Batch Operations, Tags and Lifecycle policies, they said. It will be cheaper, they said.
Favicon
Efficiently Deleting Millions of Objects in Amazon S3 Using Lifecycle Policy
Favicon
Automated Storage and Retrieval System Market: Tackling Challenges, Expanding Globally
Favicon
Highly scalable image storage solution with AWS Serverless at ip.labs - Part 3 Building File API for Uploads and Downloads
Favicon
A step by step creation of Amazon S3 bucket
Favicon
Highly scalable image storage solution with AWS Serverless at ip.labs - Part 2 Architectural decisions
Favicon
Efficient Storage for Startups: Affordable Solutions for Small Inventories
Favicon
Maximizing ROI with Efficient Space Utilization in Warehouses
Favicon
Provide shared file storage for the company offices
Favicon
Boost Your AWS Backup in 5 Minutes: Automate EBS Snapshots with CloudWatch
Favicon
Disque dur : SAS, SATA, SCSI ou IDE ?
Favicon
Adding a CU to Your Arweave Gateway
Favicon
Choose the Best Storage Options for Your WordPress Media Files
Favicon
How to Configure a Network Block Device on a Debian-Based System
Favicon
Why Running Databases on Kubernetes is Like Storing Critical Data on a Fragile Flash Drive
Favicon
Proxmox: Network Storage
Favicon
Flutter : Your scoped storage permission declaration needs to be updated.
Favicon
Step-by-Step Guide: Hosting Static Webapps on Azure
Favicon
Ceph의 이해(2) - backfill, scrub
Favicon
Implement a fully managed shared file storage for Red Hat OpenShift Service on AWS (ROSA) with Amazon FSx for NetApp ONTAP
Favicon
iStore Storage Hervey Bay
Favicon
MICROSOFT APPLIED SKILL. Guided Project: Provide storage for the IT department testing and training
Favicon
Understanding Transcoding on NAS: A Comprehensive Guide
Favicon
Stepping into Storage: A Guide to Creating an S3 Bucket and Uploading Files on AWS
Favicon
Cloud Storage: Why It’s So Valuable
Favicon
Manage Amazon S3 Storage Cost with Lifecycle Rules
Favicon
The Importance of Reliable Storage Rack Factories
Favicon
Creating Blob Storage in Microsoft Azure: A Step-by-Step Guide
Favicon
Prototyping different storage scenarios for an IT department in Azure Portal.

Featured ones: