summaryrefslogtreecommitdiff
path: root/templates/client.erb
diff options
context:
space:
mode:
authorJustin Lambert <jlambert@eml.cc>2012-12-31 13:20:25 -0700
committerJustin Lambert <jlambert@eml.cc>2012-12-31 13:20:25 -0700
commitbd43cc37ba2c1de8466cbee5c94a68510becbbff (patch)
treeec4562e5f94e0b14d0ce44fd26af7ddab738f387 /templates/client.erb
parentf7498ecfb1a0c80cb310f0ab5dcbc81728c713f1 (diff)
move default options to parameters
Diffstat (limited to 'templates/client.erb')
-rw-r--r--templates/client.erb24
1 files changed, 24 insertions, 0 deletions
diff --git a/templates/client.erb b/templates/client.erb
new file mode 100644
index 0000000..3d0649b
--- /dev/null
+++ b/templates/client.erb
@@ -0,0 +1,24 @@
+client
+ca keys/ca.crt
+cert keys/<%= scope.lookupvar('name') %>.crt
+key keys/<%= scope.lookupvar('name') %>.key
+dev <%= scope.lookupvar('dev') %>
+proto <%= scope.lookupvar('proto') %>
+remote <%= scope.lookupvar('remote_host') %> <%= scope.lookupvar('port') %>
+<%= scope.lookupvar('compression') %>
+resolv-retry <%= scope.lookupvar('resolv_retry') %>
+<% if scope.lookupvar('nobind') %>
+nobind
+<% end %>
+<% if scope.lookupvar('persist_key') %>
+persist-key
+<% end %>
+<% if scope.lookupvar('persist_tun') %>
+persist-tun
+<% end %>
+<% if scope.lookupvar('mute_replay_warnings') %>
+mute-replay-warnings
+<% end %>
+ns-cert-type <%= scope.lookupvar('ns-cert-type') %>
+verb <%= scope.lookupvar('verb') %>
+mute <%= scope.lookupvar('mute') %>