From 057733ca08a370b98469eac2ff3d201e1dead7a6 Mon Sep 17 00:00:00 2001 From: wnlen <62139570+wnlen@users.noreply.github.com> Date: Tue, 3 Mar 2026 21:37:08 +0800 Subject: [PATCH] Update README with public access setup instructions Add instructions for public access configuration and service restart. --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 17b5af3..f3706cd 100644 --- a/README.md +++ b/README.md @@ -117,6 +117,19 @@ http://127.0.0.1:9090/ui > 不建议直接将管理端口暴露到公网。 +如果执意想要**公网访问** +编辑 `.env` 文件,设置公网访问并修改对外端口(建议范围20000–60000): + +``` +sudo bash -c 'echo "EXTERNAL_CONTROLLER=0.0.0.0:9099" > /opt/clash-for-linux/.env' +``` + +配置完成后,**重启服务使配置生效**: + +``` +sudo systemctl restart clash-for-linux.service +``` + ------ ## ▶️ 开启 / 关闭系统代理