Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nirmalyax/home-nas

Engineered a secure on-premises NAS system using Raspberry Pi, Casa OS, and Tailscale. Integrated NextDNS for advanced DNS security and privacy. Achieved a robust network with encrypted communication, user authentication, and content filtering, providing a modern and protected solution for home or small office networks.
https://github.com/nirmalyax/home-nas

bash-script casaos cloud cloudinfrastructure docker linux nextdns tailscale ubuntu

Last synced: 12 days ago
JSON representation

Engineered a secure on-premises NAS system using Raspberry Pi, Casa OS, and Tailscale. Integrated NextDNS for advanced DNS security and privacy. Achieved a robust network with encrypted communication, user authentication, and content filtering, providing a modern and protected solution for home or small office networks.

Awesome Lists containing this project

README

        

# Raspberry Pi Home NAS System with Tailscale and Casa OS πŸ‘πŸ’Ύ

![image](https://github.com/nirmalyax/Home-NAS/assets/35608135/ea2723a8-28a0-4d38-bb73-0b604bc150df)

## Objective:

Build a robust Home NAS (Network Attached Storage) system using a Raspberry Pi, Tailscale, Next DNS for secure remote access, and Casa OS for a user-friendly interface.

## **Hardware Requirements:**

1. **Raspberry Pi:**
- Model 3B or later for optimal performance.
- Power supply.
- MicroSD card (32GB recommended).
2. **External Storage:**
- USB external hard drive or SSD for NAS storage.
3. **Network Connection:**
- Stable internet connection for remote access.

## Step 1: Raspberry Pi Setup πŸ“

### **1.1 Download and Install Raspberry Pi OS:**

- Visit the official Raspberry Pi website and download the Raspberry Pi OS.
- Use a tool like BalenaEtcher to write the OS image to a microSD card.

### **1.2 Boot Up Raspberry Pi:**

- Insert the microSD card into your Raspberry Pi.
- Connect the Raspberry Pi to a monitor, keyboard, mouse, and power supply.
- Power on the Raspberry Pi.

### **1.3 Enable SSH:**

- Open the Raspberry Pi Configuration tool using **`sudo raspi-config`**.
- Navigate to **`Interface Options`** and enable **`SSH`**.
- Save and exit.

### **1.4 Find Raspberry Pi's IP Address:**

- On the Raspberry Pi terminal, use the command **`hostname -I`** to find its IP address.

## Step 2: SSH RPI & Update and UpgradeπŸ”„

```bash
ssh pi@
sudo apt update && sudo apt upgrade

```

## Step 3: Install Tailscale 🐾

- Install Tailscale by running the folowing script

```
curl -fsSL https://tailscale.com/install.sh | sh

```

## Step 4: Network Configuration πŸ”—

- Turn on IPv4 forwarding

```
echo 'net.ipv4.ip_forward = 1' | sudo tee -a /etc/sysctl.conf

```

- Turn on IPv6 forwarding

```
echo 'net.ipv6.conf.all.forwarding = 1' | sudo tee -a /etc/sysctl.conf

```

- Re-execute the sysctl conf file

```
sudo sysctl -p /etc/sysctl.conf

```

- Login to Tailscale account

```bash
sudo tailscale up --advertise-exit-node

```

## Step 5: Tailscale Connection and NextDNS Integration 🌐

- Connect Tailscale with NextDNS for a secure gateway.

## Step 6: Install Casa OS 🏑

```bash
curl -fsSL | sudo bash

```

## Step 7: Access Casa OS Remotely 🌐

- Casa OS is exposed on port 81.
- Access it from anywhere using the Raspberry Pi's IP address: `http://:81`.

## Step 8: NAS Setup πŸ“

- Configure your NAS by connecting external drives or creating shared folders.

πŸš€ Congratulations! Your Raspberry Pi is now a powerful Home NAS system with secure remote access through Tailscale and a user-friendly interface with Casa OS. Only authorized devices can access, ensuring your data is safe and secure.

Stay tuned for more tech adventures and smart home innovations! 🏑✨ #RaspberryPi #HomeNAS #Tailscale #CasaOS #TechMagic βœ¨πŸ’»