How to set up a VPN with WireGuard on Unraid

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ก.ค. 2024
  • Today, I will show you how to set up a virtual private network using WireGuard on Unraid. I will also show you how to configure a mobile device and a computer to connect to the WireGuard VPN. So, let’s get started.
    🔗 WRITTEN GUIDE ⬇️
    www.juanmtech.com/how-to-set-...
    🎬 OTHER VIDEOS TO WATCH ⬇️
    - How to set up Unraid - 2021 Guide
    • How to set up Unraid (...
    - Install the Community Apps on Unraid and install Best plugins
    • Install the Community ...
    - How to set up Home Assistant on Unraid
    • How to set up Home Ass...
    - Getting started with Home Assistant - 2021
    • Getting started with H...
    ◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️
    ⬇️ SUPPORT THE CHANNEL ⬇️
    - Buy Me a Coffee: www.buymeacoffee.com/JuanMTech
    - Patreon: / juanmtech
    - Amazon affiliate link: amzn.to/2nM3bvM
    ⬇️ FOLLOW ME ON ⬇️
    - Mastodon: fosstodon.org/@juanmtech
    - Twitter: / juanmtech
    - Facebook: / juanmtech
    - Instagram: / juanmtech
    ◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️
    MY GEAR 📷 🎙️🎧 💡
    - Camera: amzn.to/2nd3nIt
    - Lens: amzn.to/3G55CEn
    - Mic: amzn.to/3PEV5mA
    - Headphones: amzn.to/3G90z5X
    - Audio Interface: amzn.to/3WbhWst
    - Tripod: amzn.to/2oLeoh5
    - Lights: amzn.to/3WcEbOA
    DISCLAIMER: Some of the links on this video are affiliate links. Meaning at NO additional cost to you, I will earn a commission for qualifying purchases.
    ◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️
    TIMESTAMPS:
    0:00 - Intro
    0:18 What is a VPN?
    0:42 What is WireGuard
    1:12 Set up DuckDNS
    2:04 Set up a WireGuard Client
    3:03 Set up a WireGuard Peer
    3:57 Set up a WireGuard Peer on mobile
    4:26 Set up a WireGuard Peer on Windows/Mac
    SOUNDTRACK
    Song: Kozah - Cali4nia [NCS Release]
    Music provided by NoCopyrightSounds
    Free Download/Stream: NCS.io/Cali4nia
    Watch: • Kozah - Cali4nia [NCS ...
    #Unraid #WireGuard
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 149

  • @Evolze
    @Evolze ปีที่แล้ว +92

    Hey all, a few things to note about this in 2022, coming into 2023:
    1. Unraid now has the Wireguard - Dynamix plugin already built-in. No need to download it via the Community Applications plug-in.
    2. When downloading the DuckDNS Docker container, make sure you have 'Host' selected for "Network Type". I'm not sure why, but mine kept defaulting to 'br0'. This created quite a few issues.
    3. I'm not sure if my experience is the same as others, but right after you create your new Wireguard tunnel, make sure to turn the tunnel itself on! Juan's Wireguard tunnel automatically turned on after he created it, but for me (running Unraid 6.11.5), it had to be turned on manually. I spent about 10-15 minutes tinkering with it wondering why it was not working. It's because the tunnel wasn't activated. 😅
    I hope this helps someone out there in some way, shape, or form!

    • @stephenmestrada
      @stephenmestrada ปีที่แล้ว +2

      this comment saved me ty

    • @jamespowell8373
      @jamespowell8373 ปีที่แล้ว +2

      You are a gentleman/lady and a scholar!

    • @meccu19
      @meccu19 ปีที่แล้ว +1

      bro, i was scratching my head why is not working :D and just because tunnel was off

    • @hasagreenlaser4229
      @hasagreenlaser4229 ปีที่แล้ว

      pog.

    • @Gizfreek
      @Gizfreek ปีที่แล้ว +2

      I'd like to add that I've only got the tunnel to connect after I restarted my Unraid server and modem, maybe this could help someone save some time troubleshooting.

  • @FlakAttack0
    @FlakAttack0 2 ปีที่แล้ว +59

    5 minutes in and out? Now THAT is how you do a video guide. Thank you Juan!

  • @tylerhovanec7997
    @tylerhovanec7997 ปีที่แล้ว +17

    Unraid 6.10+ users: Dynamix Wireguard is now Settings -> VPN Manager

    • @ihearttesla2333
      @ihearttesla2333 ปีที่แล้ว +3

      the true mvp of the comments section Thanks

    • @totin734
      @totin734 2 หลายเดือนก่อน

      Lifesaver!

  • @zuri_ch
    @zuri_ch 2 ปีที่แล้ว +1

    I was seriously confused as to why my Unraid had issues with Wireguard, but this video brought the point across so extremely easily and with no padding, absolutely terrific!

  • @JoshOlsen89
    @JoshOlsen89 2 ปีที่แล้ว +5

    This was the best video I could find on the subject; very concise and easy to follow. Great work!

  • @labatomi
    @labatomi 2 ปีที่แล้ว +7

    Hey man, thanks a lot for the videos. Honestly, you have made me learning Unraid so much easier. Always down to the point and easy to understand!

  • @massivelyfence8111
    @massivelyfence8111 2 ปีที่แล้ว +1

    This video is perfect. No nonsense, clear and concise instructions, well presented. Worked perfectly. Instant subscribe.

  • @invento123
    @invento123 2 ปีที่แล้ว +1

    Excellent video, been using openvpn for a while but wanted to change over to wireguard and your tutorial was exactly what I needed. Thank you!

  • @Bases9
    @Bases9 3 ปีที่แล้ว +3

    great video, keep it up, the videos on Unraid are always interesting, I look forward to the next one 👏

  • @jojyjohn6117
    @jojyjohn6117 ปีที่แล้ว

    Smashed it in 5 minutes. Thanks for being direct to the point.

  • @StookDog
    @StookDog 3 ปีที่แล้ว +1

    Short, sweet, to the point. Subscribed.

  • @charliebucket
    @charliebucket 2 ปีที่แล้ว

    One of the best technical explainer videos I've ever seen. Thanks!

  • @rodrigojoven4715
    @rodrigojoven4715 2 ปีที่แล้ว +1

    Thank you Juan! Your videos have helped a lot with my Unraid server :)

  • @victor2410
    @victor2410 ปีที่แล้ว +2

    Wish i found your video 3 hours ago. I did this using portainer and docker compose which is fine. However, I had to stumble through figuring out public IP, realizing that can change, finding duck dns and figuring all that out with your video. Just doing this through unraid and following your video would have been much faster. My main docker-vm is on a more efficient machine though so happy i figured it out cause unraid machine is first to shut down on ups etc and has less critical infrastructure vs my proxmox machine.

  • @peekeesh
    @peekeesh ปีที่แล้ว

    straight to the point. learned something new in as little as 5 mins. thank you!

  • @jarsky
    @jarsky 3 ปีที่แล้ว +18

    Great tutorial, at 3:02 remember to change the slider up the top from OFF to Autostart, or like me you'll be wondering why your VPN isn't working after rebooting your UnRAID box :D

  • @onemonthwake
    @onemonthwake 2 ปีที่แล้ว

    Really nice video that is short and sweet! Two thumbs up sir!

  • @_DaKneeGrow
    @_DaKneeGrow 3 ปีที่แล้ว +4

    Thank you! This was very easy and setup was better than setting up OpenVPN.

  • @LetsRace1
    @LetsRace1 2 ปีที่แล้ว

    Thank you, Juan! This was a very quick an easy setup.

  • @klim4x
    @klim4x 2 ปีที่แล้ว

    Hey Juan, this video helped me a lot. Easy to follow, easy to understand. Thank you and keep it up :)

  • @jeffanderinkillmer8479
    @jeffanderinkillmer8479 ปีที่แล้ว

    Fantastic video Juan. Made set up so easy.

  • @ThomasKendall404
    @ThomasKendall404 3 ปีที่แล้ว +3

    staring into my soul, great video without the fluff.

  • @MrMulcahyjohn
    @MrMulcahyjohn 3 ปีที่แล้ว

    EXCELLENT VIDEO you go over everything so its easy to follow thanks again

  • @DavidJJJ
    @DavidJJJ 11 หลายเดือนก่อน

    Thanks, super helpful. I got it setup in a few minutes with your instructions.

  • @thepanduuh
    @thepanduuh 2 ปีที่แล้ว

    Your videos have created my Unraid server. Thank you!

  • @nathr9131
    @nathr9131 2 ปีที่แล้ว

    Thanks so much, clear and concise instructions for a first timer and i'm all set up and running.

  • @nigelholland24
    @nigelholland24 3 ปีที่แล้ว

    Another great video Juan thanks

  • @MrPhilipgood
    @MrPhilipgood 2 ปีที่แล้ว +1

    My goodness that was SOOOO much easier than setting up openVPN!!!

  • @patricwinger5199
    @patricwinger5199 2 ปีที่แล้ว

    Thank you and happy Holidays 🍻!

  • @ericdolley709
    @ericdolley709 2 ปีที่แล้ว

    Awesome tutorial dude. I was able to get set up within 15 minutes start to finish.

  • @4ndroidG
    @4ndroidG 2 ปีที่แล้ว

    Thanks a lot! Very good job on the tutorial. Straight to the point.

  • @qwaszx19872
    @qwaszx19872 2 ปีที่แล้ว

    Thank you! That was so much easier than OpenVPN and surprisingly so!

  • @InsatiableJimmy
    @InsatiableJimmy 3 ปีที่แล้ว

    Amazing video, subscribed :) keep up the good work!!

  • @ElectronSpark
    @ElectronSpark ปีที่แล้ว

    You sir, are a credit to your profession! Thank you, thank you, thank you! Set it up and it works great! Now my trip won't be so bad as I'll have full access to my server.

  • @jrathmer
    @jrathmer 2 ปีที่แล้ว

    Thanks, that helped A LOT! Very good!

  • @martinsvideos7556
    @martinsvideos7556 2 ปีที่แล้ว

    Very smooth and clear. The Vid and the Tut. Thanks.

  • @chipped
    @chipped 2 ปีที่แล้ว

    Thanks for the guide! Worked well for me

  • @robry84
    @robry84 ปีที่แล้ว

    nice job Juan! Thank you!

  • @anToha_UA
    @anToha_UA 2 ปีที่แล้ว

    Did exactly how you said, but only difference is that I have a static public IP. Works like a charm, many thanks!

  • @brandonhill9356
    @brandonhill9356 3 หลายเดือนก่อน

    thanks for the quality information!

  • @vladwilliam
    @vladwilliam 2 ปีที่แล้ว

    Muchas gracias Juan. Excelente tutorial.

  • @valterschmaltz
    @valterschmaltz 3 ปีที่แล้ว +1

    Wireguard is a game changer, I love it.

  • @TheDjAust
    @TheDjAust 3 ปีที่แล้ว

    You're the man!! Thank you sir!!

  • @TheRkelly16
    @TheRkelly16 2 ปีที่แล้ว

    Great vid man thanks.

  • @Pabula
    @Pabula 3 ปีที่แล้ว

    Thanks for the great tutorial =)

  • @AlexanderMetzger
    @AlexanderMetzger 2 ปีที่แล้ว

    Thanks a lot Friend! Realy like your Videos!

  • @alomar.
    @alomar. 2 ปีที่แล้ว

    Smooth Tutorial ...... Thank you! so much

  • @heleomopi
    @heleomopi 2 หลายเดือนก่อน

    thanks Juan !

  • @ozzman39
    @ozzman39 2 ปีที่แล้ว

    Thank you so MUCH JUAN!!!! I have been battleing setting my VPN back up for 3-4 days just switched from a Nighthawk to a USG Unifi device and the built in VPN on adroid 12 is broke I was useing Openvpn on the nighthawk though that is no longer a option . also with your video I had it setup in 5 mins I would hug you right now if I could !!!!

  • @fireflyveteran
    @fireflyveteran ปีที่แล้ว +1

    Thanks Juan very helpful, just to add since the video is from a year ago, WireGuard is now automatically installed in unraid, no need to install the package on the newer version of unraid, just go to settings>VPN manager

  • @aliengoa0
    @aliengoa0 ปีที่แล้ว

    Thank you very much for your video

  • @EnricoPoletti
    @EnricoPoletti 3 ปีที่แล้ว

    Great Video !!!

  • @jeff8008
    @jeff8008 2 ปีที่แล้ว

    Fantastic video.

  • @royperkins694
    @royperkins694 ปีที่แล้ว

    Great vid, struggled with wireguard and ended up using it on a Pi running HA, having trouble with conbee passthrough running HA in Unraid but that's a different long and harrowing story 🤣, anyway set up using this vid and bang in first time, many thanks.👍

  • @p0larz0mbies
    @p0larz0mbies 2 ปีที่แล้ว +1

    Thanks, was looking for a video like this because the openvpn-as docker was deprecated

  • @Plioremka
    @Plioremka 2 ปีที่แล้ว

    Thank you Juan. Will try this option. Openvpn As is not available anymore on unraid.So good alternative.

  • @Chiquiet
    @Chiquiet 2 ปีที่แล้ว

    Thanks for this, new to unraid and this was very helpfull. would love to see a tut about unraid security in general

  • @chriswiley3572
    @chriswiley3572 3 ปีที่แล้ว

    Great video

  • @paulcarroll5871
    @paulcarroll5871 ปีที่แล้ว

    Excellent, Guga Technology

  • @TokominoOG
    @TokominoOG 3 ปีที่แล้ว

    great video and easy explained without taking 10or more mins! Is it possible you do a video about paperless?

  • @Jack_T
    @Jack_T 2 ปีที่แล้ว

    thank you!

  • @tfwon6968
    @tfwon6968 ปีที่แล้ว

    非常感谢您的讲解,解决了我设置上的迷惑

  • @toothybj
    @toothybj 2 ปีที่แล้ว

    Great tutorial - thanks! Super concise.
    That said, i went through the steps and added my main (Win10) PC as a peer and then it lost network connection so I had to disable WinGuard on that PC to get it back. I probably need to follow it through again to see what went wrong.

    • @vincentking8267
      @vincentking8267 11 หลายเดือนก่อน

      did you get it sorted? I'm having no luck.

  • @howardcallender1764
    @howardcallender1764 3 ปีที่แล้ว +2

    How do you setup up Server to server or Site to Site to have access to the remote server shares for offsite backup? Thank you for sharing

  • @dartfrogdk
    @dartfrogdk 3 ปีที่แล้ว

    great video Juan, can you maybe explain why i cant connect to internet from my laptop only lan when using wireguard

  • @slerched
    @slerched ปีที่แล้ว

    Hey Juan! Thanks for this; worked a treat!
    My newb question is, should I be concerned about leaving the tunnel on AutoStart? Or should I disable it until I am getting ready to travel since the only time I need access is when I am not at home?
    Sorry for the stupid new user question!

  • @rickybeeSE
    @rickybeeSE 2 ปีที่แล้ว +2

    Great video and I can now connect to my unraid box from outside. However, all traffic stops there. I cannot get to the internet or any other device on the home network from the connected device. The Peer DNS server is set to my home router IP and I am using Remote Tunneled Access. Can you help me here?

  • @stester1983
    @stester1983 ปีที่แล้ว +1

    hey juan, great video but i keep getting a "peer update required", is there a way to troubleshoot this, as the tunnel fails to work.

  • @raul230285
    @raul230285 3 ปีที่แล้ว

    Amazing...

  • @lcadigitalmedia
    @lcadigitalmedia 2 ปีที่แล้ว +1

    very informative video.
    Very new to unraid and I'm loving it.
    So when connecting to the wireguard tunnel, which should I input on the URL, my local domain server name or the IP Address?
    Also, why do we need the duckdns for wireguard again?
    Just a noob

  • @kirill.isakov
    @kirill.isakov ปีที่แล้ว

    Thank you, great video! What is the reason for creating different peers for different devices? Can different devices use the same peer?

  • @KN-hn4zs
    @KN-hn4zs 2 ปีที่แล้ว +2

    hello, any idea how to get unraid wireguard working with adguard home if both are running on the same subnet? The DNS will not resolve if both IPs are on the same subnet for some reason (but will work if you use another subnet or external DNS server). Thanks for your videos btw - very helpful!

  • @christianko5907
    @christianko5907 3 ปีที่แล้ว +2

    Can you Show how to Route pihole through wireguard? And great Tutorial;-)

  • @warmapplepie8745
    @warmapplepie8745 3 หลายเดือนก่อน

    Thank you, so if my phone is in my local network and i have PIhole/Adguard set up, my phone has a adblocker that doesn´t drains my phones battery ? Sounds brilliant

  • @kittysreview9055
    @kittysreview9055 3 ปีที่แล้ว +2

    So much better than OpenVPN. Faster and actually stays connected all the time.

  • @Uleepera
    @Uleepera 2 ปีที่แล้ว

    Hey Juan, any suggestions for troubleshooting when the handshake keeps timing out?

  • @NathanielWyatt
    @NathanielWyatt ปีที่แล้ว

    Please make a video on how to set up a site-to-site connection!

  • @lduberger
    @lduberger 3 หลายเดือนก่อน

    Great tutorial! Now how can I have another container's traffic to go through that VPN tunnel?

  • @niche_creation
    @niche_creation ปีที่แล้ว

    I had followed this guide about a year ago and it worked. Not sure at what point it stopped, might have been during my network upgrades but it wouldn't connect. I have restarted this process and changed my Duck DNS and no connection. Port forwarding is correct. Any suggestions?

  • @HaHussle
    @HaHussle 2 ปีที่แล้ว

    subscribed

  • @itdraak7531
    @itdraak7531 2 ปีที่แล้ว

    good video, but I do have a question, do you know if it is possible to put 2FA on the vpn, and if so how?

  • @toolbelt7439
    @toolbelt7439 2 ปีที่แล้ว

    Juan, this was great! I am still unable to get a validation on any of my peers. I port forwarded 51820 but when I check online to see if that port is open, the website tells me its closed. I am wondering now if I should just get a different router w/ Pfsense or something similar to manage my connections. Dealing with AT&T 5268AC Pace PLc is a pain in the rear.

  • @miicar204
    @miicar204 ปีที่แล้ว

    love to see an unraid to unraid remote connection across wiregaurd with it now built into unraid

  • @ViszlaBoss
    @ViszlaBoss 9 หลายเดือนก่อน

    Can i add a docker app to the wireguard VPN? Would be good to be able to route some docker apps through the VPN.

  • @zera9579
    @zera9579 3 ปีที่แล้ว

    Great video man. Would it be the same process to create a vpn tunnel out? Cause I've not been able to get it working using Azire. Thanks.

  • @patm95
    @patm95 2 ปีที่แล้ว +2

    It seems to work on my laptop, however when I add to my iPhone, it connects, but I have no internet access.

  • @jasonflt
    @jasonflt 3 ปีที่แล้ว +3

    A lot more cleaner and quicker than openvpn

  • @snowmanDIY
    @snowmanDIY 2 ปีที่แล้ว

    How would you do remote server to local server between 2 unraid boxes?

  • @ambronhib5561
    @ambronhib5561 ปีที่แล้ว

    Can i use WireGuard to Log into my Home-LAN remotely? Like connect to my VPN via WireGuard and then browse to my unraid-server and change settings n stuff?

  • @timmyers3428
    @timmyers3428 ปีที่แล้ว

    What is the link I use on the client computer to access the NAS server?

  • @jeffma6811
    @jeffma6811 2 ปีที่แล้ว

    Dear sir, I am new for Unraid, i copy your every step in this video but I didn't figure out how to use my iPhone to
    connect to Unraid server or shared file. could you explain more for it?

  • @bobzeknob
    @bobzeknob 3 ปีที่แล้ว

    Hi, am I able to set up a VPN like this if I am behind a CGNAT? thanks

  • @Brian.M
    @Brian.M 2 ปีที่แล้ว

    Can I use this for torrenting too? Or do I need a separate service like Mullvad VPN for that? I'm trying to figure out how to use wireguard on a qbittorrent container.

  • @i1mran92
    @i1mran92 2 ปีที่แล้ว

    hi there, can you access the router when using this? it seems i'm able to access any ip address except the router.

  • @oakfig
    @oakfig 2 ปีที่แล้ว

    Would you recommend tailscale over this?

  • @Koen73733
    @Koen73733 2 ปีที่แล้ว

    i followed this guide and its working great, however since i configured argo tunnel on my server this doesn't work anymore

  • @CBbackberry
    @CBbackberry 2 หลายเดือนก่อน

    set up according to your instructions. In unraid I can ping the iphone. But there is no internet connection on iphone. cannot connect to any website. all browsers on iphone just hang and do not connect. how to fix ?

  • @weckler8992
    @weckler8992 ปีที่แล้ว

    Hello JuanMTech, Can I use cloudflare account instead of duckdns? and is it going to be the same setting? if not can help? Thanks...

  • @torrel8074
    @torrel8074 2 ปีที่แล้ว

    loads of tutorials like but but never any showing you how to map a drive share over the VPN. Can't seem to get that working unless the device is local at initial mapping.

  • @ajugland
    @ajugland ปีที่แล้ว

    How do I do Server to server VPN? I want to access the Unraid behind a double router on server side. On user side I only got on router and port forwarding works her. Is it possible to call home from server as a client and make a small nuc unraid vpn server at home in ordet to acces subnets at serverside? I want to access my nextcloud.