Skip to content

Instantly share code, notes, and snippets.

View dctanner's full-sized avatar

Damien Tanner dctanner

View GitHub Profile
ec2-run-instances ami-2bb65342 -k gsg-keypair
ssh -i ~/.ec2/id_rsa-gsg-keypair root@ec2-67-202-32-198.compute-1.amazonaws.com
On EC2
---
yum install -y openvpn
modprobe tun
modprobe iptable_nat
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 10.4.0.1/2 -o eth0 -j MASQUERADE
module Spec
module Matchers
class EqlHash #:nodoc:
def initialize(expected)
@expected = expected
end
def matches?(actual)
@actual = actual