Skip to content

Instantly share code, notes, and snippets.

@AdrianLThomas
AdrianLThomas / SetupFirewallRules.sh
Last active April 13, 2020 14:37
IP table rules for Cloudflare access only with Docker
View SetupFirewallRules.sh
#!/bin/bash
# Adapted from: https://forums.docker.com/t/restricting-external-container-access-with-iptables/2225/2
# Create a PRE_DOCKER table
iptables -N PRE_DOCKER
# Default action
iptables -I PRE_DOCKER -j DROP
# Docker Containers Public access
@AdrianLThomas
AdrianLThomas / AutoUpdate.sh
Created April 13, 2020 07:46
Auto update Ubuntu Server on Cron script
View AutoUpdate.sh
# This is a script made to keep your Ubuntu server up to
# date placing this script to /etc/cron.weekly/autoupdate.sh.
# 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.
admin_mail="your.name@email.com"
# Create a temporary path in /tmp to write a temporary log
# file. No need to edit.
View raspberry-pi-vpn-router.md

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.

Requirements

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: