Package that configures debian openvpn service to work with https://www.ovpn.com/en service.
How to configure it:
-
Download your configuration package.
-
Set
OPENVPN_KEY
to contents your keys from configration package -
Set
OPENVPN_CRT
to contents of certficate from configuration package -
Set
OPENVPN_USERNAME
andOPENVPN_PASSWORD
to your username and passwords -
Configure configuration files to use:
-
For each of the servers you wish to connect add entry in
OPENVPN_CONFS
-
It should look like in the example:
OPENVPN_CONFS: - name: us-losangeles docker_helper: "{{ OPENVPN_DEFAULT_ENABLE_DOCKER_HELP }}" verbosity: "{{ OPENVPN_DEFAULT_VERBOSITY }}" proto: "{{ OPENVPN_DEFAULT_PROTO }}" server_list: | remote something
name
is config file name (should be unique)server_list
is actual list of server you wish to connect to- Rest of the options are explained below
-
You can set default openvpn connection that you will automatically
connect to. To enable it set: OPENVPN_DEFAULT_CONFIG
to
name
of one of the config files.
Due to some incompatibility (see: https://stackoverflow.com/q/45692255/7918), openvpn may break docker.
If you set OPENVPN_DEFAULT_ENABLE_DOCKER_HELP
(or set docker_helper
to true in one of the configuration files) this role will
fix this problem.
OPENVPN_DEFAULT_VERBOSITY
sets verbosity of openvpnOPENVPN_DEFAULT_PROTO
sets protocol (udp
ortcp
).
Force DNS
to not leak IP. For now manually set resolv.conf
or
NetworkManager
.
See this for possible solution: https://serverfault.com/a/590722/3441.
Create config file template named <provider>_openvpn_template
and then set value: OPENVPN_CONFIGURATION_TEMPLATE
to <provider>_openvpn_template
.
Other changes might ne needed.
BSD
Jacek Bzdak jacek@askesis.pl