Close Menu
IOupdate | IT News and SelfhostingIOupdate | IT News and Selfhosting
  • Home
  • News
  • Blog
  • Selfhosting
  • AI
  • Linux
  • Cyber Security
  • Gadgets
  • Gaming

Subscribe to Updates

Get the latest creative news from ioupdate about Tech trends, Gaming and Gadgets.

[contact-form-7 id="dd1f6aa" title="Newsletter"]
What's Hot

Google Requires Crypto App Licenses in 15 Regions as FBI Warns of $9.9M Scam Losses

August 15, 2025

A new way to test how well AI systems classify text | MIT News

August 15, 2025

Pebble’s smartwatch is back: Pebble Time 2 specs revealed

August 15, 2025
Facebook X (Twitter) Instagram
Facebook Mastodon Bluesky Reddit
IOupdate | IT News and SelfhostingIOupdate | IT News and Selfhosting
  • Home
  • News
  • Blog
  • Selfhosting
  • AI
  • Linux
  • Cyber Security
  • Gadgets
  • Gaming
IOupdate | IT News and SelfhostingIOupdate | IT News and Selfhosting
Home»Selfhosting»Access your Synology NAS and its services remotely using Wireguard Easy
Selfhosting

Access your Synology NAS and its services remotely using Wireguard Easy

AndyBy AndyMay 15, 2025No Comments4 Mins Read
Access your Synology NAS and its services remotely using Wireguard Easy


This article provides a comprehensive guide on how to set up WireGuard using Docker Container Manager for self-hosting on your NAS. It includes step-by-step instructions on folder setup, DDNS configuration, and client setup, ensuring that you can create a secure, remote access solution tailored to your needs.

What Are We Doing?

In this guide, we will explore using WireGuard (WG-Easy) as a self-hosted VPN solution on your NAS. If you’ve already followed some of my other VPN-related guides, feel free to skip through sections you’re familiar with. Let’s dive in!

Getting Started with Self-Hosting WireGuard

  • Folder Setup
  • DDNS Address Configuration
  • TUN Script Setup
  • WireGuard Kernel Module Installation
  • Container Setup
  • Client Configuration

Understanding Double NAT and CGNAT

Many ISPs are adopting Double NAT or Carrier-Grade NAT (CGNAT) due to the diminishing availability of IPv4 addresses. You can verify if you are behind Double NAT by comparing the WAN IP found on your router with the IP shown on a service like portchecker.co. If they differ, consult your ISP for a dedicated IPv4 address or consider using solutions like Tailscale or Cloudflare Tunnels for remote access.

Let’s Begin: Setting Up Your NAS

This guide focuses on utilizing the Projects (Docker Compose) feature in Container Manager, saving you setup time compared to manual configurations.

Step 1: Folder Setup

The first step is to create designated folders in File Station for the containers you’ll be using. This organization will enhance efficiency and access:

/docker/projects/wg-easy-compose
/docker/wg-easy

Step 2: Configuring DDNS and SSL

Create a Synology Account for the DDNS service. If you’ve previously registered, you can proceed to set up your DDNS address, which will allow external access to WireGuard without compromising your NAS login screen.

Complete the DDNS configuration as follows:

  • Service Provider: Synology
  • Hostname: Create a unique domain identifier for your NAS (e.g. myawesomenas.synology.me)
  • Email: Login to your Synology account
  • External Address (IPv4): Should auto-fill
  • Get a Cert from Let’s Encrypt: Check this box

Following the configuration, a warning may appear regarding the SSL certificate; accept this to continue.

Step 3: Setting Up the TUN Script

This script ensures that the TUN interface is operational after reboots, critical for your VPN connection. Utilize the Task Scheduler in Control Panel and create a User Defined Script as follows:

#!/bin/sh -e
insmod /lib/modules/tun.ko

Step 4: Installing the WireGuard Kernel Module

Since Synology DSM utilizes an older kernel, install the required WireGuard modules. Download the pre-compiled .spk file from BlackVoid.club and follow their installation guide to implement the kernel module.

Step 5: Deploying Container Manager

Access Container Manager, initiate a project named wg-easy, and link it to the directory created earlier. Insert this docker-compose configuration at line ‘1’:

services:
  wg-easy:
    image: ghcr.io/wg-easy/wg-easy
    container_name: wg-easy
    environment:
      - LANG=en
      - TZ=Europe/London
      - WG_HOST=#your DDNS address
      - WG_PORT=51820
      - WG_DEFAULT_DNS=9.9.9.9
      - UI_TRAFFIC_STATS=true
      - UI_CHART_TYPE=1
      - PASSWORD_HASH=#your bcrypt hash
    volumes:
      - /volume1/docker/wg-easy:/etc/wireguard
    ports:
      - 51820:51820/udp
      - 51821:51821/tcp
    cap_add:
      - NET_ADMIN
      - SYS_MODULE
    sysctls:
      - net.ipv4.conf.all.src_valid_mark=1
      - net.ipv4.ip_forward=1
    restart: unless-stopped

Step 6: Configuring Environment Variables

Adjust environment variables for optimal configuration. Essential settings include:

  • WG_HOST: Alter to match your previously set DDNS address.
  • PASSWORD_HASH: It’s advisable to secure your UI with a password—generate a bcrypt hash for this purpose.

Step 7: Client Setup

Navigate to your NAS IP:51821 to access the web UI and create new clients effortlessly. This setup allows each device to connect securely. Utilize the WireGuard app to streamline the process for mobile devices by scanning the generated QR code.

Conclusion

Setting up WireGuard for self-hosting offers a secure and efficient method to connect remotely to your NAS. This guide provides all the necessary steps and tips for a smooth process. If you run into challenges, don’t hesitate to join the growing community focused on self-hosting solutions.

FAQ

  • What is self-hosting? Self-hosting allows individuals to manage their own server or services instead of relying on third-party service providers.
  • Is WireGuard secure? Yes, WireGuard uses state-of-the-art cryptography and is known for its speed and security features.
  • How can I access my NAS remotely? Utilize a dynamic DNS service and set up a VPN like WireGuard to secure your remote access.

Last updated on 1 January 2025

Important or Recent Updates
UpdateDate
New guide released06/06/2024
Swapped the WireGuard container for WG-Easy due to better UI30/08/2024
Amendments made to bcrypt password settings.04/11/2024
Historic updates.



Read the original article

0 Like this
Access Easy NAS remotely Services Synology Wireguard
Share. Facebook LinkedIn Email Bluesky Reddit WhatsApp Threads Copy Link Twitter
Previous ArticleMalicious NPM package uses Unicode steganography to evade detection
Next Article Are phones making teens more conflict-averse?

Related Posts

Selfhosting

Fischertechnik Maker Kits – Innovativer Baukasten for the DIY- and Maker-Szene

August 15, 2025
Selfhosting

Testing Proxmox 9 Snapshots as Volume Chains on iSCSI (Tech Preview)

August 13, 2025
Selfhosting

Z-Wave reborn – Home Assistant Connect ZWA-2

August 13, 2025
Add A Comment
Leave A Reply Cancel Reply

Top Posts

AI Developers Look Beyond Chain-of-Thought Prompting

May 9, 202515 Views

6 Reasons Not to Use US Internet Services Under Trump Anymore – An EU Perspective

April 21, 202512 Views

Andy’s Tech

April 19, 20259 Views
Stay In Touch
  • Facebook
  • Mastodon
  • Bluesky
  • Reddit

Subscribe to Updates

Get the latest creative news from ioupdate about Tech trends, Gaming and Gadgets.

About Us

Welcome to IOupdate — your trusted source for the latest in IT news and self-hosting insights. At IOupdate, we are a dedicated team of technology enthusiasts committed to delivering timely and relevant information in the ever-evolving world of information technology. Our passion lies in exploring the realms of self-hosting, open-source solutions, and the broader IT landscape.

Most Popular

AI Developers Look Beyond Chain-of-Thought Prompting

May 9, 202515 Views

6 Reasons Not to Use US Internet Services Under Trump Anymore – An EU Perspective

April 21, 202512 Views

Subscribe to Updates

Facebook Mastodon Bluesky Reddit
  • About Us
  • Contact Us
  • Disclaimer
  • Privacy Policy
  • Terms and Conditions
© 2025 ioupdate. All Right Reserved.

Type above and press Enter to search. Press Esc to cancel.