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

14 lines
406 B
Plaintext
Raw Normal View History

2018-02-21 15:31:53 +00:00
#
2018-02-23 16:02:21 +00:00
# IPSec Tunnel
2018-02-21 15:31:53 +00:00
# Name: <%= @title %>
#
2018-02-23 16:02:21 +00:00
<%- @nets.each do |net| -%>
<%- @netproto = net['proto'] ? net['proto'] : 'any' -%>
2018-02-21 15:31:53 +00:00
2018-02-23 16:02:21 +00:00
spdadd <%= net['local'] %> <%= net['remote'] %> <%= @netproto %> -P out ipsec
2018-03-07 13:40:57 +00:00
esp/tunnel/<%= @local_ip %>-<%= @remote_ip %>/unique;
2018-02-23 16:02:21 +00:00
spdadd <%= net['remote'] %> <%= net['local'] %> <%= @netproto %> -P in ipsec
2018-03-07 13:40:57 +00:00
esp/tunnel/<%= @remote_ip %>-<%= @local_ip %>/unique;
2018-02-23 16:02:21 +00:00
<%- end -%>