multiple encryption and hash algos for p2
This commit is contained in:
parent
26b2806652
commit
c5bf01d089
|
@ -25,8 +25,9 @@ remote <%= @remote_ip %> {
|
||||||
sainfo address <%= net['local'] %> <%= @netproto %> address <%= net['remote'] %> <%= @netproto %>
|
sainfo address <%= net['local'] %> <%= @netproto %> address <%= net['remote'] %> <%= @netproto %>
|
||||||
{
|
{
|
||||||
pfs_group <%= @pfs_group %>;
|
pfs_group <%= @pfs_group %>;
|
||||||
encryption_algorithm <%= @saencryption %>;
|
encryption_algorithm <%= @saencryption.join(",") %>;
|
||||||
authentication_algorithm hmac_<%= @p2hash %>;
|
<%- @komma="" -%>
|
||||||
|
authentication_algorithm <%- @p2hash.each do |hmalgo| -%><%=@komma -%>hmac_<%= hmalgo -%> <%- @komma=',' -%> <%- end -%>;
|
||||||
compression_algorithm deflate;
|
compression_algorithm deflate;
|
||||||
lifetime time <%= @salifetime %>;
|
lifetime time <%= @salifetime %>;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,10 @@ conn "<%= @title %>"
|
||||||
right=<%= @remote_ip %>
|
right=<%= @remote_ip %>
|
||||||
rightsubnet=<%= net['remote'] %>
|
rightsubnet=<%= net['remote'] %>
|
||||||
ike=<%= @encryption %>-<%= @hash %>-<%= @dh_group %>
|
ike=<%= @encryption %>-<%= @hash %>-<%= @dh_group %>
|
||||||
esp=<%= @saencryption %>-<%= @p2hash %>-<%= @pfs_group %>
|
<%- @komma='' -%>
|
||||||
|
esp= <%- @saencryption.each do |saenc| -%> <%- @p2hash.each do |p2h| -%><%= @komma -%><%= saenc %>-<%= p2h %>-<%= @pfs_group -%> <%- @komma=',' %><%- end -%> <%- end -%>
|
||||||
|
|
||||||
|
|
||||||
auto=start
|
auto=start
|
||||||
authby=secret
|
authby=secret
|
||||||
keyexchange=ikev1
|
keyexchange=ikev1
|
||||||
|
|
Loading…
Reference in New Issue