Giter Club home page Giter Club logo

aws's Introduction

Installation of AWS Debian NAT VPN Instance

Launch new Instance (Adapt Parameters as necessary)

  • Install Instance debian-wheezy-amd64-hvm-2014-10-18-ebs - ami-482a1c55 (m3.medium)
  • Select correct VPC / Network (no public IP)
  • 8 GB General Purpose SSD
  • Tags= Name:ins-natvpn-eu-central-1a Environment:live
  • Security Groups: sec-nat-vpc-europe-central-1
  • Attach Elastic IP
  • Create DNS Record in .awsext.X.net Zone for Public Elastic IP
  • Create DNS Record in .awsint.X.net Zone for Private IP

Configuration of the Instance

Base Config


apt-get update && apt-get upgrade
apt-get install racoon ipsec-tools quagga dnsutils tcpdump vim mtr-tiny git rcconf tmux screen curl

  • Racoon Config: direct

  • edit /etc/hostname: ins-natvpn-eu-central-1a

  • edit /etc/hosts - append hostname to 127.0.0.1

  • Reboot

IPSec Config

  • Complete AWS Configuration

  • Download Generic - Vendor Agnostic VPN Configuration

  • Download Scripts

wget https://raw.githubusercontent.com/scoddy/aws/master/aws_vpn_between_vpcgw_and_debian_with_nat.sh
sudo wget -O /etc/init.d/aws-routemon https://raw.githubusercontent.com/scoddy/aws/master/aws-routemon
sudo wget -O /usr/local/bin/aws_routemon.sh https://raw.githubusercontent.com/scoddy/aws/master/aws_routemon.sh
sudo chmod +x /usr/local/bin/aws_routemon.sh /etc/init.d/aws-routemon
chmod +x aws_vpn_between_vpcgw_and_debian_with_nat.sh

Create initial VPN Config (only for first config, not for additional tunnels)
sudo ./aws_vpn_between_vpcgw_and_debian_with_nat.sh vpn-2f5ebd46.txt
sysctl -p --system (copy in sysctl.conf and erase sysctl.d/vpn.conf)

  • Add required Ipsec Interface Addresses in /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
up ip address add 169.254.255.46/30 dev eth0
up ip address add 169.254.255.42/30 dev eth0
down ip address del 169.254.255.46/30 dev eth0
down ip address del 169.254.255.42/30 dev eth0
  • modify routemon scripts SA's

aws's People

Contributors

scoddy avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.