Last active
February 11, 2023 17:07
-
-
Save mrgreyves/fcd7f2bcdd1a2dae40030be0ef4b2f24 to your computer and use it in GitHub Desktop.
This file contains 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
cat <<EOF> setupvpn.sh | |
#!/bin/bash | |
echo "deb http://repo.pritunl.com/stable/apt focal main" | sudo tee /etc/apt/sources.list.d/pritunl.list | |
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 7568D9BB55FF9E5287D586017AE645C0CF8E292A | |
curl https://raw.githubusercontent.com/pritunl/pgp/master/pritunl_repo_pub.asc | sudo apt-key add - | |
apt update | |
apt -y install wireguard wireguard-tools | |
ufw disable | |
apt -y install pritunl mongodb | |
systemctl enable mongod pritunl | |
systemctl start mongod pritunl | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment