0

I have a web server instance running apache on aws, It stopped working suddenly. I've checked port in the security group and both port 80 and 443 are open both for ip4 and ip6. I have no firewall running on the service, both firewall and iptables are disabled. When I run telnet telnet 18.156.179.95 80 I get a connection time out. Apache is running and listening to the port, checked this by running systemctl status httpdwhich returned

Active: active (running) since Tue 2022-09-06 04:28:29 UTC; 31min ago

and ran netstat -tnlp | grep :80 which returned

tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1329/httpd
tcp6       0      0 :::80                   :::*                    LISTEN      1329/httpd

This is how my security group looks like List of ports inbound rules

I am really at a lose here and as always all help is much appreciated.

P.S. Worth mentioning other services running on other ports are working fine

7
  • What commands ping 18.156.179.95 and ip addr says? "I stopped working suddenly" - what it means exactly? What config files of your webserver?
    – gapsf
    Sep 6, 2022 at 5:30
  • @gapsf I meant the webserver stopped working suddenly, when i ping the ip it gets a timeout, worth mentioning other services running on other ports are working fine
    – Breezer
    Sep 6, 2022 at 5:33
  • @gapsf the instance is running, but I cant reach apache listening to port 80, there isn't even a connection made as I can see in the logs, so I assume for some reason the port is blocked
    – Breezer
    Sep 6, 2022 at 5:39
  • 1
    check with tcodump, restart apache, reload instance, talk to aws
    – gapsf
    Sep 6, 2022 at 5:54
  • 1
    Pardon for my left-field question; but do you have enough disk space?
    – ewokx
    Sep 6, 2022 at 8:23

1 Answer 1

0

Thank you everyone for trying to help. As It happens to be this problem was apparently due to aws suspending thoose ports because of malware. For future reference make sure to check. The Health Status Dashboard and its history. Because at first glance it might say healthy as it did for me but after further investigation it showed in the event log that I had been notified that these action would be taken if the problem wasn't resolved.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .