linguard icon indicating copy to clipboard operation
linguard copied to clipboard

add/remove peer without interface restart

Open konrad4444 opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. When adding or removing peer the wireguard interface gets restarted causing everyone on vpn to got frozen connections for couple of seconds, which sometimes result in ssh sessions terminated. That is unnecessary, thare are commands to add new peer and to remove peer without reloading the whole configuration.

Describe the solution you'd like Commands to add new peer and to remove peer without reloading the whole configuration: wg set "wg-interface" peer "peer-public-key" remove wg set "wg-interface" peer "peer-public-key" allowed-ips "ip_address"

konrad4444 avatar Feb 21 '22 13:02 konrad4444

Will be included when #115 is merged

joseantmazonsb avatar Feb 23 '22 19:02 joseantmazonsb