Your Own FREE VPN with Raspberry PI, Wireguard, Docker Compose and DuckDNS using Port Forwarding.

Поділитися
Вставка
  • Опубліковано 20 січ 2025

КОМЕНТАРІ • 63

  • @6H111G9
    @6H111G9 Рік тому +6

    It seems like you just installed duck DNS in a directory named "wireguard" then you deleted that directory, then created it again to install the wireguard docker-compose.yml? Am I missing something?

    • @codefallacy
      @codefallacy  Рік тому +6

      i re-recorded this a video a few times and got brain fart. the duckdns container should have gone in its own "duckdns" directory at home. the last take i ended up putting everything in a wireguard directory. i caught my mistake too late and to keep the video short i edited it out. no harm in putting everything in the wireguard directory. but that is why i removed it

  • @feche8a
    @feche8a 11 місяців тому

    I've seen a couple of your videos, it is really good to understand when you do a visual presentation of how things work, keep it up

  • @Hydro-MK
    @Hydro-MK День тому

    Thank you, after struggling to get Wireguard working for the 5th time in 3 years :) I figured that the port on my router was incorrect (new ISP and router) !

  • @BetterThanTV888
    @BetterThanTV888 8 місяців тому

    your videos are solid and at the right level for beginners and those with some basic knowledge. kudos to your channel growth. 🎉

  • @Soulstar1983
    @Soulstar1983 6 місяців тому

    Thanks a lot, just bought a Raspberry Pi 5 and you helped me a lot setting everything up the right way! Thumbs up (y).

  • @sims234ify
    @sims234ify Рік тому

    And another great video! Just subscribed :)

  • @sunilp1969
    @sunilp1969 Місяць тому

    Could not proceed further. I did google and everything but no luck. I am always getting this error. "ERROR: The Compose file './docker-compose.yml' is invalid because:
    Unsupported config option for services: 'duckdns'. Can anyone help me, what is this issue ?

    • @codefallacy
      @codefallacy  Місяць тому

      Its hard to tell without looking at the configuration. You should double check the docker compose file with the docker compose file linked in the description for duckdns. .yml files are a pain because indentimg has to be perfect or it will be invalid too

  • @okaudi
    @okaudi 11 місяців тому +1

    Sir, have you even encountered the issue like: "WARNING: The requested image's platform (linux/arm64) does not match the detected host platform (linux/arm/v8) and no specific platform was requested", My Raspberry Pi 4 is "aarch64" but when I pulled the image, it says "pi4# docker pull linuxserver/duckdns
    Using default tag: latest
    latest: Pulling from linuxserver/duckdns
    no matching manifest for linux/arm/v8 in the manifest list entries"
    When I pull with option --platform=linux/arm64, this images is downloaded, but can not run. because the warning above.
    I am really curious that we have the same device(Raspberry Pi 4), but in your video I have not seen any slice of these issues.

    • @codefallacy
      @codefallacy  11 місяців тому

      sorry for the late reply, that is weird🤔🤔🤔, is the operating system installed on the Pi 64 bits? i know the Pi 4 has a 64 bit processor but there is a 32bit version of Raspberry pi os that will run fine on it, vould you check?

  • @abdullaalahmed7451
    @abdullaalahmed7451 5 місяців тому

    hi. i did everything in this video but sadly i get this error after command "docker-compose up -d"
    ERROR:
    -bash: docker-compose: command not found
    any idea?

    • @codefallacy
      @codefallacy  5 місяців тому

      This error message states that your system doesnt have docker-compose installed. You will need to install docker and docker-compose on your system to follow along. I did a video on installing

  • @lime90
    @lime90 11 днів тому

    Stupid question. Now that I have all of this setup how would I access my mysql docker container from a remote network? I've been using BeaverDB but can't seem to access mysql outside of my network

    • @codefallacy
      @codefallacy  10 днів тому

      Interesting and odd, so just to clarify, if you are outside of your home and you are trying to ssh into any machine in your local network, does it work? But if you try accessing a SQl database container with a sql client like dbeaver it fails?

    • @lime90
      @lime90 10 днів тому

      @@codefallacy First of all, thank you so much for replying! Great videos! Currently I'm unsure, just got home but when I did try to access my pi from my laptop in school I was able to. However when I tried to put up the connection on DBeaver it didn't seem to work. However, I might be the issue to be fair. MySQL is in a docker container on the pi with all other running containers, might be relevant

    • @codefallacy
      @codefallacy  9 днів тому

      @@lime90 ok, ill have to look into this, i switched to using wg-easy which manages alot of things and this isnt happening. Ill have to run a container like i did in this video and report back

    • @lime90
      @lime90 9 днів тому

      @@codefallacy You really don't have to, haha. I think I am the issue since I'm very new to this. Thank you

    • @lime90
      @lime90 3 дні тому

      @@codefallacy I did get it to work! Thank you so much, your videos are so helpful!

  • @fronix3700
    @fronix3700 6 місяців тому

    Hi, I did everything in this video and I have one problem. When I use wireguard vpn I have no internet connection. Even when I set port forwarding or set dynamic dns on duckdns, I have a message that it is connected, but that didn't fix it, I don't know what I can do. Any tutorial can't solve this problem. I have a tp link Archer C80 router

    • @codefallacy
      @codefallacy  6 місяців тому

      Hey, im not too sure what the issue could be. Lets try a few debug steps. When connected to wireguard even though you dont have internet can you connect to local networks? For example, while connected to wireguard, are you able to access your routers login screen? Also double check to see if your router has a firewall enabled, if it does check that it isnt blocking wireguard

  • @francescoprisco8198
    @francescoprisco8198 10 місяців тому

    I followed this tutorial perfectly, no errors. But when I connect to the iPhone's mobile network it lets me access the local network, while if I connect to WiFi nothing works.

    • @codefallacy
      @codefallacy  10 місяців тому

      this is weird. you should try to set pihole as the dns in the LAN i stead of WAN and see if that helps. let me know to further debug

  • @Armetron
    @Armetron 9 місяців тому

    so, something I wanted to ask for clarification, when you did the speed test how much of an impact does the pi's hardware affect the speed?
    What's the speed difference between being connected locally vs using the vpn while still in the same location?

    • @codefallacy
      @codefallacy  9 місяців тому

      hey, it all depends on the network UPLOAD speed of the pi hosting the vpn. for the most part, if the connection is under 1gbps the pi hardware isnt the limiting factor but rather your upload speeds. i did a test while writing this comment on 4g network. without VPN i got 50mbps download a 10gbps download. once i activated the VPN i got 44mbps download and 9 upload. this is because my home network upload speed is now around 300mbps. i used to have gigabit speeds but im broke so i had to downgrade😂😂😂

    • @codefallacy
      @codefallacy  9 місяців тому

      following up on this, if i connect to my work network which is 500mbps i wouldnt be able to reach those speeds because my home network will only go up to 300mbps

  • @jord9261
    @jord9261 8 місяців тому

    which ip did you put in the port forwarding? the pi's / pi hole's / or something completely different? I'm lost as to why my wireguard connects but my ip doesn't change so I'm clutching at straws here :/

    • @codefallacy
      @codefallacy  8 місяців тому +2

      the local ip address of the raspberry pi

    • @jord9261
      @jord9261 8 місяців тому

      @@codefallacy thanks!

  • @charinasimeon9856
    @charinasimeon9856 Рік тому +1

    Great video 🎉

  • @saravanandme83
    @saravanandme83 10 місяців тому

    Bro How can I extract it as a file instead of a QR code. For example to use in laptop, Gi inet routers.

    • @codefallacy
      @codefallacy  10 місяців тому +1

      the QR code is just one option. you can copy over the peer.conf file instead which has the interface information to import it into a pc or router.

  • @tsakeo
    @tsakeo 8 місяців тому

    Great videos ! I got "context deadline exceeded" error while pulling duckdns, any idea how to proceed ?

    • @codefallacy
      @codefallacy  8 місяців тому

      hey, sorry for the delay. nhis appears to be docker specific. but it could be many things. to help diagnose, how long does it take when you run the docker compose up command? what device are you using to set this up? how fast is your internet speed?

  • @EA-dz5yb
    @EA-dz5yb 8 місяців тому

    Informative and to the point. thank you.

  • @richardcrbb
    @richardcrbb 6 місяців тому

    Thank youuuuuuuu I was setting this on portainer and couldn´t access to internet due to my port protocol was set TCP rather than UDP, thanks!!!!

  • @achan7396
    @achan7396 Рік тому

    Very clear steps. Great instructor. I'm currently using tailscale and sometimes can't connect to my other local rpi. Is wireguard better in your opinion?

    • @codefallacy
      @codefallacy  Рік тому

      yes! i belive wireguard is better than tailscale. you arent using anyone else's server, just your own. if you dont want to do wireguard you could try cloudflare tunnels instead, it is similar to tailscale qnd doesnt require port forwarding but more secure

  • @oliverfragoso8515
    @oliverfragoso8515 3 місяці тому

    Hi! Very dumb question sorry but before all of these steps did you have to install Docker on the raspberry pi?

    • @codefallacy
      @codefallacy  3 місяці тому

      Yes, this will rquire docker to be installed, but there are install guides without docker. I just used docker to make it simple

  • @igncodmyt6412
    @igncodmyt6412 9 місяців тому

    Port forwarding on my router is really complex I’m enable to access internet over the vpn, I’ve successfully setup the entire WireGuard vpn without any errors the only thing left is port forwarding so if u can help me with that I’ll be really happy and go ahead do my projects, thank you

    • @codefallacy
      @codefallacy  9 місяців тому

      what router do you have and what os the internet company you have? give me as mamy details as possible to help determine what the issue is

  • @ydiadi_
    @ydiadi_ Рік тому

    superb video brother

  • @Sartre_Existentialist
    @Sartre_Existentialist 11 місяців тому

    What if you have a static IP?

    • @codefallacy
      @codefallacy  11 місяців тому +1

      if you have a static ip, you dont need to make the duckdns container. i would still do it jist in case, unless you are paying for a business connection, your ip may change after a few months

  • @ReidMewborne
    @ReidMewborne 4 місяці тому

    Why not use `~/` instead of `/home/user_name`? because I don't know :shrug:

    • @codefallacy
      @codefallacy  4 місяці тому

      You can do whichever. These videos are tailored towards beginners. Absolute paths make it very clear where things are happening 🤷

  • @matthewdigimon
    @matthewdigimon 9 місяців тому

    great video, so happy to be using docker on my raspberry pi, one problem when I set this up I can connect to the VPN on my phone and I can access stuff on my LAN but I can't access the internet, any idea what could be happening? edit: after doing some more testing it doesn't seem to be able to make DNS requests

    • @codefallacy
      @codefallacy  9 місяців тому

      is your router properly port forwarding. if so check that the traffic type is UDP not not TCP. let me know if these help

  • @rosmerygeronimo5972
    @rosmerygeronimo5972 Рік тому +2

    Keep it up!

  • @987we3
    @987we3 Рік тому +1

    I think that tou don't have to make DuckDNS instead you just set this option to "auto" and wireguard will be checking public ip himself

    • @codefallacy
      @codefallacy  Рік тому

      Awesome, i didnt know thisn thank you for the feedback!

  • @xrakion
    @xrakion Рік тому +1

    Nice!!!! Thanks

  • @adamatos-u6z
    @adamatos-u6z Рік тому +1

    Nice!!

  • @guysperanza7531
    @guysperanza7531 Рік тому

    gracias amigo