Skip to content

[24.10] wireguard-tools: update proto script#21841

Open
systemcrash wants to merge 6 commits intoopenwrt:openwrt-24.10from
systemcrash:24cp
Open

[24.10] wireguard-tools: update proto script#21841
systemcrash wants to merge 6 commits intoopenwrt:openwrt-24.10from
systemcrash:24cp

Conversation

@systemcrash
Copy link
Contributor

@systemcrash systemcrash commented Feb 2, 2026

(squash commit of master cherry-picks)

Proto handler now also detects changes to

  • addresses

Tighten also assign address portion

Link: #21784

(cherry picked from commit d59b360)

wireguard-tools: add protocol renew handler

  • add a renew handler
  • add a peer detect handler

( benefits from openwrt/netifd#66 )

Link: #21784

(cherry picked from commit 400742a)

wireguard-tools: avoid temp file for key gen

  • no longer write any temporary file for key gen

Link: #21784

(cherry picked from commit 9778987)

wireguard-tools: avoid temp file for peer generation

  • no longer write any temporary file for peer gen
  • use wg syncconf to update active interfaces (not setconf)

Link: #21784

(cherry picked from commit 1482077)

wireguard-tools: enable reload without teardown

  • preserve (active) interface (at reload)

Link: #21784

(cherry picked from commit 0a576de)

wireguard-tools: fix script errors

follow-up to 1482077

Schoolboy error on the peer_psk value.

Also fix an issue when joining peer IPv4 and IPv6 AllowedIPs
(${peer_a_ips/ /, } replaces only the first space, while
${peer_a_ips// /, } replaces all the spaces).

Link: #21851

(cherry picked from commit 3f0de6a)

@systemcrash systemcrash changed the title [24.10 wireguard-tools: update proto script [24.10] wireguard-tools: update proto script Feb 2, 2026
@github-actions github-actions bot added core packages pull request/issue for core (in-tree) packages release/24.10 pull request/issue targeted (also) for OpenWrt 24.10 release labels Feb 3, 2026
@systemcrash systemcrash marked this pull request as draft February 3, 2026 05:25
@systemcrash systemcrash marked this pull request as ready for review February 3, 2026 16:48
Proto handler now also detects changes to
- addresses

Tighten also assign address portion

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Link: openwrt#21784
Signed-off-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit d59b360)
- add a renew handler
- add a peer detect handler

( benefits from openwrt/netifd#66 )

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Link: openwrt#21784
Signed-off-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit 400742a)
- no longer write any temporary file for key gen

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Link: openwrt#21784
Signed-off-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit 9778987)
- no longer write any temporary file for peer gen
- use wg syncconf to update active interfaces (not setconf)

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Link: openwrt#21784
Signed-off-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit 1482077)
- preserve (active) interface (at reload)

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Link: openwrt#21784
Signed-off-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit 0a576de)
follow-up to 1482077

Schoolboy error on the peer_psk value.

Also fix an issue when joining peer IPv4 and IPv6 AllowedIPs
(${peer_a_ips/ /, } replaces only the first space, while
${peer_a_ips// /, } replaces all the spaces).

Closes: openwrt#21847
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Link: openwrt#21851
Signed-off-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit 3f0de6a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core packages pull request/issue for core (in-tree) packages release/24.10 pull request/issue targeted (also) for OpenWrt 24.10 release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments