1 # DO NOT EDIT - This file is being maintained by Chef
3 # Set the local port to use
9 # Use routed IP tunnels
12 # Use shared secret authentication
13 secret <%= @name %>.key
15 # Run in peer-to-peer mode
17 <% if @mode == "client" -%>
19 # Connect to the remote machine
20 remote <%= @peer[:host] %> <%= @peer[:port] %>
23 # Configure interface and routing
24 ifconfig <%= @address %> <%= @peer[:address] %>
25 <% @peer[:networks].each do |network| -%>
26 route <%= network[:address] %> <%= network[:netmask] %>
29 # Keepalive - check every 10 seconds and reset after 2 minutes
32 # Use AES-128 as the cipher
42 # Reuse resources on restart to avoid privilege problems