chadgeary / cloudblock

Cloudblock deploys secure ad-blocking and VPN for all devices. Text and video guides included! 6 supported cloud providers, plus Ubuntu and Raspberry Pi. Cloudblock deploys Wireguard VPN, Pi-Hole DNS Ad-blocking, and DNS over HTTPS in a cloud provider - or locally - using Terraform and Ansible.
Apache License 2.0
823 stars 80 forks source link

Feature: Automatic Assignment of IPv4 Address from Local Machine #97

Closed rbell23 closed 1 year ago

rbell23 commented 1 year ago

Summary:

This PR enables the capability for the local machine's IPv4 address to be automatically captured and set within the firewall rules across all projects. The core functionality that allows this capability is usage of Terraform's http data resource, the chomp function and a locals block.

Testing:

Tested this with a simple example here. Output from that run is shown below.

CleanShot 2023-09-23 at 17 23 44@2x

rbell23 commented 1 year ago

Implementation incomplete - won't be finishing this approach.