Skip to content

OpenVPN with pihole build with Terraform running on AWS

Notifications You must be signed in to change notification settings

andrew-aiken/tf-aws-openvpn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tf-aws-openvpn

Prerequisites

Terraform v0.14.5 or newer
AWS CLI installed

Running

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.

Defaults

Change key pair being used in variables.tf (ec2_ssh_key)

Service Username Password
VPN Admin openvpn passwd
VPN User foo bar
Pihole PiholeAdminPassword

Whats happening?

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

About

OpenVPN with pihole build with Terraform running on AWS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages