Websites hosted on ec2 not reachable

0

we have around 10 websites hosted into EC2 server with ubuntu linux, today those websites are not reachable over internet not able to browse any website hostnames, but when i access the EC2 IP from browser it works and showing the website mapped to the IP address, so i created AMI of the instance and recreated the EC2 with same EC2 type and associated old EIP from existing EC2. This issue occured earlier due to phishing attack complaint from our websites hosted on EC2, bu that time i was notified about the issue on health dashboard, but this time there is no clue about the issue, i can able to browse websited only after recreating the instance from AMI. I have restarted the services, reboot the EC2, nothing helped, only EC2 recreation helped me to bring back my websites live, what could be the reason, anybody have answer for this ?

Ramesh
질문됨 2달 전283회 조회
3개 답변
0

This issue occured earlier due to phishing attack complaint from our websites hosted on EC2, bu that time i was notified about the issue on health dashboard,

Did AWS Trust and Safety issue a warning about this? Did they send you any correspondences explaining the problem, or if they isolated this EC2 Instance? To get to the bottom of why the EC2-Instance is unreachable it would be wise to take the old instance, move it to a private VPC and search it's logs for corruption or malware. We don't know much about this website, what are your security groups, is it WordPress, how do you secure it on an infrastructure and application layer?

profile pictureAWS
전문가
David
답변함 2달 전
  • Thanks david for pointing about security, the sites hosted on same server down again second time, upon checking apache logs, i see lot of SQL injection attacks, also i ran a clamAV scan, found and removed a backdoor file, now the sites workinig fine.

0

it sounds like you have taken several steps to troubleshoot the issue already, including restarting services and rebooting the EC2 instance. Since recreating the instance from an AMI resolved the problem, it is possible that there was some issue or corruption within the instance that was resolved by creating a new instance from a clean image.

profile picture
kamal
답변함 2달 전
0

Update : Apache logs showed lot of SQL injection requests, also i done a malware scan by using ClamAV, and removed a backdoor file. Iam able to browse the websites from the affected EC2 instance after the removal of backdoor file.

Ramesh
답변함 2달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠