summaryrefslogtreecommitdiff
path: root/provider_base/test
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2012-11-23 01:54:07 -0800
committerelijah <elijah@riseup.net>2012-11-23 01:54:07 -0800
commit6dd91a6084521a99789e08f877b359600884ff0d (patch)
tree0cac2b3e7468f40f79ce70c25a7b209b8c9b7772 /provider_base/test
parent3c253f7015540dde8e2402ba084cc48a70403d33 (diff)
added a template that is used to generate a client config file for openvpn (to be used for testing).
Diffstat (limited to 'provider_base/test')
-rw-r--r--provider_base/test/openvpn/client.ovpn.erb28
1 files changed, 28 insertions, 0 deletions
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 -%>
+
+<ca>
+<%= read_file! :ca_cert -%>
+</ca>
+
+<cert>
+<%= read_file! :test_client_cert -%>
+</cert>
+
+<key>
+<%= read_file! :test_client_key -%>
+</key>