LXC Bridge to LAN

Prerequisites Ubuntu 16.04 LXC/D installed Working eth0 Install utilities sudo apt install lxc bridge-utils Bridge your interface Edit config sudo nano /etc/network/interfaces Set eth0 to manual Add section for br0 (or whatever you'd like to label the bridge) Make sure you include eth0 (or your interface…

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,…

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…