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年前380ビュー
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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ