Initial commit

This commit is contained in:
Tobias Herre 2023-10-27 00:17:57 +02:00
parent 43594d0f49
commit af59d8cbb1
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,19 @@
#
# Mqnaged by CFEngine
#
{{#cfg.tunnel}}
{{#.nets}}
conn "{{.name}} {{.local}} {{.remote}}"
ikelifetime={{.p1_lifetime}}
lifetime={{.p2_lifetime}}
leftsubnet={{.local}}
rightsubnet={{.remote}}
left={{.local_ip}}
right={{.remote_ip}}
esp={{#.p2_encryption}}{{.}}-{{/.p2_encryption}}{{#.p2_hash}}{{.}}-{{/.p2_hash}}modp2048
ike={{.p1_encryption}}-{{.p1_hash}}-modp2048
auto=route
authby=secret
keyexchange=ikev1
{{/.nets}}
{{/cfg.tunnel}}

View File

@ -0,0 +1,6 @@
#
# Managed by CFEngine
#
{{#.cfg.tunnel}}
{{remote_ip}} : PSK "{{psk}}"
{{/.cfg.tunnel}}