Skip to content

Instantly share code, notes, and snippets.

@msnodderly
msnodderly / gpg-verify-iso.txt
Created August 1, 2012 21:30
HOWTO: Verify Debian ISO Downloads (from OS X)
HOWTO: Verify Debian ISO Downloads (from OS X)
- Download the required ISO from http://www.debian.org/CD/. Also download the SHA512SUMS and SHA512SUMS.sign files. (of course MD5SUM etc. work fine, but as long as we're being paranoid, we might as well go all the way)
- Install GPGTools if needed https://www.gpgtools.org/
- Verify the signature on SHA512SUMS
@msnodderly
msnodderly / gist:3196343
Created July 29, 2012 06:10
Setup IP forwarding for OpenVPN EC2 instance
## Setup IP forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
dev tun
ifconfig 10.8.0.2 10.8.0.1
secret /Users/username/path/to/static.key
redirect-gateway def1