mirror of
https://github.com/trailofbits/algo
synced 2024-11-18 09:25:38 +00:00
5904546a48
* generate service IPs dynamically * update cloud-init tests * exclude ipsec and wireguard ranges from the random service ip * Update docs * @davidemyers: update wireguard docs for linux * Move to netaddr filter * AllowedIPs fix * WireGuard IPs fix
24 lines
419 B
Bash
Executable File
24 lines
419 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euxo pipefail
|
|
|
|
crudini --set configs/10.0.8.100/wireguard/user1.conf Interface Table off
|
|
|
|
wg-quick up configs/10.0.8.100/wireguard/user1.conf
|
|
|
|
wg
|
|
|
|
ifconfig user1
|
|
|
|
ip route add 172.16.0.1/32 dev user1
|
|
|
|
fping -t 900 -c3 -r3 -Dse 10.0.8.100 172.16.0.1
|
|
|
|
wg | grep "latest handshake"
|
|
|
|
host google.com 172.16.0.1
|
|
|
|
echo "WireGuard tests passed"
|
|
|
|
wg-quick down configs/10.0.8.100/wireguard/user1.conf
|