[Solved] "/dev/net/tun": no such file or directory`

Found an issue with YAMS? Post is here! (Not for troubleshooting!)
Post Reply
usr3
Posts: 5
Joined: Tue Feb 06, 2024 5:25 pm
Micronesia

[Solved] "/dev/net/tun": no such file or directory`

Post by usr3 »

Thought i would post a something fixed an issue for me for the following error, I believe its in reference to gluetun:

Code: Select all

Error response from daemon: error gathering device information while adding custom device "/dev/net/tun": no such file or directory`

Heres the fix:

Code: Select all

sudo mkdir -p /dev/net
sudo mknod /dev/net/tun c 10 200
sudo chmod 600 /dev/net/tun

However, when I reboot the serve I need to re-add it, could someone hint why?

User avatar
rogs
Site Admin
Posts: 106
Joined: Mon Oct 23, 2023 12:53 pm
Location: Montevideo, Uruguay
Gender:
Contact:
Uruguay

Re: "/dev/net/tun": no such file or directory`

Post by rogs »

Hey!

First of all, the issue is not "Solved", so I removed the "[Solved]" flair.

Second, you should not need to create your own /dev/net/tun device. It looks like you are running YAMS in an unsupported environment. Can you give more insight on how are you running YAMS? Is it bare metal? Is it a VM? VPS? LXC? What OS are you running?

Cheers!

YAMS Creator

E: roger (at) rogs.me. Fuck you, email bots.
W: https://rogs.me
gpg: curl -sL https://rogs.me/rogs.txt | gpg --import
fingerprint: ADDF BCB7 8B86 8D93 FC4E 3224 C7EC E9C6 C36E C2E6


Also, I love cats :mrgreen:

Pirate jet, pirate jet
usr3
Posts: 5
Joined: Tue Feb 06, 2024 5:25 pm
Micronesia

Re: "/dev/net/tun": no such file or directory`

Post by usr3 »

Hi, im running on proxmox using an ubuntu lxc (im new to everything .. :roll: )

User avatar
rogs
Site Admin
Posts: 106
Joined: Mon Oct 23, 2023 12:53 pm
Location: Montevideo, Uruguay
Gender:
Contact:
Uruguay

Re: "/dev/net/tun": no such file or directory`

Post by rogs »

That's what I thought :)

You need to run a Proxmox privileged LXC in order to have access to /dev/tun devices.

https://forum.proxmox.com/threads/how-t ... ner.25339/

I'm marking the issue as solved since it's not related to YAMS! :D

YAMS Creator

E: roger (at) rogs.me. Fuck you, email bots.
W: https://rogs.me
gpg: curl -sL https://rogs.me/rogs.txt | gpg --import
fingerprint: ADDF BCB7 8B86 8D93 FC4E 3224 C7EC E9C6 C36E C2E6


Also, I love cats :mrgreen:

Pirate jet, pirate jet
usr3
Posts: 5
Joined: Tue Feb 06, 2024 5:25 pm
Micronesia

Re: [Solved] "/dev/net/tun": no such file or directory`

Post by usr3 »

Thanks, I think it's fixed now due to that post.

Post Reply