Giter VIP home page Giter VIP logo

terraform-vpc-dns-filtering-nat-instance's Introduction

terraform-vpc-dns-filtering-nat-instance

Resources exaplained

VPC

  • 1 VPC - 10.193.0.0/16
  • 2 public subnets - 10.193.0.0/24, 10.193.1.0/24
  • 2 private subnets - 10.193.2.0/24, 10.193.3.0/24
  • 1 internet gateway
  • 5 route tables - 1 for VPC default, 2 for each public subnets, 2 for each private subnets
  • 1 dhcp options set
  • 1 Gateway endpoint - To access S3 via PrivateLink

S3

  • 1 S3 Bucket
  • 1 S3 Bucket Policy - Allow VPC Endpoint access
  • 1 S3 Bucket acl block - Block public access

EC2

  • 2 Instances on each Public subnet : Working as a proxy for private subnet instnace to access Public internet(Also working as a SSH bastion to access private subnet instance. I added for testing purpose)
    • Configured Squid for proxy feature.
    • Perform domain whitelisting. Only allow access to https://*.google.com from Private instance.
    • I wanted Squid to perform redirect http request to https but currently not working as I intended.
    • (Need more research for Squid)
  • 2 Instances on each Private subnet : Each instance can only access https://google.com
    • Caution : google.com will not work.

References

AWS Blog (Originally implemented with AWS CloudFormation) - How to add DNS filtering to your NAT instance with Squid

terraform-vpc-dns-filtering-nat-instance's People

Contributors

augustkang avatar

Stargazers

 avatar

Watchers

 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.