mirror of
https://github.com/trailofbits/algo.git
synced 2025-04-11 11:47:08 +02:00
* Generate mobileconfigs for WireGuard * add xmllint to wireguard profiles * Enable onDemand prompts for WireGuard * linting
25 lines
490 B
Bash
Executable file
25 lines
490 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -euxo pipefail
|
|
|
|
xmllint --noout ./configs/10.0.8.100/wireguard/apple/*/*.mobileconfig
|
|
|
|
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
|