Randomly unable to connect to ec2 instance from some networks

0

Randomly I am unable to connect to ec2 instance from office network and some others. When it happens I am unable to ping ec2 instance from this networks, but if I use a VPN it return to work correctly.

It works fine outside the office network and with 4G hotspot. Looks like something is getting blocked in specific networks.

Security groups seems configured well inbound/outbound rules (here https://i.stack.imgur.com/8GCaS.png)

Here StackOverflow thread for more info https://stackoverflow.com/questions/70891480/randomly-unable-to-connect-to-ec2-instance-from-some-networks

질문됨 2년 전379회 조회
3개 답변
0

If you can consistently do that outside your office network, most likely it's the issue with your corp network that's blocking traffic. You should contact your network admin.

One way to try to troubleshoot is using tracert command and optionally enable and check VPC flowlogs.

If you were not able to see the traffic coming in in the VPC flowlog, it might suggest the packet is dropped before reaching AWS.

Jason_S
답변함 2년 전
  • But it's not only from my office network that problem occurs, also from other specific networks. I have enabled the flow log and this is the result (i.ibb.co/0rBTLDS/Cattur2.png). On 31-01-2022 from 3:14 to 3:20 GMT + 01: 00 approximately the problem occurred on a machine with ip highlighted in blue in the file; on the log everything looks ok. As soon as I am able to replicate the error I will run tracert for more info

  • The flowlog's record shows port 443 which generally is for HTTPS traffic, not SSH (22).

0

yes, the problem is on http/s connection, not ssh

답변함 2년 전
0

This is the tracert on machine connected to network with the error (while error occurs) https://i.ibb.co/QmwXQFj/err.png

답변함 2년 전

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

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

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

관련 콘텐츠