How to Fix the Docker /dev/net/tun (TUN/TAP) Docker VPN issue in a Synology NAS

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024

Комментарии • 23

  • @kyffran6084
    @kyffran6084 6 месяцев назад

    You definitely got it, thanks ! I had been looking for an answer for this error in my QBiT VPN container

  • @leo-paulossola2846
    @leo-paulossola2846 2 месяца назад

    thanks a lot ! managed to tweak it a bit for asustor and solved my issue !

    • @techbytetips
      @techbytetips  2 месяца назад

      Awesome!

    • @kristoffersyversen3474
      @kristoffersyversen3474 5 дней назад +1

      want to share how you did it? :D

    • @leo-paulossola2846
      @leo-paulossola2846 5 дней назад

      @@kristoffersyversen3474i saved this script :
      #!/bin/sh -e
      modprobe tun //load tun and dependencies
      at this path : /usr/local/etc/init.d/tun.sh
      and chmod 0755
      Let me know if that works for you :)

  • @netrionio1
    @netrionio1 10 месяцев назад

    You are my MAN! Thank you. You are a lifesaver.

  • @ThomasBerkermann
    @ThomasBerkermann 8 месяцев назад

    YES!! Your're my man, too :-)

  • @armond216
    @armond216 Месяц назад

    I followed your instructions to the letter and in my logs I see "Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2)".
    lsmod command shows that the interfaces needed are present for the container

    • @techbytetips
      @techbytetips  Месяц назад +1

      Weird, I've tested the 3 methods and they've worked for me. I would say, make the container have highest privileges just in case. Restart the NAS after applying through SSH (the most invasive but more likely to work way).

    • @armond216
      @armond216 Месяц назад

      @@techbytetips Bro, that worked. For anyone else:
      Tick the box under 'Capabilities' "Execute container using high privilege'.
      Thanks again.

  • @blkkalel1970
    @blkkalel1970 10 месяцев назад +1

    Cant find your reference guide. I am a noob, can I have the link please

    • @techbytetips
      @techbytetips  10 месяцев назад

      github.com/Tech-Byte-Tips/Reference-Guides/blob/main/Fix-Synology-VPN-Dev-Tun-Issue.md
      I'll put the link in the description.

  • @Seymourr__
    @Seymourr__ 10 месяцев назад +1

    hey im still getting the /dev/net/tun (TUN/TAP) error but i followed all the steps, any tips?

    • @techbytetips
      @techbytetips  10 месяцев назад +2

      You have to also give the container highest privileges in Synology, unfortunately.

    • @gabrielb86ve
      @gabrielb86ve 9 месяцев назад

      @@techbytetips Hey, thanks for the video. How do I give the container the highest privileges? And how risky would that be?

    • @techbytetips
      @techbytetips  9 месяцев назад +1

      Hi@@gabrielb86ve, you do that when creating or editing the container. There is an option there that says High Privileges. In an enterprise environment it is a worry but if your NAS is not exposed to the internet and is only accessible in your local network, I would say you don't have to worry much.

    • @mateuszkaflowski3827
      @mateuszkaflowski3827 6 месяцев назад

      @@techbytetips Even with high privileges I get the error afer restarting NAS and need to stop and start container. Why?

    • @techbytetips
      @techbytetips  6 месяцев назад

      @@mateuszkaflowski3827 Check that you followed the steps properly.
      If you used any of the automated fix methods, it should just work.
      If you followed the manual way, then yes, you have to connect to the VPN manually when you restart and then restart the container.

  • @NoPhilospher
    @NoPhilospher 10 месяцев назад

    I am using ubuntu i am trying to connect to my vpn using open vpn i get this you must define tun/tap device (--dev )

    • @techbytetips
      @techbytetips  10 месяцев назад

      This video is a guide for Synology users. It must be the same thing. You need to create the tunnel interface. However, I don't know the commands that you need to run in Ubuntu.