ShellCrash icon indicating copy to clipboard operation
ShellCrash copied to clipboard

切换DNS运行模式为redir_host和设置代理模式为iptables增强模式出错

Open Cub0ne opened this issue 3 years ago • 1 comments

切换DNS运行模式为redir_host和设置代理模式为iptables增强模式后重启后启动脚本出错

-----------------------------------------------
请输入对应数字 > 1
-----------------------------------------------
当前代理模式为: 纯净模式 ;Clash核心为: clash 
切换模式后需要手动重启clash服务以生效!
Tun及混合模式必须使用clashpre核心!
-----------------------------------------------
 1 Redir模式:CPU以及内存占用较低
              但不支持UDP
              适合非外服游戏用户使用
 2 混合模式: 使用redir转发TCP,Tun转发UDP流量
              速度较快,内存占用略高
              适合游戏用户、综合用户
 3 Tun模式:  支持UDP转发且延迟最低
              CPU占用极高,只支持fake-ip模式
              如非必要不推荐使用
 4 纯净模式: 不设置iptables静态路由
              必须手动配置http/sock5代理
              或使用内置的PAC文件配置代理
 0 返回上级菜单
请输入对应数字 > 2
-----------------------------------------------
已设为 混合模式 !!
-----------------------------------------------
欢迎使用功能设置菜单:
-----------------------------------------------
 1 切换Clash运行模式:   混合模式
 2 切换DNS运行模式:    redir_host
 3 跳过本地证书验证:   已开启   ————解决节点证书验证错误
 4 只代理常用端口:     已开启   ————用于过滤P2P流量
 5 过滤局域网设备:     未开启   ————使用黑/白名单进行过滤
 6 设置本机代理服务:    已开启   ————使本机流量经过clash内核
 7 屏蔽QUIC流量:        未开启   ————优化视频性能
 8 CN_IP绕过内核:       未开启   ————优化性能,不兼容Fake-ip
-----------------------------------------------
 0 返回上级菜单 
-----------------------------------------------
请输入对应数字 > 6
-----------------------------------------------
当前本机代理配置方式为:环境变量
-----------------------------------------------
 1 禁用本机代理
 2 使用环境变量方式配置(部分应用可能无法使用)
 3 使用iptables增强模式配置(支持docker)
 0 返回上级菜单
-----------------------------------------------
请输入对应数字 > 3
-----------------------------------------------
当前本机代理配置方式为:iptables增强模式
-----------------------------------------------
 1 禁用本机代理
 2 使用环境变量方式配置(部分应用可能无法使用)
 3 使用iptables增强模式配置(支持docker)
 0 返回上级菜单
-----------------------------------------------
请输入对应数字 > 0
-----------------------------------------------
欢迎使用功能设置菜单:
-----------------------------------------------
 1 切换Clash运行模式:   混合模式
 2 切换DNS运行模式:    redir_host
 3 跳过本地证书验证:   已开启   ————解决节点证书验证错误
 4 只代理常用端口:     已开启   ————用于过滤P2P流量
 5 过滤局域网设备:     未开启   ————使用黑/白名单进行过滤
 6 设置本机代理服务:    已开启   ————使本机流量经过clash内核
 7 屏蔽QUIC流量:        未开启   ————优化视频性能
 8 CN_IP绕过内核:       未开启   ————优化性能,不兼容Fake-ip
-----------------------------------------------
 0 返回上级菜单 
-----------------------------------------------
请输入对应数字 > 0
-----------------------------------------------
检测到已变更的内容,请重启clash服务!
-----------------------------------------------
是否现在重启clash服务?(1/0) > 1
-----------------------------------------------
未找到clash核心,正在下载!
/etc/clash/start.sh: line 363: [: : binary operator expected
/etc/clash/start.sh: line 363: [: : binary operator expected
/etc/clash/start.sh: line 363: [: : binary operator expected
/etc/clash/start.sh: line 363: [: : binary operator expected
/etc/clash/start.sh: line 363: [: : binary operator expected
/etc/clash/start.sh: line 363: [: : binary operator expected
/etc/clash/start.sh: line 363: [: : binary operator expected
/etc/clash/start.sh: line 363: [: : binary operator expected
clash服务已启动!
请使用 http://ip:7809/ui 管理内置规则
-----------------------------------------------

Cub0ne avatar Aug 30 '22 07:08 Cub0ne

@Cub0ne 不支持混合模式+iptables增强

juewuy avatar Aug 30 '22 09:08 juewuy

@Cub0ne 不支持混合模式+iptables增强

如果先开了iptable增强,然后切到了混合模式会发生什么😥 --【小白不太懂】

Etleventt avatar Oct 14 '23 09:10 Etleventt