Jump to content

How to access my NAS online via the Wireguard plugin?

Go to solution Solved by Jarsky,

Hello! I have made a small OMV NAS with a RPi and everything is working well locally, but I want to be able to access it remotely when travelling. I am very new to RPi and OMV so I did a lot of research to determine Wireguard would be perfect for that. I found a number of guides how to do that on YouTube, but every single one is outdated and most use PiVPN which is now discontinued and I don't think necessary when we have Wireguard as a plugin.

 

Would someone please guide me through the steps to correctly setup the Wireguard 6.3.7 plugin so I can access my Raspberry Pi OpenMediaVault 6 NAS from the Internet?

 

Thank you and I really appreciate your help!

Link to comment
Share on other sites

Link to post
Share on other sites

Spoiler

Desktop: Ryzen9 5950X | ASUS ROG Crosshair VIII Hero (Wifi) | EVGA RTX 3080Ti FTW3 | 32GB (2x16GB) Corsair Dominator Platinum RGB Pro 3600Mhz | EKWB EK-AIO 360D-RGB | EKWB EK-Vardar RGB Fans | 1TB Samsung 980 Pro, 4TB Samsung 980 Pro | Corsair 5000D Airflow | Corsair HX850 Platinum PSU | Asus ROG 42" OLED PG42UQ + LG 32" 32GK850G Monitor | Roccat Vulcan TKL Pro Keyboard | Logitech G Pro X Superlight  | MicroLab Solo 7C Speakers | Audio-Technica ATH-M50xBT2 LE Headphones | TC-Helicon GoXLR | Audio-Technica AT2035 | LTT Desk Mat | XBOX-X Controller | Windows 11 Pro

 

Spoiler

Server: Fractal Design Define R6 | Ryzen 3950x | ASRock X570 Taichi | EVGA GTX1070 FTW | 64GB (4x16GB) Corsair Vengeance LPX 3000Mhz | Corsair RM850v2 PSU | Fractal S36 Triple AIO | 12 x 8TB HGST Ultrastar He10 (WD Whitelabel) | 500GB Aorus Gen4 NVMe | 2 x 2TB Samsung 970 Evo Plus NVMe | LSI 9211-8i HBA

 

Link to comment
Share on other sites

Link to post
Share on other sites

4 hours ago, xYorYx said:

PiVPN which is now discontinued

Why do you think that? PiVPN is just a simple and easy way to instal either openvpn or wireguard... I have used it many times.

 

Once you instal wireguard, you need to open a port to allow the connection through your router/firewall, then once you are VPNed in, its as if you are at your home on your wifi. You access your NAS exactly as you would when you are home. 

Rig: i7 13700k - - Asus Z790-P Wifi - - RTX 4080 - - 4x16GB 6000MHz - - Samsung 990 Pro 2TB NVMe Boot + Main Programs - - Assorted SATA SSD's for Photo Work - - Corsair RM850x - - Sound BlasterX EA-5 - - Corsair XC8 JTC Edition - - Corsair GPU Full Cover GPU Block - - XT45 X-Flow 420 + UT60 280 rads - - EK XRES RGB PWM - - Fractal Define S2 - - Acer Predator X34 -- Logitech G502 - - Logitech G710+ - - Logitech Z5500 - - LTT Deskpad

 

Headphones/amp/dac: Schiit Lyr 3 - - Fostex TR-X00 - - Sennheiser HD 6xx

 

Homelab/ Media Server: Proxmox VE host - - 512 NVMe Samsung 980 RAID Z1 for VM's/Proxmox boot - - Xeon e5 2660 V4- - Supermicro X10SRF-i - - 128 GB ECC 2133 - - 10x4 TB WD Red RAID Z2 - - Corsair 750D - - Corsair RM650i - - Dell H310 6Gbps SAS HBA - - Intel RES2SC240 SAS Expander - - TreuNAS + many other VM’s

 

iPhone 14 Pro - 2018 MacBook Air

Link to comment
Share on other sites

Link to post
Share on other sites

8 hours ago, LIGISTX said:

Why do you think that? PiVPN is just a simple and easy way to instal either openvpn or wireguard... I have used it many times.

 

Once you instal wireguard, you need to open a port to allow the connection through your router/firewall, then once you are VPNed in, its as if you are at your home on your wifi. You access your NAS exactly as you would when you are home. 

Because it was announced by the developer https://github.com/pivpn/pivpn/discussions/1829

 

I done some good progress by following @Jarsky's guide, but after I connect to the VPN and enter the Pi's IP address on my phone it doesn't load (ERR_NETWORK_CHANGED I think was the error it gives) so still trying to figure out what I did wrong.

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, xYorYx said:

Because it was announced by the developer https://github.com/pivpn/pivpn/discussions/1829

 

I done some good progress by following @Jarsky's guide, but after I connect to the VPN and enter the Pi's IP address on my phone it doesn't load (ERR_NETWORK_CHANGED I think was the error it gives) so still trying to figure out what I did wrong.

You set up a dynamic DNS (their example shows duckDNS)? Opened the port in your router? 

Rig: i7 13700k - - Asus Z790-P Wifi - - RTX 4080 - - 4x16GB 6000MHz - - Samsung 990 Pro 2TB NVMe Boot + Main Programs - - Assorted SATA SSD's for Photo Work - - Corsair RM850x - - Sound BlasterX EA-5 - - Corsair XC8 JTC Edition - - Corsair GPU Full Cover GPU Block - - XT45 X-Flow 420 + UT60 280 rads - - EK XRES RGB PWM - - Fractal Define S2 - - Acer Predator X34 -- Logitech G502 - - Logitech G710+ - - Logitech Z5500 - - LTT Deskpad

 

Headphones/amp/dac: Schiit Lyr 3 - - Fostex TR-X00 - - Sennheiser HD 6xx

 

Homelab/ Media Server: Proxmox VE host - - 512 NVMe Samsung 980 RAID Z1 for VM's/Proxmox boot - - Xeon e5 2660 V4- - Supermicro X10SRF-i - - 128 GB ECC 2133 - - 10x4 TB WD Red RAID Z2 - - Corsair 750D - - Corsair RM650i - - Dell H310 6Gbps SAS HBA - - Intel RES2SC240 SAS Expander - - TreuNAS + many other VM’s

 

iPhone 14 Pro - 2018 MacBook Air

Link to comment
Share on other sites

Link to post
Share on other sites

19 minutes ago, LIGISTX said:

You set up a dynamic DNS (their example shows duckDNS)? Opened the port in your router? 

Found that the port was my problem. The default 51820 did not work, but 51821 did so now I have connection and can access the OMV Dashbroard from my cellular network. Now trying to figure out how to see my files on the phone via the Material Files app (suggestions for a better app are always welcome, I have only downloaded it for this).

Link to comment
Share on other sites

Link to post
Share on other sites

38 minutes ago, xYorYx said:

Found that the port was my problem. The default 51820 did not work, but 51821 did so now I have connection and can access the OMV Dashbroard from my cellular network. Now trying to figure out how to see my files on the phone via the Material Files app (suggestions for a better app are always welcome, I have only downloaded it for this).

I have no idea how to file brows on a phone in a way that doesn’t suck… I never need to tho. I'd always use my laptop if I need to access SMB shares. I do have nextcloud running so I can access stuff via that is needed, but I rarely do. 

Rig: i7 13700k - - Asus Z790-P Wifi - - RTX 4080 - - 4x16GB 6000MHz - - Samsung 990 Pro 2TB NVMe Boot + Main Programs - - Assorted SATA SSD's for Photo Work - - Corsair RM850x - - Sound BlasterX EA-5 - - Corsair XC8 JTC Edition - - Corsair GPU Full Cover GPU Block - - XT45 X-Flow 420 + UT60 280 rads - - EK XRES RGB PWM - - Fractal Define S2 - - Acer Predator X34 -- Logitech G502 - - Logitech G710+ - - Logitech Z5500 - - LTT Deskpad

 

Headphones/amp/dac: Schiit Lyr 3 - - Fostex TR-X00 - - Sennheiser HD 6xx

 

Homelab/ Media Server: Proxmox VE host - - 512 NVMe Samsung 980 RAID Z1 for VM's/Proxmox boot - - Xeon e5 2660 V4- - Supermicro X10SRF-i - - 128 GB ECC 2133 - - 10x4 TB WD Red RAID Z2 - - Corsair 750D - - Corsair RM650i - - Dell H310 6Gbps SAS HBA - - Intel RES2SC240 SAS Expander - - TreuNAS + many other VM’s

 

iPhone 14 Pro - 2018 MacBook Air

Link to comment
Share on other sites

Link to post
Share on other sites

6 hours ago, xYorYx said:

Now trying to figure out how to see my files on the phone via the Material Files app (suggestions for a better app are always welcome, I have only downloaded it for this).

 

This adds another layer of complexity / thing to learn, but personally I use HFS (HTTP File Server).

Link to comment
Share on other sites

Link to post
Share on other sites

On 4/25/2024 at 4:07 AM, xYorYx said:

Found that the port was my problem. The default 51820 did not work, but 51821 did so now I have connection and can access the OMV Dashbroard from my cellular network. Now trying to figure out how to see my files on the phone via the Material Files app (suggestions for a better app are always welcome, I have only downloaded it for this).

 

Im a big fan of Cx File Explorer for remote shares and other protocols (SMB / FTP / WebDav / DropBox / Google Drive / etc...)

Spoiler

Desktop: Ryzen9 5950X | ASUS ROG Crosshair VIII Hero (Wifi) | EVGA RTX 3080Ti FTW3 | 32GB (2x16GB) Corsair Dominator Platinum RGB Pro 3600Mhz | EKWB EK-AIO 360D-RGB | EKWB EK-Vardar RGB Fans | 1TB Samsung 980 Pro, 4TB Samsung 980 Pro | Corsair 5000D Airflow | Corsair HX850 Platinum PSU | Asus ROG 42" OLED PG42UQ + LG 32" 32GK850G Monitor | Roccat Vulcan TKL Pro Keyboard | Logitech G Pro X Superlight  | MicroLab Solo 7C Speakers | Audio-Technica ATH-M50xBT2 LE Headphones | TC-Helicon GoXLR | Audio-Technica AT2035 | LTT Desk Mat | XBOX-X Controller | Windows 11 Pro

 

Spoiler

Server: Fractal Design Define R6 | Ryzen 3950x | ASRock X570 Taichi | EVGA GTX1070 FTW | 64GB (4x16GB) Corsair Vengeance LPX 3000Mhz | Corsair RM850v2 PSU | Fractal S36 Triple AIO | 12 x 8TB HGST Ultrastar He10 (WD Whitelabel) | 500GB Aorus Gen4 NVMe | 2 x 2TB Samsung 970 Evo Plus NVMe | LSI 9211-8i HBA

 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×