5 lines
151 B
Bash
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 |