Terraform v0.14.5 or newer
AWS CLI installed
terraform init
terraform apply
Select if you want Pihole server
Type 'yes' to run script
To shutdown run terraform destroy
and follow the above steps.
Change key pair being used in variables.tf (ec2_ssh_key)
Service | Username | Password |
---|---|---|
VPN Admin | openvpn | passwd |
VPN User | foo | bar |
Pihole | PiholeAdminPassword |
The vpn_ec2
ec2 creates a OpenVPN server which assigns the DNS name of the next server pihole_ec2
.
The DNS server pihole_ec2
installs Pihole a DNS blackhole (removing unwanted dns queries) and Unbound which recursively makes dns queries to the root servers.
Root → TLD → Authoritative → IP Address