简体   繁体   English

如何在 AWS 中 ping 在同一 vpc 同一子网但不同安全组中运行的 EC2 实例

[英]How to ping an EC2 instance running in the same vpc same subnet but different security group in AWS

如何从运行在同一 VPC、同一子网但 AWS 中的不同安全组的实例 B ping EC2 实例 A,两者都在公共子网上运行,如果我添加VPC 的 CIDR 阻塞范围,但不是公共 IP,我想访问公共 IP

Based on the comments.根据评论。

The issue was caused by blocking 0.0.0.0/0 on instance B. The solution was to add a rule to the B's security group allowing traffic from its public IP.该问题是由阻止实例 B 上的0.0.0.0/0引起的。解决方案是向 B 的安全组添加规​​则,允许来自其公共 IP 的流量。

In case of internet traffic, rules cannot reference each other by security groups.在互联网流量的情况下,规则不能通过安全组相互引用。 The SG to SG traffic is only for private IP addresses. SG 到 SG 流量仅用于私有 IP 地址。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 AWS VPC - 无法从私有子网中的堡垒主机通过 SSH 连接到不同子网中同一 VPC 中的 EC2 实例 - AWS VPC - Cannot SSH from Bastion Host in private subnet to EC2 instance in the same VPC in a different subnet AWS - 无法 ping VPC 中私有子网上的 EC2 实例 - AWS - Cannot ping EC2 instance on private subnet in VPC 实例无法通信-同一VPC和子网,不同的安全组 - Instance not able to communicate - Same VPC & Subnet, Different Security Group 如何在具有相同安全组、相同 VPC 和相同子网的两个 windows EC2 实例之间进行通信? - How to make communication between two windows EC2 instances having same Security group, same VPC and Same subnet? AWS EC2 实例能否在同一个 VPC 上 ping 客户端 VPN? - Could AWS EC2 instances ping Client VPN on the same VPC? 同一子网中具有相同安全组的 2 个 ec2 实例,但 1 个不可访问 - 2 ec2 instances in same subnet with same security group, but 1 is not accessible 如何使用aws cli将vpc中实例的ip添加到rds ec2经典实例的安全组 - How to add the ip of an instance in a vpc to the security group of rds ec2 classic instance with aws cli 无法 Ping 同一安全组下的 EC2 实例 - Can't Ping EC2 instances under same security group 具有VPC,子网和安全组选择的EC2的CloudFormation模板(JSON) - CloudFormation Template (JSON) for EC2 with VPC, Subnet & Security Group Choices SSH 连接到位于 VPC 私有子网中的 AWS EC2 实例 - SSH'ing into AWS EC2 Instance located in Private Subnet in a VPC
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM