Skip to content

Added wireguard_always_listen to force ListenPort without setting an endpoint#218

Open
alfvar wants to merge 2 commits intogithubixx:masterfrom
alfvar:master
Open

Added wireguard_always_listen to force ListenPort without setting an endpoint#218
alfvar wants to merge 2 commits intogithubixx:masterfrom
alfvar:master

Conversation

@alfvar
Copy link
Copy Markdown

@alfvar alfvar commented May 18, 2025

I had a niche use case where I wanted to configure a client/server setup with two machines as the server on a shared virtual ip. I did not want mesh behavior so I did not want to define a wireguard_endpoint, but ListenPort would not propagate into the config of the target machines.

  • Introduce new boolean var wireguard_always_listen (default false)
  • Retain original behavior: only render ListenPort when an endpoint is defined or single-node
  • Allow VIP or client/server setups to explicitly include ListenPort without setting an endpoint

@lae
Copy link
Copy Markdown

lae commented Oct 23, 2025

should probably be considered a fix for #214

(and I ran into this environment-crippling issue as well after being forced to update from 17.0.0)

@rdbisme
Copy link
Copy Markdown
Contributor

rdbisme commented Jan 27, 2026

I have the same problem (which broke my previous configuration when I updated the role).

Can we merge this?

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.

3 participants