Jump to content

ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2)


Recommended Posts

Following this guide: https://forums.unraid.net/topic/89649-683-use-network-from-vpn-docker/

I am trying to set up the docker container OVPN_Privoxy, what should I be using for the Network type and LOCAL_NET values?

 

When I use br0 or bridge I get: ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2)

it works fine on host for networking mode, but I don't want all the containers to use the vpn, just select ones. 

Link to comment
11 hours ago, ToddCat said:

Following this guide: https://forums.unraid.net/topic/89649-683-use-network-from-vpn-docker/

I am trying to set up the docker container OVPN_Privoxy, what should I be using for the Network type and LOCAL_NET values?

 

When I use br0 or bridge I get: ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2)

it works fine on host for networking mode, but I don't want all the containers to use the vpn, just select ones. 

may take a look at extra parameters

 

--cap-add=NET_ADMIN --device /dev/net/tun --sysctl net.ipv6.conf.all.disable_ipv6=0

 

if this is there ...

Link to comment
1 hour ago, alturismo said:

may take a look at extra parameters

 

--cap-add=NET_ADMIN --device /dev/net/tun --sysctl net.ipv6.conf.all.disable_ipv6=0

 

if this is there ...

Thank you for the reply, yes that is exactly what is already there.

Edited by ToddCat
Link to comment
  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...