klutchell / balena-wireguard

wireguard stack for balenacloud
22 stars 7 forks source link

Can this be configure to join as peer? #78

Open cedricve opened 9 months ago

cedricve commented 9 months ago

Hey there, is there a possibility to configure this as a peer instead of the Wireguard server?

klutchell commented 9 months ago

Unfortunately not with this entrypoint script.

The dependencies in the Dockerfile would be unchanged but you would need a different set of configuration and startup steps (probably much simpler) that this project does not currently support.

If you find the required steps to join as a peer and want to open a PR I would be happy to look at it with you!

cedricve commented 9 months ago

Yes would love to do it! Let me come back with a plan/suggestion. Thanks @klutchell !

cedricve commented 9 months ago

PS: why didn't you upload it to your Balena hub? :P

klutchell commented 9 months ago

PS: why didn't you upload it to your Balena hub? :P

Good question! I think because I'm not actively maintaining it at the moment so I didn't want an influx of users looking for support and features?

That said, I would be happy to support you as a contributor and clean up the project in the process. I just happen to use tailscale as my primary VPN now and don't have use for manual wireguard configuration.

cedricve commented 9 months ago

that's cool! Does this one acts as a subnet gateway? As what I'm proposing in this issue

klutchell commented 9 months ago

yes, the tailscale client can act as a subnet gateway with the correct flags applied

cedricve commented 9 months ago

I'm currently using Netmaker which is self-hosted, I just read about headscale. Will give it some thoughts! ;) Thanks for the discussion