Skip to content
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

Feature request: Wireguard configuration files reading for VPNSP=custom #610

Closed
8 of 11 tasks
qdm12 opened this issue Sep 10, 2021 · 3 comments
Closed
8 of 11 tasks
Assignees

Comments

@qdm12
Copy link
Owner

qdm12 commented Sep 10, 2021

⚠️ Blocked by #611

What's the feature? 🧐

  • Parse each configuration and extract:
    • Endpoint IP
    • Endpoint port
    • Allowed Addresses
    • Private key
    • Public key
    • Pre-shared key
    • Checks to ensure this is a client configuration, not a server one.
  • Read all configuration files from /gluetun/wireguard/configurations
    • List all possible servers from in memory
    • Hot reload / periodic reload / reload on request of the files
@qdm12 qdm12 self-assigned this Sep 10, 2021
@qdm12 qdm12 changed the title Feature request: Wireguard configuration files reading Feature request: Wireguard configuration files reading for VPNSP=custom Sep 10, 2021
@qdm12
Copy link
Owner Author

qdm12 commented Aug 27, 2022

From @ksurl:

You can set to wg.conf as a default but configurable via an environment variable?

From @JBtje

wg.conf sounds good, configurable via env even better

My take on it:

Let's keep it as constant /gluetun/wireguard/wg.conf, not configurable:

  • so there is less chance of user error; one can always bind mount from a different file name.
  • Gluetun will support multiple openvpn/wireguard config files read from a directory, so the file name won't matter anymore.

Although I'm opened to another name than wg.conf as well.

@qdm12
Copy link
Owner Author

qdm12 commented Mar 21, 2024

This is more or less done. Wireguard configuration files can be read:

It doesn't read all the configuration files from /gluetun/wireguard/configurations or hot reload them, but I don't think that's really necessary/useful for now. Another issue can be created if there is a need for it.

@qdm12 qdm12 closed this as completed Mar 21, 2024
Copy link
Contributor

Closed issues are NOT monitored, so commenting here is likely to be not seen.
If you think this is still unresolved and have more information to bring, please create another issue.

This is an automated comment setup because @qdm12 is the sole maintainer of this project
which became too popular to monitor issues closed.

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

No branches or pull requests

1 participant