Lines Matching refs:pub1
84 pub1="$(pp wg pubkey <<<"$key1")"
107 peer "$pub1" \
164 n2 wg set wg0 peer "$pub1" endpoint 127.0.0.1:1
188 n2 wg set wg0 peer "$pub1" endpoint [::1]:1
198 n2 wg set wg0 peer "$pub1" endpoint 127.0.0.1:1
216 [[ $(n2 wg show wg0 endpoints) == "$pub1 127.212.121.99:9999" ]]
222 [[ $(n2 wg show wg0 endpoints) == "$pub1 [::1]:9998" ]]
246 n2 wg set wg0 private-key <(echo "$key2") listen-port 2 peer "$pub1" preshared-key <(echo "$psk") a…
249 n2 wg set wg0 peer "$pub3" preshared-key <(echo "$psk") allowed-ips 192.168.241.1/32 peer "$pub1" r…
259 n2 wg set wg0 private-key <(echo "$key2") listen-port 2 peer "$pub1" preshared-key <(echo "$psk") a…
326 [[ $(n2 wg show wg0 endpoints) == "$pub1 10.0.0.1:1" ]]
345 n2 wg set wg1 private-key <(echo "$key3") listen-port 5 peer "$pub1" allowed-ips 192.168.242.1/32
376 n2 wg set wg0 peer "$pub1" remove
445 n2 wg set wg0 peer "$pub1" endpoint 10.0.0.1:1
447 [[ $(n2 wg show wg0 endpoints) == "$pub1 10.0.0.1:1" ]]
448 n2 wg set wg0 peer "$pub1" endpoint [fd00:aa::1]:1
450 [[ $(n2 wg show wg0 endpoints) == "$pub1 [fd00:aa::1]:1" ]]
451 n2 wg set wg0 peer "$pub1" endpoint 10.0.0.2:1
453 [[ $(n2 wg show wg0 endpoints) == "$pub1 10.0.0.2:1" ]]
454 n2 wg set wg0 peer "$pub1" endpoint [fd00:aa::2]:1
456 [[ $(n2 wg show wg0 endpoints) == "$pub1 [fd00:aa::2]:1" ]]
463 n2 wg set wg0 peer "$pub1" endpoint 10.50.0.1:1
465 [[ $(n2 wg show wg0 endpoints) == "$pub1 10.50.0.1:1" ]]
492 [[ $(n2 wg show wg0 endpoints) == "$pub1 10.0.0.1:1" ]]
499 [[ $(n2 wg show wg0 endpoints) == "$pub1 10.0.0.3:1" ]]
560 n0 wg set wg0 peer "$pub1"
564 [[ $pub == "$pub1" && $allowedips == "(none)" ]]