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

Set the endpoint for a peer #103

Open
adamc-formlogic opened this issue Sep 15, 2023 · 4 comments
Open

Set the endpoint for a peer #103

adamc-formlogic opened this issue Sep 15, 2023 · 4 comments

Comments

@adamc-formlogic
Copy link

Like it says on the tin, I'd like to be able to set the endpoint that the wireguard agent uses to connect to a peer. For my use case, I want the agent to be able to reach out and open a tunnel proactively instead of waiting for the client to connect in to it first.

I looked quite a bit through the code, but as far as I can tell, the peers are configured in createPeersConfiguration and there does not seem to be a way to specify an endpoint.

@jodevsa
Copy link
Owner

jodevsa commented Sep 16, 2023

Hey,

what would be the uscase? how would it benefit you?

@adamc-formlogic
Copy link
Author

adamc-formlogic commented Sep 16, 2023 via email

@jodevsa
Copy link
Owner

jodevsa commented Sep 16, 2023

I see. So your are trying to make wireguard provisioned using wireguard-operator to connect to another wireguard site.

Making the endpoint configurable is really easy. Do you think we'll need to add any iptable rules to allow traffic to flow from both sites?

@adamc-formlogic
Copy link
Author

For my own purposes, allowing the client to connect to the Kubernetes server is perfectly sufficient and neither side needs to reach beyond those two endpoints.

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

2 participants