roles/protonvpn: Fix swanctl syntax

I believe the reason the VPN was not auto-restarting was because I had
incorrectly specified the `keyingtries` and `dpd_delay` configuration options.
These are properties of the top-level connection, not the child. I must
have placed them in the `children` block by accident.
jenkins-master
Dustin 2021-02-09 07:14:31 -06:00
parent 81417068c2
commit 243510e74a
1 changed files with 2 additions and 2 deletions

View File

@ -3,6 +3,8 @@ connections {
local_addrs = %defaultroute local_addrs = %defaultroute
remote_addrs = {{ protonvpn_server }} remote_addrs = {{ protonvpn_server }}
vips = 0.0.0.0,:: vips = 0.0.0.0,::
keyingtries = 0
dpd_delay = 30s
local { local {
auth = eap-mschapv2 auth = eap-mschapv2
eap_id = {{ protonvpn_username }} eap_id = {{ protonvpn_username }}
@ -11,8 +13,6 @@ connections {
auth = pubkey auth = pubkey
} }
children { children {
keyingtries = 0
dpd_delay = 30s
protonvpn { protonvpn {
remote_ts = {{ protonvpn_tunnel }} remote_ts = {{ protonvpn_tunnel }}
start_action = start start_action = start