7u83-ipsec/templates/strongswan/ipsec.conf.tunnel.erb

18 lines
622 B
Plaintext
Raw Normal View History

2018-02-23 16:02:21 +00:00
<%- @nets.each do |net| -%>
<%- @salifetime = net['lifetime'] ? net['lifetime'] : "3600 sec" -%>
<%- @saencryption = net['encryption'] ? net['encryption'] : @encryption -%>
<%- @pfs_group = net['pfs_group'] ? net['pfs_group'] : @dh_group -%>
<%- @p2hash = net['hash'] ? net['hash'] : @hash -%>
2018-02-21 15:31:53 +00:00
2018-02-23 16:02:21 +00:00
conn "<%= @title %>"
2018-02-21 15:31:53 +00:00
left=<%= @local_ip %>
leftsubnet=<%= net['local'] %>
right=<%= @remote_ip %>
rightsubnet=<%= net['remote'] %>
2018-02-23 16:02:21 +00:00
ike=<%= @encryption %>-<%= @hash %>-<%= @dh_group %>
esp=<%= @saencryption %>-<%= @p2hash %>-<%= @pfs_group %>
2018-02-21 15:31:53 +00:00
auto=start
authby=secret
keyexchange=ikev1
2018-02-23 16:02:21 +00:00
<% end -%>