wireguard_webadmin icon indicating copy to clipboard operation
wireguard_webadmin copied to clipboard

Import peers tool

Open eduardogsilva opened this issue 11 months ago • 3 comments

The import peers tool must be implemented.

The peer list to be imported, must be in CSV format with double quotes in all columns.

"name","public_key","private_key","preshared_key","main_ip_address"

Name (Optional): Peer's display name IP address (Optional): only the main peer address, it must belong to wireguard interface network. I'm still not sure if the ip address will be supported in the import process. If not informed, the import tool will assign the first unused ip address.

Discussed in https://github.com/eduardogsilva/wireguard_webadmin/discussions/17

Originally posted by xgusto March 15, 2024 I want to ask if it will be possible to import a peer from a file in the peer section in the newer version. Now the button is inactive.

eduardogsilva avatar Mar 15 '24 19:03 eduardogsilva

I assumed that if I download the .conf, I will be able to import it in the future.

[Interface]
PrivateKey = <PrivateKey>
Address = 10.10.3.2/32


[Peer]
PublicKey = <PublicKey>
Endpoint = example.com:51820
AllowedIPs = <AllowedIPs>
PresharedKey = <PresharedKey>
PersistentKeepalive = 25

xgusto avatar Mar 15 '24 21:03 xgusto

The import tool will be designed to import a list of peers and not a specific peer config file.

eduardogsilva avatar Mar 15 '24 22:03 eduardogsilva

Thank you very much for your work. :+1:

xgusto avatar Mar 16 '24 06:03 xgusto