Skip to content

Inbound TCP 80/443 dropped before reaching ENI, despite fully permissive SG/NACL and "Reachable" verdict from Reachability Analyzer — persists across Elastic IP change

0

We have a full production outage on an EC2 instance (eu-west-1) where inbound
TCP connections on ports 80 and 443 never reach the instance, while port 22
(SSH) works normally on the same box.

Setup: Single EC2 instance, single ENI, single Elastic IP, in a VPC with
one public subnet. Apache httpd (reverse proxy) + gunicorn serve two vhosts
over 80/443. No load balancer, WAF, or CDN — DNS points directly at the
instance's Elastic IP.

Symptom: From multiple independent external networks, curl/nc to the
instance's public IP on ports 80/443 return immediate connection refused /
timeout. Port 22 to the same IP succeeds instantly.

Troubleshooting done so far:

  1. Security Group (only SG on the ENI) — explicitly allows TCP 22/80/443
    from 0.0.0.0/0.
  2. Subnet NACL — fully permissive allow-all inbound/outbound.
  3. Host-level firewall (firewalld/nftables + fail2ban) on the instance —
    verified via nft list ruleset; 80/443 explicitly accepted; only 2 unrelated
    IPs currently fail2ban-banned.
  4. Application health — httpd/gunicorn respond correctly to requests made
    locally on the instance itself (via localhost and via the instance's own public
    IP from inside the box).
  5. Packet capture on the instance — ran tcpdump -i enX0 'tcp port 80 or tcp port 443' while triggering external connection attempts from outside.
    Zero packets arrive at the interface. The SYN never reaches the guest OS's
    NIC at all.
  6. Elastic IP swap test — to rule out an IP-specific reputation/abuse
    restriction, allocated and associated a brand-new Elastic IP to the same
    instance. Exact same symptom: port 22 worked immediately, 80/443 refused,
    tcpdump showed zero packets again. Reverted back to the original EIP afterward.
  7. VPC Reachability Analyzer — ran a path analysis from the Internet
    Gateway to the ENI on TCP/443. Result: "Reachable", with every intermediate
    hop (NACL, Security Group) marked "succeeded." So AWS's own static path
    simulation says this traffic should get through.

Where this leaves us: every customer-configurable layer (SG, NACL, route
table per Reachability Analyzer, host firewall, application) checks out clean,
and the block survives an Elastic IP change — so it doesn't look like a per-IP
reputation issue either. This points to something enforced outside the VPC's
configurable path (account-level or instance/ENI-level restriction, possibly a
Trust & Safety hold or an infrastructure-side mitigation), but we've found no
notification in the AWS Health Dashboard and nothing in the account's
registered email.

Has anyone hit this pattern before? Happy to share account details privately
with any AWS engineer who can help look into this. Any pointers on how to get this in front of the right team would be hugely appreciated.

asked 2 months ago122 views

2 Answers
0

Hello.

Please check the VPC Flow Logs to verify whether the connection is reaching the VPC.
Also, please launch another EC2 instance and check if the same thing happens with that instance as well.
https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs.html

Please also check to ensure that the connection is not being blocked by the OS firewall, just as in the question below.
https://repost.aws/ja/questions/QUWHPOeqmrT0qpp3oW7WS14Q/inbound-traffic-not-reaching-ec2-instance-via-elastic-ip

EXPERT

answered 2 months ago

EXPERT

reviewed 2 months ago

  • I have previously encountered cases where HTTP communication to a specific IP was blocked due to network issues on the local PC rather than on the AWS side. I recommend checking your local network settings as well, just to be safe.

0

Hi there,

Maybe try once stopping and starting the VM instead of rebooting if any hardware level issues could be resolved when they start on a new hardware or try to create a AMI and then attach different eni while spinning it up as a new VM

answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.