Terra guard : Create And Destroy Your Own VPN Service Using Wire Guard

Terra guard’s goal is to be simple to create and destroy your own VPN service using Wire Guard.

Prerequisites

  • Terraform >= 1.0.0
  • Ansible >= 2.10.5

How To Deploy

Terraform

Run with sudo is necessary because we need permission on localhost to install packages, configure a network interface and start a process.

Select your cloud provider AWSDigitalOcean and open the directory

You can change the region or key name in the variable.tf

  • Initialize Terraform

terraform init

  • Plan our modifications

sudo terraform plan

  • Apply the changes

sudo terraform apply

  • For Digital Ocean you need to declare your token(do_token) in variable.tf or command line:

sudo terraform plan -var “do_token=value”
sudo terraform apply -var “do_token=value”

Tests – Checking the IP

  • Test the connection without VPN

curl ipinfo.io/ip

  • Start VPN

sudo systemctl start wg-quick@wg0

  • Test the connection with VPN

curl ipinfo.io/ip

R K

Recent Posts

Burrow – Breaking Through Firewalls With Open Source Ingenuity

Burrow is an open source tool for burrowing through firewalls, built by teenagers at Hack Club.…

18 hours ago

Its-A-Trap : Building Secure Web Applications With A Golang Web Server For Authentication

Simple golang webserver that listens for basic auth or post requests and sends a notification…

18 hours ago

Nutek-Apple : Unleashing Power On macOS And Linux

Nutek Security Platform for macOS and Linux operating systems. Tools for hackers, bug hunters and…

18 hours ago

SecureSphere Labs – A Haven For Cybersecurity Innovators And Ethical Hackers

Welcome to SecureSphere Labs, your go-to destination for a curated collection of powerful hacking tools…

18 hours ago

Vulpes/VulpOS : The Docker-Powered All-in-One Workstation For Penetration Testing And Offsec Labs

All in one Docker-based workstation with hacking tools for Pentesting and offsec Labs by maintained…

18 hours ago

LiCo-Extrator : Revolutionizing Icon Extraction Across Platforms

Got it! Below is the updated README.md file with instructions for downloading the project on…

1 day ago