Help Center> Virtual Private Network> FAQ> VPN Negotiation and Interconnection> How Can I Use Security Groups to Prevent ECSs in a VPC From Being Accessed Through a VPN to Implement Security Isolation?

How Can I Use Security Groups to Prevent ECSs in a VPC From Being Accessed Through a VPN to Implement Security Isolation?

You can configure security groups to allow access only to specific CIDR blocks or ECSs in a VPC through a VPN.

Configuration example: Prevent ECSs in the subnet 10.1.0.0/24 in a VPC from accessing the customer subnet 192.168.1.0/24.

Configuration method:

  1. Create security groups 1 and 2.
  2. Security group 1 denies access from the subnet 192.168.1.0/24.
  3. Security group 2 allows access from the subnet 192.168.1.0/24.
  4. Add ECSs in the subnet 10.1.0.0/24 to security group 1 and other ECSs to security group 2.