A simple multi-layered redirector infrastructure glued together with automation.
Read the blog post: ghostway-project
Before you begin, you must customize the configurations to fit your needs:
- Define your variables in
terraform/terraform.tfvars
(refer toterraform.tfvars.example
for an example). - Review and adjust
terraform/variables.tf
as necessary.
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt update
sudo apt install -y python3 python3-pip unzip sshpass terraform
pip3 install ansible
Follow these steps to set up your infrastructure:
- Sign up for a Linode account.
- Create a ZeroTier network.
- Fill
terraform/terraform.tfvars
. - Execute the following commands:
cd terraform/
terraform init
terraform apply
- BONUS: you can test it using
havoc.profile
note: don’t forget to specify the teamserver
variables in terraform/variables.tf
and ansible/inventory/hosts.ini
Ghostway is provided 'as is' under the MIT License.