> For the complete documentation index, see [llms.txt](https://docs.ionos.com/cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ionos.com/cloud/~/revisions/AMiYziCllTKB2y2lmONY/storage-and-backup/s3-object-storage/how-tos/access-object-storage-from-private-lan.md).

# Access Object Storage from a Private LAN

Using an S3 endpoint with a [<mark style="color:blue;">Managed Network Load Balancer</mark>](/cloud/~/revisions/AMiYziCllTKB2y2lmONY/network-services/network-load-balancer.md) (NLB) creates a secure connection to use IONOS S3 Object Storage within your work environment.

To access Object Storage from a private LAN using NLB, follow these steps:

{% hint style="info" %}
**Prerequisites:**

— Set up an NLB by following the steps in [<mark style="color:blue;">Create a NLB</mark>](/cloud/~/revisions/AMiYziCllTKB2y2lmONY/network-services/network-load-balancer/setup-nlb.md#create-a-nlb). If a load balancer already exists, then it has a private IP address.

— Use the public IP addresses of the desired [<mark style="color:blue;">S3 Endpoints</mark>](/cloud/~/revisions/AMiYziCllTKB2y2lmONY/storage-and-backup/s3-object-storage/s3-endpoints.md) as the **Target IP** address.
{% endhint %}

1\. In the **DCD**, select the NLB element to open its properties in the **Inspector** pane on the right.

2\. In the **Settings**, provide the information such as **Name**, **Primary IPv4**, and **Add IP** settings. Adding one or more additional Listener IPs is optional. For more information, see [<mark style="color:blue;">Settings</mark>](/cloud/~/revisions/AMiYziCllTKB2y2lmONY/network-services/network-load-balancer/configure-nlb.md#settings).

{% hint style="info" %}
**Note:** Public IPs must be reserved first. You can reserve public IPs by following the steps in [<mark style="color:blue;">Reserve an IPv4 address</mark>](/cloud/~/revisions/AMiYziCllTKB2y2lmONY/network-services/network-services/how-tos/ip-addresses.md#reserve-an-ipv4-address).
{% endhint %}

3\. In the **Private IPs**, add the private IP. To do so, follow the steps in [<mark style="color:blue;">Add and delete IPs</mark>](/cloud/~/revisions/AMiYziCllTKB2y2lmONY/network-services/network-load-balancer/configure-nlb.md#add-and-delete-ips).

4\. In the **Forwarding rules**, add a forwarding rule as follows:

* Select the **Private IP** as the **Listener IP** of the forwarding rule.
* Choose any algorithm.
* The protocol can be used as **TCP**, which is the default value.

For more information, see [<mark style="color:blue;">Create a rule</mark>](/cloud/~/revisions/AMiYziCllTKB2y2lmONY/network-services/network-load-balancer/configure-nlb.md#create-a-rule).

5\. Add **target** by using these values:

* **Target IP:** Select a corresponding Target IP value that is the public IP address of the desired S3 endpoint.

Following is the example of IP address values obtained for the S3 endpoints:

| S3 endpoint                      | Target IP Address |
| -------------------------------- | ----------------- |
| `s3.eu-central-3.ionoscloud.com` | `85.215.142.30`   |
| `s3.eu-central-1.ionoscloud.com` | `81.173.115.249`  |
| `s3.eu-central-2.ionoscloud.com` | `85.215.240.253`  |
| `s3.eu-south-2.ionoscloud.com`   | `93.93.114.231`   |

* **Target Port:** Use the value 443. This is the specific port on which a service or application is running on a server.
* **Weight:** Enter a target weight from 1 to 256.
* **Proxy Protocol:** Choose `none` for disabling the proxy protocol.

For more information, see the steps in [<mark style="color:blue;">Create a target</mark>](/cloud/~/revisions/AMiYziCllTKB2y2lmONY/network-services/network-load-balancer/configure-nlb.md#create-a-target).

6\. Click **PROVISION CHANGES** to save the configurations and apply them.

7\. Configure `/etc/hosts` on the backend server. For example, run the following command to open the file with sudo privileges:`sudo nano /etc/hosts`.

* Edit the file `/etc/hosts` by adding a new line with a private listener IP address followed by the S3 endpoint. This will map a specific domain to the private IP address of your NLB.

Example:

```bash

10.10.0.1 s3.eu-central-3.ionoscloud.com

```

{% hint style="success" %}
**Result:** The private LAN using NLB is successfully set up to access Object Storage.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.ionos.com/cloud/~/revisions/AMiYziCllTKB2y2lmONY/storage-and-backup/s3-object-storage/how-tos/access-object-storage-from-private-lan.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
