IP Restriction
Allow or block access to a Stook Bucket by client IP address.
IP restriction controls which IP addresses can access a Stook Bucket. You can either allow access only from specified addresses or block access from specified addresses.
How IP Restriction Works
IP restriction provides two modes:
Allow only listed addresses
Only requests from the listed addresses or ranges can access the Stook Bucket. All other requests are refused.
Block listed addresses
Requests from the listed addresses or ranges are refused. All other requests are allowed.
The restriction applies to:
Public requests.
Requests signed with access keys created in the Medianova Control Panel.
FTP accounts.
CDN Resources connected to the Stook Bucket.
Requests made with the master key are not restricted.
Configure IP Addresses
IP restriction supports individual IPv4 addresses and IPv4 ranges in CIDR notation.
Use an IPv4 address such as
203.0.113.4.Use CIDR notation for a range, such as
198.51.100.0/24.For CIDR ranges, the host portion must be zero. For example, use
10.0.0.0/24instead of10.0.0.5/24.IPv6 addresses are not supported.
Each list can contain up to 100 entries. Use CIDR ranges when multiple addresses can be represented by the same network range.
Configure IP Restriction
Open the Stook Bucket
In the Medianova Control Panel, select Stook Object Storage → Buckets, then select the Stook Bucket.
Configure IP Restriction with the API
Use the bucket settings endpoint to configure IP restriction:
Allow Only Listed Addresses
This configuration permits requests from the addresses in allow_ip_list and refuses requests from other addresses.
Block Listed Addresses
This configuration refuses requests from the addresses in deny_ip_list and allows requests from other addresses.
The restriction_type value defines what happens to addresses that are not on the configured list:
restriction_type
Mode
List used
deny
Allow only listed addresses
allow_ip_list
allow
Block listed addresses
deny_ip_list
Troubleshooting
"An IP list may hold at most 100 entries."
Combine addresses into CIDR ranges to reduce the number of entries.
"… has host bits set. Did you mean …?"
Use the network address of the CIDR range indicated by the validation message.
"… IPv6 addresses are not supported by the storage backend."
Use IPv4 addresses or IPv4 CIDR ranges.
"'all' is not an address."
To allow requests from all addresses, disable IP restriction instead.
Requests from my application are refused
When Allow only listed addresses is enabled, the application's public IP address must be included in the list. Verify the public IP address from which the application connects to the Stook Bucket.
Related Topics
Last updated
Was this helpful?

