This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Spec | |
| module Matchers | |
| class EqlHash #:nodoc: | |
| def initialize(expected) | |
| @expected = expected | |
| end | |
| def matches?(actual) | |
| @actual = actual |
NewerOlder