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

WID_LoadLibrary : The Intricacies Of DLL Management In Windows

WID_LoadLibrary is a custom implementation inspired by the Windows API function LoadLibrary, which is used…

15 hours ago

Locksmith : A Tool For Securing Active Directory Certificate Services

Locksmith is a specialized tool designed to identify and remediate vulnerabilities in Active Directory Certificate…

15 hours ago

Uscrapper Vanta : A Cutting-Edge OSINT Tool For Advanced Data Extraction

Uscrapper Vanta is a powerful open-source intelligence (OSINT) tool designed to revolutionize web scraping and…

15 hours ago

Pake : Transforming Webpages Into Desktop Applications

Pake is an innovative tool designed to convert any webpage into a desktop application with…

19 hours ago

Bevy : Exploring The Frontier Of Game Development With Rust

Bevy is an open-source, data-driven game engine built in Rust, designed to simplify game development…

19 hours ago

AppFlowy Cloud : Enhancing Collaboration With Secure Cloud Infrastructure

AppFlowy Cloud is a robust component of the AppFlowy ecosystem, designed to provide secure user…

2 days ago