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

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ม.ค. 2025

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

  • @6H111G9
    @6H111G9 11 หลายเดือนก่อน +5

    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  11 หลายเดือนก่อน +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 10 หลายเดือนก่อน

    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

  • @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).

  • @BetterThanTV888
    @BetterThanTV888 7 หลายเดือนก่อน

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

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

    And another great video! Just subscribed :)

  • @richardcrbb
    @richardcrbb 5 หลายเดือนก่อน

    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!!!!

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

    Great video 🎉

  • @EA-dz5yb
    @EA-dz5yb 8 หลายเดือนก่อน

    Informative and to the point. thank you.

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

    Keep it up!

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

    superb video brother

  • @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

  • @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

  • @okaudi
    @okaudi 10 หลายเดือนก่อน +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  10 หลายเดือนก่อน

      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?

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

    Nice!!!! Thanks

  • @tsakeo
    @tsakeo 7 หลายเดือนก่อน

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

    • @codefallacy
      @codefallacy  7 หลายเดือนก่อน

      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?

  • @adamatos-u6z
    @adamatos-u6z ปีที่แล้ว +1

    Nice!!

  • @Armetron
    @Armetron 8 หลายเดือนก่อน

    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  8 หลายเดือนก่อน

      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  8 หลายเดือนก่อน

      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

  • @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

  • @sunilp1969
    @sunilp1969 25 วันที่ผ่านมา

    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  25 วันที่ผ่านมา

      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

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

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

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

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

  • @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!

  • @fronix3700
    @fronix3700 5 หลายเดือนก่อน

    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  5 หลายเดือนก่อน

      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

  • @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

  • @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

  • @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!

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

    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  9 หลายเดือนก่อน +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.

  • @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 🤷

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

    What if you have a static IP?

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

      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

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

    gracias amigo