# How to Whitelist IP?

**The Whitelist IP** feature enhances your container's security by restricting access to only authorized sources.

* **Default State**: All IP addresses are allowed to access the Container.
* **After Configuration**: Access is strictly limited to the IP addresses defined in your whitelist.

{% hint style="success" %}
**Prerequisite**: This feature is only available after a Container has been successfully created and is in "Running" status.
{% endhint %}

#### Access the Feature

1. You need to [Create a container](https://ai-docs.fptcloud.com/~/revisions/MN07vkRkyAKKaDfqwwSf/fpt-gpu-cloud/gpu-container/tutorials/how-to-create-a-container) before using this feature.&#x20;

<figure><img src="/files/HlgABKUnP0PZ5SfKpAA8" alt=""><figcaption></figcaption></figure>

2. Navigate to the **Container View** screen and select the specific Container you wish to secure.

<figure><img src="/files/BbPA2DcM5Gvrefki3luS" alt=""><figcaption></figcaption></figure>

3. Click on the **Whitelist IP tab** from the navigation menu.

#### Add a New Whitelist IP Rule

<figure><img src="/files/L7cTbrDHbh2I5owh9xRz" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/c2AzVRxzco2nFJi1fmJV" alt=""><figcaption></figcaption></figure>

1. Click the **\[+ Add Rule]** button. A new entry row will appear in the list.
2. Configure the Rule Details:

<table data-header-hidden><thead><tr><th width="118.72265625"></th><th width="345.96484375"></th><th></th></tr></thead><tbody><tr><td><strong>Field</strong></td><td><strong>Description</strong></td><td><strong>Format / Requirement</strong></td></tr><tr><td>Type</td><td>Choose the protocol for the rule.</td><td>TCP or HTTP</td></tr><tr><td>Port</td><td>Ports are automatically populated based on your Container's access settings.</td><td>You can manually remove specific ports to limit the rule's scope.</td></tr><tr><td>Source</td><td>Define the specific IP addresses or ranges allowed to access.</td><td><p>• <strong>Single IPv4</strong>: <code>192.168.1.1</code></p><p>• <strong>CIDR Range</strong>: <code>192.168.1.0/24</code></p><p>• <strong>Bulk</strong>: Use commas for multiple IPs.</p></td></tr><tr><td>Description (Optional)</td><td>Add a short note to identify the purpose of this rule .</td><td>Alphanumeric, max 100 characters.</td></tr></tbody></table>

3. Click **Save** to deploy the configuration.

#### View Whitelist IP&#x20;

<figure><img src="/files/SwSOz5lH8WQuCYat9QtU" alt=""><figcaption></figcaption></figure>

<table data-header-hidden><thead><tr><th width="210.01171875"></th><th></th><th></th></tr></thead><tbody><tr><td><strong>Field</strong></td><td><strong>Description</strong></td><td><strong>Examples</strong> </td></tr><tr><td><strong>Protocol</strong></td><td>Shows the assigned communication protocol for the rule.</td><td>TCP, HTTP</td></tr><tr><td><strong>Port</strong></td><td>Displays the specific service ports protected by the rule.</td><td>22, 80, 443, 8080</td></tr><tr><td><strong>Source (Inbound only)</strong></td><td>Lists the authorized IP addresses or network ranges allowed to access the container.</td><td>Single IP (1.2.3.4) or CIDR (1.2.3.0/24)</td></tr><tr><td><strong>Description (Optional)</strong></td><td>Displays custom labels used to quickly identify the purpose of the rule.</td><td>"Dev Team", "Office VPN", "Customer A"</td></tr></tbody></table>

**Filter**: The top navigation bar provides dynamic filters to help you locate specific rules quickly, especially when managing large environments.

* **By Protocol**: Click the Protocol dropdown to isolate rules by their communication type.
* **By Port**: Use the Port filter to find all rules associated with a specific service port.
* **By Source**: Use the Source search box to filter the list by a specific IP address or network range.

#### Edit Whitelist IP&#x20;

You can update any field of an existing rule without having to delete and recreate it.

1. Click **Edit** button
2. Edit Rules
3. Click the **Save** button (usually located at the bottom of the table) to push your updates live.

#### Delete Whitelist IP&#x20;

If a rule is no longer needed (e.g., a project has ended or a consultant no longer needs access), you can remove it permanently.

{% hint style="danger" %}
*Once a rule is deleted, the blocked IP addresses will immediately lose access to the specified ports.*
{% endhint %}

1. Click **Edit** button
2. Locate the rule you wish to remove in the Whitelist table.
3. Navigate to the Action column on the far right and click the **Trash Can icon** (Red) associated with that specific row.
4. Click the **Save** button (usually located at the bottom of the table) to push your updates live.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ai-docs.fptcloud.com/fpt-gpu-cloud/gpu-container/tutorials/how-to-whitelist-ip.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
