GithubHelp home page GithubHelp logo

epomatti / aws-nat-instance Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 118 KB

Custom NAT instance running on Debian.

License: MIT License

HCL 92.80% Shell 7.20%
iptables linux nat nat-gateway nat-instance terraform ubuntu aws ec2 vpc

aws-nat-instance's Introduction

AWS NAT Instance

Debian NAT instance running on AWS.

Create the .auto.tfvars with the following:

# NAT instance
instance_type = "t4g.nano"
userdata      = "debian.sh"
ami           = "ami-0c758b376a9cf7862"

# Server
create_private_server = true
create_vpc_endpoints  = false

Apply your infrastructure:

terraform init
terraform apply -auto-approve

After creating the resources, confirm that the NAT instance has been set up correctly:

cloud-init status

ip link show
sysctl -ar ip_forward

Now set create_private_server = true and apply again.

To test it, connect to the private server using Sessions Manager.

If you wish to enable VPC endpoints, set the variable:

create_vpc_endpoints = true

To use another distro like Ubuntu, change the variables:

# NAT instance
instance_type = "t4g.nano"
userdata      = "ubuntu.sh"
ami           = "ami-05983a09f7dc1c18f"

Useful articles here and here.

Cohesive Networks

mkdir keys
ssh-keygen -f keys/vns3

https://docs.cohesive.net/docs/nate/

https://aws.amazon.com/marketplace/pp/prodview-wf7yma4f6mdw4 https://aws.amazon.com/marketplace/pp/prodview-beu27g23xt4ok

https://docs.cohesive.net/tutorials/getting-started/ https://docs.cohesive.net/docs/cloud-setup/aws/

https://docs.cohesive.net/docs/vns3/aws-features/

aws-nat-instance's People

Contributors

epomatti avatar

Watchers

 avatar  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.