CloudFlare & open clash

简介

总有朋友问怎么免费翻墙。

虽说已经介绍了warp,wireguard。

但是我也没找到合适的无感翻墙,即旁路有翻墙,全局无感翻墙。

sing-box还是不会写配置文件。

但是最近发现了cf的trojan,openclash又支持这个协议,还是回到老路吧。

cloudflare跑个trojan,openwrt跑个openclash吧。

一:openwrt

怎么刷就不说了。

二:openclash

Releases · vernesong/OpenClash (github.com)

安装说明

  • 请先安装好这些依赖:
1
2
3
#iptables
opkg update
opkg install coreutils-nohup bash iptables dnsmasq-full curl ca-certificates ipset ip-full iptables-mod-tproxy iptables-mod-extra libcap libcap-bin ruby ruby-yaml kmod-tun kmod-inet-diag unzip luci-compat luci luci-base
1
2
3
#nftables
opkg update
opkg install coreutils-nohup bash dnsmasq-full curl ca-certificates ipset ip-full libcap libcap-bin ruby ruby-yaml kmod-tun kmod-inet-diag unzip kmod-nft-tproxy luci-compat luci luci-base
  • 启动前请先在插件设置页面的版本更新标签下确认 内核编译版本,您也可以手动下载 Clash内核 后解压到 /etc/openclash/core/文件夹

检查版本

根据openclash的说明,要区分一下iptables nftables,这个说的其实是有点晦涩了,iptables 对应 firewall3 ,nftables 对应 firewall4.

可以在软件包检查:

搜索fiwewall,或tables,都可以 1717250458041

1717250494874

移除dnsmasq

1717250527166

1717250702331

手动删除一下这个配置文件/etc/config/dhcp

1717250841963

执行安装命令

opkg update

1717250921754

opkg install

1717251035032

ipk install

这个包并不在openwrt库内,所以得手动安装。

1717251129774

让我找个github加速器:

1
2
3
# Release
# 假设下载链接为 https://github.com/A/A/releases/download/1.0/1.0.tar.gz
wget https://hub.fgit.cf/A/A/releases/download/1.0/1.0.tar.gz

https://github.com/vernesong/OpenClash/releases/download/v0.46.011-beta/luci-app-openclash_0.46.011-beta_all.ipk

不行,在线下载都失败,

https://sciproxy.com/github.com/vernesong/OpenClash/releases/download/v0.46.011-beta/luci-app-openclash_0.46.011-beta_all.ipk

手动下载一个吧,然后上传安装。

内核

首次打开luci-app-openclash,将提示下载内核,下载吧。

还有加速器,爽歪歪。随便选一个。

1717251936298

加速器居然还测速,更爽了 。

看看日志:

1717252058559

暂时安装就到这里 。

CloudFlare

老好人朋友,我都怕把它嫖出问题来。

第一代serverless脚本

zizifn/edgetunnel: Running V2ray inside edge/serverless runtime (github.com)

第二代trojan脚本

yonggekkk/Cloudflare_vless_trojan: Cloudflare代理脚本

第二代自动订阅的脚本

cmliu/edgetunnel: 在原版的基础上修改了显示 VLESS 配置信息转换为订阅内容。

创建workers

就简单的workers吧,pages连接git,怕你们不会。

1717254943601

随便换个名称,部署后再修改代码。

1717255063331

编辑代码

贴上大佬的代码,记得换第七行UUID,随便找个在线生成一下。如果提示错误,就用v2rayN生成一个。

mirror.ghproxy.com/https://raw.githubusercontent.com/cmliu/edgetunnel/main/_worker.js

1717256537149

绑定域名

都被墙了,绑自己的域名吧。

1717294728496

访问

使用自定义域名访问,如上图示例试 worker-steep.jackadam.top/uuid。就能看到你的地址了。

1717294958286

使用

这个就简单了,clash,sing-box,都提供了订阅地址。

在对应客户端订阅即可。

如果想无感翻墙,放入路由器,我是没搞定sing-box,所以还是用了老方法 openclash,订阅clash订阅。

Built with Hugo
主题 StackJimmy 设计