Skip to content

fix(ipsec): add restart dpd_action#1676

Merged
gsanchietti merged 2 commits into
nethsecurity-8.8from
issue1298
May 15, 2026
Merged

fix(ipsec): add restart dpd_action#1676
gsanchietti merged 2 commits into
nethsecurity-8.8from
issue1298

Conversation

@gsanchietti
Copy link
Copy Markdown
Member

@gsanchietti gsanchietti commented May 15, 2026

The init file from upstream replaces the dpd_action option values. Notably it replaces restart with start, but start value is not supported by Strongswan 6.
Make sure if restart is set, the value is preserved.

From the manual:

Action to perform for this CHILD_SA on DPD timeout. The default clear closes the CHILD_SA
and does not take further action. trap installs a trap policy, which will catch matching traffic
and tries to re-negotiate the tunnel on-demand (note that this is redundant if start_action includes trap.
restart immediately tries to re-negotiate the CHILD_SA under a fresh IKE_SA.

Fixes: #1298

@gsanchietti gsanchietti marked this pull request as ready for review May 15, 2026 10:42
@gsanchietti gsanchietti requested a review from Tbaile May 15, 2026 10:43
The init file from upstream replaces the dpd_action option values.
Notably it replaces `restart` with `start`, but `start` value
is not supported by Strongswan 6.
Make sure if `restart` is set, the value is preserved.

From the manual:

  Action to perform for this CHILD_SA on DPD timeout. The default clear closes the CHILD_SA
  and does not take further action. trap installs a trap policy, which will catch matching traffic
  and tries to re-negotiate the tunnel on-demand (note that this is redundant if start_action includes trap.
  restart immediately tries to re-negotiate the CHILD_SA under a fresh IKE_SA.
@gsanchietti gsanchietti force-pushed the issue1298 branch 2 times, most recently from f84ef1f to 9b76cc1 Compare May 15, 2026 12:24
@gsanchietti gsanchietti merged commit 5b90c12 into nethsecurity-8.8 May 15, 2026
1 check passed
@gsanchietti gsanchietti deleted the issue1298 branch May 15, 2026 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant