-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot open TUN/TAP #46
Comments
Hello, When the container starts it tries to open a vpn connection through a tun/tap device that isn't present on your system. OpenVPN is installed inside the container but it requires this device to open a connection. You need to set up such a device, and this is what's described for a Synology NAS in issue #41. |
Hmm. From your first logs it says: "Cannot open TUN/TAP dev /dev/net/tun: No such file or directory" so that should imply that it's not present. But then you activated the VPN server and now you have it? If you deacivate OpenVPN will the dev/net/tun device disappear? If it was installed/configured the first time you activated OpenVPN you should then be able to deactivate your OpenVPN server and then start the container? |
That's my problem, it tells me "Can not open TUN/TAP dev /dev/net/tun: No such file or directory" when it is present ... In addition, OpenVPN works fine when I connect myself to my PC via Viscosity (same tunnelblick). It's really going crazy ... As against what is weird is that if I disables OpenVPN via the control panel, "/dev/net/tun" is always present. (and I still have the same error) Thank you for your help |
Well, it makes sense that the /dev/net/tun is still there as that interface is probably set up when OpenVPN is installed/activated for the first time. Also note that the service you're enabling/disabling is just a OpenVPN server shipped with your NAS, not all of the OpenVPN capabilities. If you don't plan to host your own OpenVPN server I would keep it disabled... As for your problem, the "No such file or directory" error will also come if there are permission issues. Are you running the container with the --privileged flag? |
Hmm. I'm not sure why the qnap container station isn't working, but there should be a choice to run the container in privileged mode. Somewhere in the advances settings? For the terminal example you have a "" between -d and -v there. That's probably why it thinks it should load v:latest image which doesn't exist. The \ symbols are only used for multi-line commands. You don't need them if you write it all on one line... |
Ah we advance! Indeed there was a good way "with privilege" check that I had not seen AND I had the damn "" too much in my line terminal !!! So it connects with both methods BUT disconnects after a few seconds (20 / 30sec). here is what I have in the logs: Port opening problems? Thank you for your help, I feel a glimpse of the end of the tunnel ... |
Nah, that looks correct. The port updating is just a custom script for the PIA provider that asks for an open port and sets it to transmission every hour. You're supposed to get that message if you're using another provider. What do you mean by disconnect? The container stops? Never seen that before... |
Thank you for your answer, sorry for the wait (Christmas ...). Yes, it is that OpenVPN disconnected. I do not understand the connection but it is disconnected between 10 and 20 seconds later ... I just tested on the OpenVPN Nas and I have the same problem so this comes from my side and not your container. So you can close my issue in my case. Thank you for your time and your help. PS: If you have an idea for my problem, I'm still ... |
Have the same issue "Can not open TUN/TAP dev /dev/net/tun: No such file or directory" I saw the reference the "Privilege" check in advanced setting in Container Station. I'm gong to take a closer look at this tonight but wondering if you can elaborate on where you found that? Maybe a screenshot of the advanced settings. |
@victoere I'm working on a QNAP 251+ and ran into the same issue. I simply had to enable privileged mode and everything worked! |
I am French, I use google translation
Hello,
I have a Qnap ts253pro.
That's the problem I have:
The problem is that /dev/net/ tun is present in my Qnap.
I saw some problems that resembled mine but I did not find satisfesante answer.
Would you have an idea of the problem?
Thank you in advance for your assistance.
Bonjour,
Je possède un Qnap ts253pro.
Voilà le problème que je rencontre :
Le problème est que /dev/net/tun est bien présent dans mon Qnap.
J'ai vu quelques problèmes qui ressemblaient au miens mais je n'ai pas trouvé de réponse satisfesante.
Auriez vous une idée du problème ?
Merci d'avance pour votre aide.
The text was updated successfully, but these errors were encountered: