Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

184
Views
NAT instance and NACL configurations

I have

  1. two public subnet which has one NAT EC2 instance and one bastion host
  2. one private subnet which has one EC2 instance

I am able to ping google.com from my bastion host but I am unable to do so from my private EC2 instnace.I have checked all steps mentioned here:- https://aws.amazon.com/premiumsupport/knowledge-center/ec2-internet-connectivity/

I think the problem is with my NACL.

INBOUND RULES OF THE NACL ATTACHED TO THE PRIVATE SUBNET enter image description here

OUTBOUND RULES OF NACL ATTACHED TO THE PRIVATE SUBNET enter image description here

Pinging google.com works in case I detach the NACLS from private subnet. Please verify these NACLS

NOTE: - 10.100.3.0/24 and 10.100.0.0/24 are the CIDRs of my public subnet

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Your outbound NACL rules are blocking all traffic except those destined to have a final destination of 2 private IP ranges.

Whilst the NAT might be in these subnets, the target is not, you should allow any IP ranges you want to be able to speak out to.

over 4 years ago · Santiago Trujillo Report

0

The NACL is stateless. That means you have to open the respective protocol and ports for outgoing requests and you also need inbound rules for the return traffic of outgoing requests. To allow a response to outgoing ping requests, it must allow inbound ICMP traffic. If you want to send HTTP/S requests, you must allow inbound traffic on the ephemeral ports on TCP.

You can learn more about Network ACLs and ephemeral ports here.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!