Terra guard’s goal is to be simple to create and destroy your own VPN service using Wire Guard.
Prerequisites
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 AWS, DigitalOcean and open the directory
You can change the region or key name in the variable.tf
terraform init
sudo terraform plan
sudo terraform apply
sudo terraform plan -var “do_token=value”
sudo terraform apply -var “do_token=value”
Tests – Checking the IP
curl ipinfo.io/ip
sudo systemctl start wg-quick@wg0
curl ipinfo.io/ip
The file command inspects the actual contents of a file and reports its type — regardless of…
chattr sets and removes special file attributes that operate at the filesystem level, separate from standard…
env prints the current environment, sets or removes variables for a single command, and can start…
nmap (Network Mapper) discovers live hosts, identifies open ports, and detects which service is running…
The id command prints user and group identity for any account on the system. It shows the…
sed processes input line by line, applies your commands, and writes the result to standard output.…