> For the complete documentation index, see [llms.txt](https://docs.verge.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.verge.io/knowledge-base/zh/tenants/allow-root-to-tenant-site-connection.md).

# 允许根站点与租户站点连接

## 概述

{% hint style="warning" %}
**重要提示**

添加此规则将允许租户在 DMZ 网络上连接。出于安全原因，默认情况下此功能已禁用。
{% endhint %}

本指南提供了在 VergeOS 中将根系统连接到租户站点的方法说明。该 **站点** 功能通常用于将两个 VergeOS 站点连接在一起，但要将此功能扩展到租户站点，您需要在根系统的 **外部** 网络。

## 前提条件

* 访问 **根** 具备管理员权限的系统。
* 对 VergeOS 中网络规则和 DMZ 接口的基本了解。

## 步骤

1. **访问外部网络**
   * 在 **根** 系统，导航到 **网络仪表板** 然后 **外部**.
   * 双击 **外部** 网络。
2. **添加规则**

   * 在左侧菜单中，点击 **规则**.
   * 在添加新规则之前，请确保该规则尚不存在。
   * 点击 **新建** 在左侧菜单中。
   * 输入以下详细信息：
     * **名称**：输入一个描述性名称，例如“允许租户访问根系统”。
     * **操作**：翻译。
     * **协议**：任何。
     * **方向**：出站。
     * **接口**：DMZ。
     * **源**：其他网络地址（DMZ）。
     * **目标**：任意/无。
     * **目标**：我的路由器 IP。

   ![规则配置](/files/d47842deae207dad88e75a3255fd63e003578c5d)
3. **提交并应用**
   * 点击 **提交**.
   * 在左侧菜单或顶部，点击 **应用规则** 以激活新规则。

规则应用后，根系统现在应该能够连接到租户站点。

## 测试规则

要验证该规则是否有效，请按照以下步骤操作：

1. 从顶部菜单中，导航到： **基础架构** > **节点**.
2. **双击** 在 **Node1** 或选择 **Node1** 然后点击 **查看**.
3. 在左侧菜单中，点击 **诊断**.
4. 更改 **查询** 更改为 **TCP 连接测试**.
5. 设置 **主机** 到 **UI IP/主机** 属于租户系统的。
6. 设置 **端口** 更改为 **443**.
7. 点击 **发送**.

该 **响应** 应显示 **连接成功**。如果连接失败，请检查规则以确保其准确性，特别是确保 **接口** 设置为 **DMZ** 而不是 **自动**.

## 故障排除

{% hint style="warning" %}
**常见问题**

* **问题：** 连接测试失败。
  * **解决方案：** 请仔细检查规则是否配置正确，尤其是接口设置。另请确保没有阻止连接的规则。
    {% endhint %}

## 其他资源

* [网络概览](/run-the-platform/networking/network-overview.md)
* [租户管理](/run-the-platform/tenants/create-tenants.md)

## 反馈

{% hint style="info" %}
**需要帮助吗？**

如果您在设置根系统到租户站点的连接时遇到任何问题，或有任何疑问，请随时联系我们的支持团队。
{% endhint %}

***

{% hint style="info" %}
**文档信息**

* 最后更新：2023-09-12
* VergeOS 版本：4.12.6
  {% 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.verge.io/knowledge-base/zh/tenants/allow-root-to-tenant-site-connection.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.
