ECS:如何建立儲存桶原則以僅允許存取一個 IP 位址的特定容器。
Summary: 本 KB 文章說明如何建立儲存桶原則,以僅允許存取一個 IP 位址的特定容器。
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.連線至以下的使用者介面: manage>Buckets>Edit>Edit Policy)

2.根據需要更改存儲桶名稱和IP位址后,請添加以下存儲桶策略。
{
"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.測試存儲桶策略。如果嘗試使用其他 IP 位址,應該會發生 403 錯誤。
Affected Products
ECS, ObjectScaleArticle 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.