Solved

AWS NAT

Posted on 2016-11-28
4
45 Views
1 Endorsement
Last Modified: 2016-11-28
I have a vpc with public and private subnets.  Nat is in public and apache is in private.  How do I get the apache server to register externally using nat public ip on port 80?
1
Comment
Question by:Eric Donaldson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 14

Expert Comment

by:Phil Phillips
ID: 41904983
1. Disable source/destination check on the NAT instance (can be done at the EC2 console, via right clicking the instance)
2. In the VPC route table for the private subnet, add a default route (0.0.0.0) that points at the NAT instance.
3. Make sure the security group for the NAT instance allows port 80 in and out.

Though, I would recommend looking at using a nat gateway instead: http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html
0
 

Author Comment

by:Eric Donaldson
ID: 41905003
thanks;  I will look at the gateway.

I do have the other 3 options configured, although the SG inbound is pointing to the nat instance and outbound is the 0.0.0.0/0.

Also the webserver I have is on the private subnet, will that work
0
 
LVL 14

Accepted Solution

by:
Phil Phillips earned 500 total points
ID: 41905010
Yes, you should be fine with the webserver on the private subnet.

The SG inbound on the NAT instance should allow port 80 to at least everything (you can lock it down more if you need to).

The article in this free course on EE could help: https://www.experts-exchange.com/courses/224/Networking-in-Amazon-Web-Services.html

The console screenshots might be a little out of date, but the concepts are still the same.
0
 

Author Comment

by:Eric Donaldson
ID: 41905090
actually this worked - thank you!
0

Featured Post

Webinar May 25: Cloud Security Strategies for SMBs

Small and mid-sized businesses are a driving force behind cloud adoption, and it’s no wonder: cloud benefits are BIG.  But for all the convenience that moving to the cloud provides, where does security come into play?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
AWS Routing 3 237
Unable to Access EC2 Windows Instance Using Local Login After Connecting to SimpleAD 3 55
cloudformation 1 65
Linux MD5 Hash 7 96
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Happy holidays! Your Ops team can pack their bags. IT management and IT management tools are dead. Or at least that’s according to a new blog from Tech Target on AWS’s new Managed Services (MS) offering.
Steps to create a PostgreSQL RDS instance in the Amazon cloud. We will cover some of the default settings and show how to connect to the instance once it is up and running.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question