Skip to content

Instantly share code, notes, and snippets.

@ptflp
Last active December 13, 2022 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ptflp/d2573ab396cfb3deb12d7cfe1ef0fa1c to your computer and use it in GitHub Desktop.
Save ptflp/d2573ab396cfb3deb12d7cfe1ef0fa1c to your computer and use it in GitHub Desktop.
docker tun device into container

Docker tun device into container install openvpn or other soft, which uses tun devices

docker run -d --name tundevica \
--cap-add=NET_ADMIN \
--device /dev/net/tun \
ubuntu tail -f /dev/null
@panyogesh
Copy link

Awsome. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment