wireguard_webadmin
wireguard_webadmin copied to clipboard
Import peers tool
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.
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
The import tool will be designed to import a list of peers and not a specific peer config file.
Thank you very much for your work. :+1: