OpenClash icon indicating copy to clipboard operation
OpenClash copied to clipboard

[Feature] 希望增加非TUN模式,只监听 7890 mix-port 端口

Open cesaryuan opened this issue 1 year ago • 6 comments

Verify Steps

  • [X] Tracker 我已经在 Issue Tracker 中找过我要提出的问题
  • [X] Latest 我已经使用最新 Dev 版本查看过,并不包含该功能特性或者还不完善
  • [X] Relevant 我知道 OpenClash 与 内核(Core)、控制面板(Dashboard)、在线订阅转换(Subconverter)等项目之间无直接关系,仅相互调用
  • [X] Definite 这确实是 OpenClash 应包含的特性
  • [ ] Contributors 我有能力协助 OpenClash 开发或完善此功能特性
  • [ ] Meaningless 我提交的是无意义的催促更新或修复请求

Describe the Feature

出于一些原因,我默认情况下不需要TUN模式来代理所有流量,只需在使用的时候显式指定 软路由IP:7890 为http_proxy即可,因此在这种情况下,希望允许关闭TUN模式(全局代理模式),但是保持clash.meta在后台运行并监听 7890 mix-port 端口

Describe Alternatives

No response

cesaryuan avatar Jul 20 '24 02:07 cesaryuan

你可以直接屏蔽掉启动脚本的防火墙命令

vernesong avatar Aug 30 '24 11:08 vernesong

@cesaryuan 兄弟你解决这个问题了吗?我有和你一样的需求。 我目前只能通过安装一个clash docker来满足我的需求。

Private0xCC avatar Sep 19 '24 11:09 Private0xCC

你可以直接屏蔽掉启动脚本的防火墙命令

@vernesong 请问一下,防火墙命令在哪个脚本文件中. 直接屏蔽/usr/share/openclash/openclash_watchdog.sh是否可行?

Private0xCC avatar Sep 24 '24 07:09 Private0xCC

/etc/init.d/openclash 里启动得第六步和第七步

vernesong avatar Sep 24 '24 10:09 vernesong

根据作者的提示,我把/etc/init.d/openclash中的函数set_firewall屏蔽了(改为空实现),能达到预期。 希望作者大大 @vernesong 可以界面上添加该功能的选项,感激不尽

Private0xCC avatar Sep 24 '24 10:09 Private0xCC

加这个干啥,你直接启动内核不就行了

vernesong avatar Sep 24 '24 11:09 vernesong

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar Nov 24 '24 08:11 github-actions[bot]