From 6dd91a6084521a99789e08f877b359600884ff0d Mon Sep 17 00:00:00 2001 From: elijah Date: Fri, 23 Nov 2012 01:54:07 -0800 Subject: added a template that is used to generate a client config file for openvpn (to be used for testing). --- provider_base/test/openvpn/client.ovpn.erb | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 provider_base/test/openvpn/client.ovpn.erb (limited to 'provider_base') diff --git a/provider_base/test/openvpn/client.ovpn.erb b/provider_base/test/openvpn/client.ovpn.erb new file mode 100644 index 00000000..96cb7177 --- /dev/null +++ b/provider_base/test/openvpn/client.ovpn.erb @@ -0,0 +1,28 @@ +client +dev tun +remote-cert-tls server +remote-random +nobind +script-security 2 +verb 3 +auth SHA1 +cipher AES-128-CBC +tls-cipher DHE-RSA-AES128-SHA + +<% manager.services['openvpn'].node_list.each_node do |node| -%> +<% unless node.local -%> +<%= "remote #{node.openvpn.gateway_address} 1194 udp"%> +<% end -%> +<% end -%> + + +<%= read_file! :ca_cert -%> + + + +<%= read_file! :test_client_cert -%> + + + +<%= read_file! :test_client_key -%> + -- cgit v1.2.3