Skip to content

Instantly share code, notes, and snippets.

@mrgreyves
Last active February 11, 2023 17:07
Show Gist options
  • Save mrgreyves/fcd7f2bcdd1a2dae40030be0ef4b2f24 to your computer and use it in GitHub Desktop.
Save mrgreyves/fcd7f2bcdd1a2dae40030be0ef4b2f24 to your computer and use it in GitHub Desktop.
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