Files
wireguard_scripts/addclient.sh
ducoterra 1fd09194d4 init
2019-12-02 14:09:54 -05:00

5 lines
151 B
Bash

echo Peer Pubkey:
read pubkey
echo Matching end of IP \(10.10.0.?\):
read ip
wg set wg0 peer $pubkey allowed-ips 10.10.0.$ip/32,fd86:ea04:1111::$ip/128