blob: ef5e6cf411ade915905b4d63ffbc94e0956d75df [file] [log] [blame]
Hyunsun Moona5c3f642020-11-11 02:53:03 -08001---
2# strongswan defaults/main.yml
3#
4# SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
5# SPDX-License-Identifier: Apache-2.0
6
7# Default values set here work with Google Cloud VPN
8#
9# Upstream docs:
10# https://wiki.strongswan.org/projects/strongswan/wiki/ConfigurationFiles
11# https://wiki.strongswan.org/projects/strongswan/wiki/IpsecConf
12# https://wiki.strongswan.org/projects/strongswan/wiki/ConnSection
13
14# How long the keying channel of a connection (ISAKMP or IKE SA) should last
15strongswan_conf_phase1_lifetime: "600m"
16
17# How long a particular instance of a connection should last
18strongswan_conf_phase2_lifetime: "180m"
19
20# Which protocol should be used to initialize the connection
21# Acceptable values are ike, ikev1, or ikev2
22strongswan_conf_key_exchange: "ikev2"
23
24# IKE/ISAKMP SA encryption/authentication algorithms
25strongswan_conf_ike_cipher: "aes256gcm16-sha512-modp4096"
26
27# ESP encryption/authentication algorithms
28strongswan_conf_esp_cipher: "aes256gcm16-sha512-modp8192"
29
30# How the two security gateways should authenticate each other
31# NOTE: only psk is supported
32strongswan_conf_auth_type: "psk"
33
Hyunsun Moon6a19e042021-01-19 21:30:56 -080034# What operation should be done automatically at IPsec startup
Zack Williamsf7cfb4f2022-03-28 16:42:52 -070035# Acceptable values: add, start, or route
Hyunsun Moone797c952021-09-27 11:43:21 -070036strongswan_conf_auto: "route"
Hyunsun Moon2c0a0e32022-02-08 20:08:16 -080037strongswan_conf_keyingtries: "3"
Hyunsun Moon6a19e042021-01-19 21:30:56 -080038
Zack Williamsf7cfb4f2022-03-28 16:42:52 -070039# Actions that are taken when a connection drops
40# Acceptable values: clear, hold, restart
41strongswan_conf_dpdaction: "clear"
42strongswan_conf_closeaction: "clear"
43
Hyunsun Moon6a19e042021-01-19 21:30:56 -080044# Whether rekeying of an IKE_SA should also reauthenticate the peer
45strongswan_conf_reauth: "no"
46
Hyunsun Moona5c3f642020-11-11 02:53:03 -080047# Handle routes in strongSwan or not
48# Set no if VPNs are route based
49strongswan_conf_install_routes: false
50
51# List of connections to configure
52# See README.md for the examples
53strongswan_conf_connections: []