Updating Cloudflare DNS entries programmatically

Using the cloudflare API and some code written by LINKIWI, we can update the DNS pointers on Cloudflare automatically. I am launching a separate container for this, just because I can. NOTE: The python script only works with python 2 Install required software sudo apt update && \ ## Install build…

Ad-Blocking at the DNS server

Prerequisites Ubuntu 16.04 Machine or VM with accessible port 443/80 (will not work in container without extra steps) Local terminal or SSH access Upstream DNS/DHCP server (not using PiHole for this) On the DHCP server, set a reservation on so IP doesn't change. For pfsense this is…

Using SNI Proxy to serve multiple hostnames from a single IP

SNI Proxy NOTE: THERE'S A HARD CODED DNS SERVER IN THIS CONFIG Prerequisites sudo apt update &&\ sudo apt install -y autotools-dev cdbs debhelper \ dh-autoreconf dpkg-dev gettext libev-dev libpcre3-dev \ libudns-dev pkg-config fakeroot devscripts Clone latest version git clone https://github.com/dlundquist/sniproxy sniproxy Build the package cd sniproxy…

Using Let's Encrypt with Cloudflare DNS challenges

How to setup automatic SSL using Cloudflare DNS challenge Install Certbot sudo apt update && \ sudo apt install software-properties-common && \ sudo add-apt-repository ppa:certbot/certbot && \ sudo apt update && \ sudo apt install -y certbot Install pip for python3 and plugin for Cloudflare sudo apt install…

Using Cloudflare DNS

As part of an effort to decrease the amount of metadata that accidentally leaks out from networks when using the internet, I decided to swtich my DNS server to the new "privacy respecting" Cloudflare server. Below are some quick steps to get it configured on my pfsense router.…