aboutsummaryrefslogtreecommitdiff
path: root/ansible/experiments/strongswan/roles/strongswan-rw/templates
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/experiments/strongswan/roles/strongswan-rw/templates')
-rw-r--r--ansible/experiments/strongswan/roles/strongswan-rw/templates/swanctl.conf34
1 files changed, 34 insertions, 0 deletions
diff --git a/ansible/experiments/strongswan/roles/strongswan-rw/templates/swanctl.conf b/ansible/experiments/strongswan/roles/strongswan-rw/templates/swanctl.conf
new file mode 100644
index 0000000..90d212b
--- /dev/null
+++ b/ansible/experiments/strongswan/roles/strongswan-rw/templates/swanctl.conf
@@ -0,0 +1,34 @@
+connections {
+
+ home {
+ local_addrs = {{ strongswan_rw[inventory_hostname].local_addrs }}
+ remote_addrs = {{ strongswan_home_addrs }}
+
+ local {
+ auth = pubkey
+ certs = {{ inventory_hostname }}-cert.der
+ id = {{ inventory_hostname }}.trygvis.io
+ }
+ remote {
+ auth = pubkey
+ id = {{ strongswan_remote_id }}
+ }
+ children {
+ home {
+ remote_ts = {{ strongswan_ts }}
+
+# updown = /usr/local/libexec/ipsec/_updown iptables
+ esp_proposals = aes128-sha256-x25519
+ }
+ }
+ version = 2
+ proposals = aes128-sha256-x25519
+ }
+}
+
+authorities {
+ strongswan {
+ cacert = ca-cert.der
+ crl_uris = http://ip6-winnetou.strongswan.org/strongswan.crl
+ }
+}