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

14 lines
406 B
Plaintext

#
# IPSec Tunnel
# Name: <%= @title %>
#
<%- @nets.each do |net| -%>
<%- @netproto = net['proto'] ? net['proto'] : 'any' -%>
spdadd <%= net['local'] %> <%= net['remote'] %> <%= @netproto %> -P out ipsec
esp/tunnel/<%= @local_ip %>-<%= @remote_ip %>/unique;
spdadd <%= net['remote'] %> <%= net['local'] %> <%= @netproto %> -P in ipsec
esp/tunnel/<%= @remote_ip %>-<%= @local_ip %>/unique;
<%- end -%>