Skip to content

Added wireguard_always_listen to force ListenPort without setting an endpoint #218

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alfvar
Copy link

@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

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