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

Lost original ansible install directory and need to add clients #23

Open
th3joker opened this issue Jan 27, 2022 · 1 comment
Open

Lost original ansible install directory and need to add clients #23

th3joker opened this issue Jan 27, 2022 · 1 comment

Comments

@th3joker
Copy link

th3joker commented Jan 27, 2022

I've lost my original ansible install directory and need to add more clients how can I do this?

I've tried manually creating the public and private keys and adding to /etc/wireguard/wg0.conf but when you restart the service it reverts to the original wg0.conf

@iamckn
Copy link
Owner

iamckn commented Jan 27, 2022

The process is specified here https://www.ckn.io/blog/2017/11/14/wireguard-vpn-typical-setup/

Generate the keys - wg genkey | tee new_client_private_key | wg pubkey > new_client_public_key
Register them on the server | wg set wg0 peer <new_client_public_key> allowed-ips <new_client_vpn_IP>/32
Finally create your new client config file.

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