# 远程访问控制面板

## 使用DDNSTO访问控制面板

{% hint style="info" %}

* [**DDNSTO**](https://www.ddnsto.com/) 是易友云科技推出的简单、快速的内网穿透工具；
* 使用本功能前请确保您已经正确在软件中心下载并配置好<mark style="color:blue;">DDNSTO</mark>插件；
  {% endhint %}

### <mark style="color:blue;">Setp 1：配置DDNSTO后台</mark>

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

访问<https://web.ddnsto.com/app/#/devices>，添加MC的域名映射

> **主域名：**(您的设置的访问路由的主域名)+(<mark style="color:orange;">-clash</mark>)           如：abc-clash
>
> **目的主机地址：**<mark style="color:orange;">http\://</mark>(路由内网IP)<mark style="color:orange;">:9990</mark>                       如：<http://192.168.50.1:9990>
>
> 如,访问路由地址为 <mark style="color:orange;">abc.ddnsto.com</mark>，设置面板映射地址则为 <mark style="color:orange;">abc-clash.ddnsto.com</mark>

### <mark style="color:blue;">Step 2：访问控制面板</mark>

<figure><img src="/files/3IUvanJ3PuyzcUieS0Gl" alt=""><figcaption></figcaption></figure>

直接点击MC<mark style="color:blue;">顶部功能区 -</mark>【<mark style="color:blue;">访问ZashBoard面板</mark>】按钮即可自动登录访问，Enjoy\~

{% hint style="info" %}

* 如需手动登录，登录信息为：

&#x20;       协议：https\
&#x20;       主机：(您的设置的访问路由的主域名)+(<mark style="color:orange;">-clash</mark>)  如：<mark style="color:orange;">abc-clash.ddnsto.com</mark>\
&#x20;       端口：443\
&#x20;       密码：（管理面板密码）
{% endhint %}

## 使用DDNS+反代访问控制面板

{% hint style="info" %}

* 面板暴露公网有一定的<mark style="color:orange;">安全风险</mark>，请慎重！个人更推荐使用<mark style="color:orange;">DDNSTO</mark>或者<mark style="color:orange;">Tailscale</mark>组网
* 本教程以Lucky为例，DDNS及SSL证书配置请自寻查阅相关教程，本文不再赘述
  {% endhint %}

### <mark style="color:blue;">Setp 1：配置Lucky后台</mark>

Lucky里配置好ddns和ssl证书，功能正常后；在Lucky后台-<mark style="color:blue;">Web服务</mark>中，配置反代相关规则，如下图：

<div><figure><img src="/files/etZ39u7y6Mh5V9Wjqx6O" alt=""><figcaption></figcaption></figure> <figure><img src="/files/nZitq0VJ138KX4UkYBC5" alt=""><figcaption></figcaption></figure></div>

> 监听类型：全选（或根据您的网络自选）
>
> 监听端口：个人建议<mark style="color:orange;">不常用4位以上</mark>端口（下文用<mark style="color:$primary;">1667</mark>举例）
>
> \#子规则
>
> 服务类型：<mark style="color:orange;">反向代理</mark>
>
> 前端地址：自定义+<mark style="color:orange;">ddns域名</mark>（下文用<mark style="color:$primary;">clash.abc.com</mark>举例）
>
> 后端地址：<mark style="color:orange;">h</mark><mark style="color:orange;">ttp\://</mark>(路由内网IP)<mark style="color:orange;">:9990</mark>  （如[http://192.168.50.1:9990）](https://mcreadme.gitbook.io/mc/function/http:/192.168.50.1:9990）)

### <mark style="color:blue;">Step 2：访问控制面板</mark>

浏览器输入 <mark style="color:$primary;">http(s)://clash.abc.com:1667/</mark><mark style="color:blue;">ui/zashboard/</mark> 访问面板（注意<mark style="color:orange;">网址/端口</mark>替换成您刚才设置的值），请输入如下登录信息：

> &#x20;协议：http(s)\
> &#x20;主机：<mark style="color:$primary;">clash.abc.com</mark>   （注意<mark style="color:orange;">网址</mark>替换成您刚才设置的值）\
> &#x20;端口：<mark style="color:$primary;">1667</mark>                    （注意<mark style="color:orange;">端口</mark>替换成您刚才设置的值）\
> &#x20;密码：<mark style="color:blue;">clash</mark>                   （管理面板密码）

或者直接使用 http\://<mark style="color:$primary;">clash.abc.com:1667</mark>/ui/zashboard/#/setuphostname=<mark style="color:$primary;">clash.abc.com</mark>\&port=<mark style="color:$primary;">1667</mark>\&secret=<mark style="color:blue;">clash</mark> 免登录访问（蓝色字体替换您设置的值）

Enjoy\~


---

# 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://mcreadme.gitbook.io/mc/function/remote.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.
