Skip to content

Instantly share code, notes, and snippets.

@dentarg
Created April 7, 2020 13:08
Show Gist options
  • Select an option

  • Save dentarg/165984967bad426019bac916c04dda9e to your computer and use it in GitHub Desktop.

Select an option

Save dentarg/165984967bad426019bac916c04dda9e to your computer and use it in GitHub Desktop.
WireGuard in VM with Algo (https://github.com/trailofbits/algo)

algo setup

På servern (VM)

git clone https://github.com/trailofbits/algo.git
cd algo
sudo apt install -y python3-virtualenv
python3 -m virtualenv --python="$(command -v python3)" .env &&   source .env/bin/activate &&   python3 -m pip install -U pip virtualenv &&   python3 -m pip install -r requirements.txt

Edit av config.cfg efter tycke och smak.

Installationen

default är false, men även "Optional" grejer behöver anges för att köra icke-interaktivt:

ansible-playbook main.yml -e "provider=local
                                server_name=<VPS NAME>
                                server=localhost
                                endpoint=<PUBLIC VPS IP>
                                ondemand_cellular=false
                                ondemand_wifi=false
                                dns_adblocking=false
                                ssh_tunneling=false
                                store_pki=false"

Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment