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.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user