Skip to content

Instantly share code, notes, and snippets.

AdrianLThomas /
Last active April 13, 2020 14:37
IP table rules for Cloudflare access only with Docker
# Adapted from:
# Create a PRE_DOCKER table
iptables -N PRE_DOCKER
# Default action
iptables -I PRE_DOCKER -j DROP
# Docker Containers Public access
AdrianLThomas /
Created April 13, 2020 07:46
Auto update Ubuntu Server on Cron script
# This is a script made to keep your Ubuntu server up to
# date placing this script to /etc/cron.weekly/
# This script updates your server automatically and informs
# you via email if the update was succesful or not.
# Set the variable $admin_email as your email address.
# Create a temporary path in /tmp to write a temporary log
# file. No need to edit.

Raspberry Pi VPN Router

This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.


Install Raspbian Jessie (2015-09-24-raspbian-jessie.img) to your Pi's sdcard.

Use the Raspberry Pi Configuration tool or sudo raspi-config to: