Last active
August 2, 2021 12:57
-
-
Save momenbasel/3c6f3ac9f3cdc63e5a2a6a4ebdd79258 to your computer and use it in GitHub Desktop.
automate wireguard server configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #scp vpn.sh root@ip:vpn.sh | |
| #chmod 755 vpn.sh | |
| echo "Updating and upgrading .. " | |
| sudo apt-get update -y 2>&1 >/dev/null | |
| sudo apt-get upgrade -y 2>&1 >/dev/null | |
| sudo apt-get install git -y 2>&1 >/dev/null | |
| echo "Downloading algo and other dependencies .." | |
| git clone https://github.com/trailofbits/algo && cd algo 2>&1 >/dev/null | |
| sudo apt-get install python3-pip -y 2>&1 >/dev/null | |
| python3 -m pip install --upgrade virtualenv 2>&1 >/dev/null | |
| python3 $(2>&1 >/dev/null) -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 | |
| echo "Running the script .." | |
| chmod 755 algo | |
| sudo bash algo | |
| echo "copy the following content and place it on your host machine with extension .conf and import it with wireguard" | |
| cat computer.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment