Using AWS Linux setup an L2TP/IPSEC Soft Ether VPN
Consider HVM (SSD) EBS-Backed 64-bit m3.medium
-
us-east-1 => ami-1ecae776
-
Updates and dependencies
sudo yum -y update
sudo yum -y upgrade
sudo yum -y install docker git wget
Consider HVM (SSD) EBS-Backed 64-bit m3.medium
us-east-1 => ami-1ecae776
Updates and dependencies
sudo yum -y update
sudo yum -y upgrade
sudo yum -y install docker git wget
FROM node:onbuild | |
ADD ./package.json /tmp/package.json | |
RUN npm install -g node-inspector | |
RUN cd /tmp && npm install | |
RUN mkdir -p /opt/app/node | |
RUN if [ -d /tmp/node_modules ] ; then cp -a /tmp/node_modules /opt/app/node; fi | |
WORKDIR /opt/app/node | |
ADD . /opt/app/node |
Read learn.adafruit.com first time boot rPi. After creating raspbian SD image, edit and create the following 3 files in the SD boot volume
dtoverlay=dwc2
to the last line of config.txt
cmdline.txt
. Search rootwait
text, and after add a space and then modules-load=dwc2,g_ether
ssh
/etc/network/interfaces
as shown belowI hereby claim:
To claim this, I am signing this object:
Guest Windows 10 OS causes high 110% CPU on Macbook host. Even when idle. This solved the problem:
#!/usr/bin/env bash | |
set -e | |
# Get secrets from ansible vault | |
ec2credentials=$(ansible-vault view ./aws-secrets.vault.yml | sed -E "s/aws_access_key = ([^ ]+)|aws_secret_key = ([^ ]+)|aws_mfa_serial = ([^ ]+)/\1\2\3/g") | |
export AWS_ACCESS_KEY_ID=$(echo $ec2credentials | cut -d' ' -f1) | |
export AWS_SECRET_ACCESS_KEY=$(echo $ec2credentials | cut -d' ' -f2) | |
exec ./algo $1 -e "aws_mfa_serial=$(echo $ec2credentials | cut -d' ' -f3)" |
Given the highlights from the Alestic blog Feb-2018, now enhance the Algo VPN Ansible script to start a spot instance vs on demand instance.
Alestic blog highlights reason to enhance algo script
git clone https://github.com/trailofbits/algo.git
cd algo
Create more client usernames, and change some values to be the following:
curl -o a-test-stack-template.yaml https://gist.githubusercontent.com/glennschler/7c6eb8c506c7460929b07a2c97fa6fca/raw/_02-test-stack-template.yaml
Set the temporary bash variable named aws_cred_profile
with the aws credentials profile name to be used for the aws cli commands
aws_cred_profile=