ECS: Så här skapar du en bucketprincip för att tillåta åtkomst till en specifik bucket för endast en IP-adress.

Summary: Den här KB-artikeln beskriver hur du skapar en bucketprincip för att tillåta åtkomst till en specifik bucket för endast en IP-adress.

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

1. Anslut till användargränssnittet under manage>Buckets>Edit>Edit Policy.

Anslut till användargränssnittet under Hantera>bucketar>Redigera>och redigera princip.

 

2. När du har ändrat bucketnamnet och IP-adressen efter behov lägger du till följande bucketpolicy.

{
  "Version": "2012-10-17",
  "Id": "null",
  "Statement": [
    {
      "Condition": {
        "NotIpAddress": {
          "aws:SourceIp": [
            "x.x.x.x"
          ]
        }
      },
      "Action": "s3:*",
      "Resource": "Islam-Bucketpolicy-test",
      "Effect": "Deny",
      "Principal": "*"
    }
  ]
}

3. Testa bucketprincipen. Det bör finnas 403-fel om du försöker med en annan IP-adress.

Affected Products

ECS, ObjectScale
Article Properties
Article Number: 000311063
Article Type: How To
Last Modified: 26 Sept 2025
Version:  2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.