add/remove a peer
Wang Jian
larkwang at gmail.com
Sun Mar 25 18:43:46 CEST 2018
2018-03-25 3:32 GMT+08:00 ST <smntov at gmail.com>:
> Hello,
>
> I'm learning WireGuard and have a question regarding adding/removing a
> peer.
>
> Is there something like:
>
> 1) wg add peer ABCDEF... allowed-ips 192.168.88.0/24 endpoint
> 209.202.254.14:8172
>
> 2) similar for removing clients:
>
> wg rm peer ABCDEF...
> or
> wg rm peer allowed-ips 192.168.88.4/32
>
> Is this implemented already or should I file it as a feature request
> somewhere? (if so - where?)
>
You should already read man pages (man wg).
for adding peer
# wg set wg0 peer peer_pubkey allowed-ips 192.168.88.4/32 endpoint
209.202.254.14:8172
for removing peer
# wg set wg0 peer peer_pubkey remove
More information about the WireGuard
mailing list