dperson / openvpn-client

GNU Affero General Public License v3.0
1.05k stars 585 forks source link

How-to client config file in docker-compose. #397

Open sa6kad opened 2 years ago

sa6kad commented 2 years ago

Hi. Thanks for a great container. How can I use the "-a" option, as int the very last example, in docker-compose, how can I do that.

The example I mean is: sudo docker run -it --cap-add=NET_ADMIN --device /dev/net/tun --name vpn \ -v /some/path:/vpn -d dperson/openvpn-client -a 'username;password'

Thanks.

TBG-FR commented 2 years ago

As mentionned in the provided docker-compose (L25), you should either add the line command: 'server;user;password[;port]' or a volume ./vpn:/vpn containing your config .ovpn file, your certificates file .crt and a vpn.auth file containing login/password

n-sweep commented 2 years ago

There is no mention of a vpn.auth file at the location provided. How should it be formatted?

danjrichardson commented 1 year ago

@n-sweep if still querying this, see https://github.com/dperson/openvpn-client/issues/209#issuecomment-533139744