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…

Force secure SMB connection

With the recent vulnerabilities in the SMB protocol and clients, I like to force the Linux Samba server to only work with secure versions. Edit the samba config: sudo nano /etc/smb.conf Some information online will use the min protocol= option, however this breaks remote mounting in some clients,…

Self-hosting Ghost

Previously I was using Ghost (Pro) to host my blog, however, the tiny amount of traffic did not justify the annual cost. I decided to move the site over to my own host and use Cloudflare as a CDN to provide caching. I also setup SNI Proxy to allow for…

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…