kylemanna / docker-openvpn

🔒 OpenVPN server in a Docker container complete with an EasyRSA PKI CA
https://hub.docker.com/r/kylemanna/openvpn/
MIT License
8.73k stars 2.39k forks source link

Cannot run .ovpn file with openvpn client #404

Open rezadhah opened 6 years ago

rezadhah commented 6 years ago

After creating client certificate, i try to connect openvpn --config client.ovpn and give me result like this.

Options error: You must define TUN/TAP device (--dev)
Use --help for more information.
Perflyst commented 6 years ago

Is there dev tun in your config file?

AlexSun1995 commented 5 years ago

Hi I faced the same problem , and I saw the ovpn_getclient script, there is no "dev tun" in the generation script, only key, ca, tls_auth generated, how can I work with that? thx~

themicster commented 5 years ago

I was able to solve this by adding --device /dev/net/tun to my docker run command.

kelvinmatheka commented 4 years ago

Hey @themicster what command did you give

kcsujeet commented 3 years ago

For anyone facing this issue, run your container in privileged mode. privileged: true

edocollado commented 3 years ago

Did you try to use this?

sudo openvpn --config client.ovpn