> For the complete documentation index, see [llms.txt](https://mcreadme.gitbook.io/mc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mcreadme.gitbook.io/mc/base/other.md).

# 高级设置

{% hint style="info" %}
本页所有功能都需要重启MC后生效
{% endhint %}

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

### <mark style="color:blue;">插件设置：</mark>

#### **实时进程守护：**

进程守护工具，使用perpctl检测进程是否存在，如果进程丢失则会自动重新拉起

{% hint style="info" %}
通常Clash进程运行稳定，不需要开启该功能
{% endhint %}

#### 开启队列请求：

队列化发起插件页面的前端请求，防止路由HTTPD组件崩溃，导致路由页面404/退回登录页面

{% hint style="info" %}
2025年11月之后编译的固件HTTPD服务稳定，通常无需开启，插件安装时会自行判断是否开启
{% endhint %}

#### ~~使用定时脚本记录代理组状态：~~&#x20;

<mark style="color:$warning;">(MC2 v1.22 版本以后，由于内核支持了jffs分区db数据库读写，故移除该功能，统一使用内核机制）</mark>

~~强制使用定时脚本记录规则的代理组选择状态~~

{% hint style="info" %}

* ~~Linux内核版本＞4.19的路由或启用了JFFS2USB，默认使用内核db数据库记录代理状态~~
* ~~Linux内核版本≤4.19的路由，无论是否开启，依旧使用定时脚本记录~~\
  ~~（插件安装分区格式为JFFS，不支持对db数据库进行写入操作）~~
  {% endhint %}

#### **开机自启推迟时间：**

路由开机时，延迟设定的时间后再启动MC

{% hint style="info" %}
路由开机启动时，会处理大量的启动进程/服务，干扰MC启动流程，导致部分机型启动失败（如：AX86等机型）；如果<mark style="color:orange;">开机启动莫名失败</mark>，请打开此功能。
{% endhint %}

#### **检查日志重试次数：**

自定义启动日志重试次数

{% hint style="info" %}
MC插件通过检查Clash日志是否存在，确定插件是否开启成功；如果<mark style="color:orange;">使用了Rule-Provider规则</mark>，可能受在线下载规则时间的影响，导致启动时间延长，请调大该参数，确保MC正常启动。
{% endhint %}

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

### <mark style="color:blue;">内核设置：</mark>

#### TCP连接并发：

启用 TCP 并发连接，将会使用 dns 解析出的所有 IP 地址进行连接，使用第一个成功的连接

#### 开启http/socks代理端口：

开启Mix-Prot混合端口，默认为23456（<mark style="color:$primary;">基于安全，默认不开启</mark>）

#### **自定义测速时间：**

修改yaml配置文件中的URLTest/FallBack/LoadBalance代理组的<mark style="color:blue;">**interval**</mark>值，既每隔多少毫秒自动测一次ping值；

#### **自定义容差值：**

修改yaml配置文件中的URLTest代理组的<mark style="color:blue;">**tolerance**</mark>值，既两个节点ping值差大于设定值才进行自动切换。

#### 管理面板登陆密码：

ZashBoard面板的登录密码设定，默认为:Clash

<figure><img src="/files/2dO60OO8OcbIPAqBDroL" alt=""><figcaption></figcaption></figure>

### <mark style="color:blue;">代理设置：</mark>

#### **关闭透明代理：**

关闭MC的透明代理功能，<mark style="color:orange;">不懂勿关</mark>

{% hint style="info" %}

* 只有开启透明代理，才能保证路由下设备无感翻墙
* <mark style="color:orange;">路由AP模式无法使用透明代理，需要关闭后才能正常启动MC</mark>
* 如果关闭，需要您在设备/APP的代理设置中，设置Http/Socks代理，才能正常翻墙

&#x20;      默认Http/Socks代理为： 192.168.50.1（路由ip） 端口：23456
{% endhint %}

#### 代理访客/IoT网络：

让访客网络/IoT网的wifi设备也可以通过MC翻墙

#### 代理路由自身访问：

代理路由自身发起的所以访问请求

{% hint style="info" %}

* **不建议长期开启此功能，经测试某些情况下可能偶发流量标记失效，导致网络回环**；
* MC插件默认只代理路由下的设备流量，<mark style="color:orange;">不会代理路由自己的流量</mark>，
* <mark style="color:orange;">无法更新MC插件数据库</mark>，可尝试开启此功能。
  {% endhint %}

#### ~~路由自身流量标记值：~~

<mark style="color:$warning;">（MC v1.0.0以后版本移除，强制固定值为256）</mark>

~~设定配置文件的routing-mark值，<mark style="color:orange;">不懂勿动</mark>~~

#### 代理模式：

切换透明代理模式

{% hint style="info" %}

* 默认模式为 Redir TCP
* 只代理TCP协议：Redir TCP 或者 Tproxy TCP
* 同时代理TCP和UDP协议：Redir TCP & Tproxy UDP 或者 Tproxy TCP & UDP
* 支持代理IPv6：TProxy TCP 或者 Tproxy TCP & UDP
  {% endhint %}

#### 代理IPv6：

代理IPv6的流量（<mark style="color:orange;">选择TProxy TCP 或者 Tproxy TCP & UDP时显示</mark>）

{% hint style="info" %}

* 经测试<mark style="color:orange;">Tproxy</mark>无法与<mark style="color:orange;">AiProtection智能网络卫士/QoS/流量分析</mark> 等功能兼容，请先关这些功能；
* 代理IPv6不代表您的访问出口还是IPv6，这取决于您的<mark style="color:orange;">Vps</mark>/<mark style="color:orange;">节点提供商</mark>是否支持。
  {% endhint %}
