binhex / arch-privoxyvpn

Docker build script for Arch Linux base with Privoxy and OpenVPN
GNU General Public License v3.0
102 stars 24 forks source link

OpenVPN is required on Host? #17

Closed dausruddin closed 2 years ago

dausruddin commented 3 years ago

When I ran this image, I got these errors

2021-07-21 19:30:19,666 DEBG 'start-script' stderr output:
mknod: /dev/net/tun: Operation not permitted

2021-07-21 19:30:19,666 DEBG 'start-script' stdout output:
[crit] Unable to create tun device, try adding docker container option '--device=/dev/net/tun'

I have tried this on my Laptop, and 2 servers with rootless docker and rootless podman. All had the same erros.

binhex commented 2 years ago

no you do not need openvpn on the host, the openvpn client is included in the image, you are most probably not running with the correct flags, i would assume you are missing:- --cap-add=NET_ADMIN

see readme.md for example docker run.

dausruddin commented 2 years ago

Thank you :)