mirror of
https://github.com/trailofbits/algo
synced 2024-11-16 12:12:55 +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
26 lines
509 B
Bash
Executable File
26 lines
509 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euxo pipefail
|
|
|
|
xmllint --noout ./configs/10.0.8.100/ipsec/apple/user1.mobileconfig
|
|
|
|
ansible-playbook deploy_client.yml \
|
|
-e client_ip=localhost \
|
|
-e vpn_user=desktop \
|
|
-e server_ip=10.0.8.100 \
|
|
-e rightsubnet='172.16.0.1/32'
|
|
|
|
ipsec up algovpn-10.0.8.100
|
|
|
|
ipsec statusall
|
|
|
|
ipsec statusall | grep -w ^algovpn-10.0.8.100 | grep -w ESTABLISHED
|
|
|
|
fping -t 900 -c3 -r3 -Dse 10.0.8.100 172.16.0.1
|
|
|
|
host google.com 172.16.0.1
|
|
|
|
echo "IPsec tests passed"
|
|
|
|
ipsec down algovpn-10.0.8.100
|