Skip to content

Instantly share code, notes, and snippets.

@magician11
Last active December 17, 2022 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save magician11/67474021588e80a1617b980d8e42a0bb to your computer and use it in GitHub Desktop.
Save magician11/67474021588e80a1617b980d8e42a0bb to your computer and use it in GitHub Desktop.
How to setup a static IP for a developer who uses a MacBook

We're going to setup a personal WireGuard and IPsec VPN on DigitalOcean, from a Mac

git clone https://github.com/trailofbits/algo.git
  • then run
python3 -m pip install --user --upgrade virtualenv
  • then enter the directory (probably called algo), and run
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
  • open config.cfg and add your list of users
  • run ./algo (for detailed instructions to setup DigitalOcean, see here)
    • answer no to yes/no questions
    • paste in the token key from the setup in DigitalOcean
  • Install WireGuard, then click "import tunnel from file", and navigate to within the algo directory, to open /configs/[IP address]/wireguard/[user.conf]
  • to add or remove users, follow these steps.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment