l-n-s / wireguard-install

WireGuard VPN server installer
MIT License
657 stars 166 forks source link

Removing Clients - IP Not Reused #45

Closed f1yankees closed 5 years ago

f1yankees commented 5 years ago

First off, great script and thanks so much for putting this together.

Can you remove clients with the script? When I manually remove a client with "wg set wg0 peer 'pubkey' remove" I notice that the script does not realize I have removed the client. The IP does not get reused. Whatever client I add next gets an incremental IP, but only if available.

l-n-s commented 5 years ago

There is no such functionality in the script. You will need to manually remove corresponding client section from the config file /etc/wireguard/wg0.conf