I am a newbie to AWS and have created one instance, in which I am trying to set up my subdomain.
below are my OS details
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic
I have allowed all the inbound and outbound rules from the security policy.
For some reason, I can only access port 21 an 22.
Unfortunately, port 80, 8080, 443 all are closed even though they are allowed and enabled in AWS security policy.
I also went ahead to Route 53
and created A records that point to the IP address of the instance for my subdomain and an NS record for the subdomain which I basically copied from my main root domain settings.
I can't access port 80, not 8080 nor 443. I can't access my subdomain website.
Below is the detail from running netstat -plant
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 880 172.31.6.221:22 27.255.44.66:63633 ESTABLISHED -
tcp 0 0 172.31.6.221:22 27.255.44.66:60659 ESTABLISHED -
tcp 0 0 172.31.6.221:22 27.255.44.66:61717 ESTABLISHED -
tcp 0 0 172.31.6.221:22 27.255.44.66:62106 ESTABLISHED -
tcp6 0 0 :::21 :::* LISTEN -
tcp6 0 0 :::22 :::* LISTEN -
I am not using an Elastic IP for my subdomain. Plus UFW is already inactive, I am not using that.
I wasted countless hours trying to figure out what's wrong