GFW

前面写了自编译 OpenWRT 固件,本来玩的好好的,结果最主要的两个插件据说开发者删库了,只能重新找办法升级了。
轻松编译Openwrt固件支持V2ray和Trojan-上篇
轻松编译Openwrt固件支持V2ray和Trojan-下篇

都回来了,方法还是好用的
如果只要更新 Passwall 和 SSR-plus,还有 Clash,那就直接到这里下载 ipk 吧(我编译的插件都不支持 SSR 或 SS):
https://share.mianao.info/Router/X86-64/
可以在 系统->文件传输,直接上传安装 ipk 软件包,如果 openwrt 固件没有这个,那就自行上传了 ssh 命令安装吧。
上面的文件夹里我也分享了自用的系统固件,一般来说都是比较稳定的,硬件就是去年的那个蜗牛星际的主板。
最近看到的 ipk 下载站,还有 openwrt 固件,更新比我快,多:
https://op.dllkids.xyz
下面这个甚至可以网站上自定义固件:
https://op.supes.top
这个的固件大而全:
https://openwrt.mpdn.fun:8443
更新快:https://github.com/zhangguanzhang/Actions-OpenWrt
以下就可以不用看了。

本地自编译

编译 Lienol 源

如果用的源码:https://github.com/Lienol/openwrt
这个源里有很多常用软件包,大家可以去 fork 下:
https://github.com/kenzok8/openwrt-packages

添加下面代码到 openwrt 或 lede 源码根目录下的 feeds.conf.default 文件:

src-git kenzo https://github.com/kenzok8/openwrt-packages
src-git small https://github.com/kenzok8/small

或者不打开文件编辑直接输入以下命令可以添加到feeds.conf.default 文件:

sed -i '$a src-git kenzo https://github.com/kenzok8/openwrt-packages' feeds.conf.default
sed -i '$a src-git small https://github.com/kenzok8/small' feeds.conf.default

或者,直接 clone 到 openwrt/package 目录下:

git clone https://github.com/kenzok8/openwrt-packages.git
git clone https://github.com/kenzok8/small.git

然后执行:

./scripts/feeds update -a
./scripts/feeds install -a

接着编译 Passwall 和 SSR-plus 就都有了。

Lean's 源

如果用的源码:https://github.com/coolsnowwolf/lede
同样的,也可以直接下载这个源的软件包,small 是依赖包:

cd lede/package
git clone https://github.com/kenzok8/openwrt-packages.git
git clone https://github.com/kenzok8/small.git

然后执行:

./scripts/feeds update -a
./scripts/feeds install -a

接着编译 Passwall 和 SSR-plus 就都有了。

注:
如果 feeds update 出现一堆类似下面的警告:

WARNING: Makefile 'package/lean/shadowsocksR-libev-full/Makefile' has a dependency on 'libpcre', which does not exist

解决办法就是删掉 feeds 整个文件夹,在 lede 或 openwrt 目录下执行 rm -rf ./feeds,然后再 update。

GitHub 在线编译

参考:https://p3terx.com/archives/build-openwrt-with-github-actions.html
上面这篇文章写得很详细了,我的操作过程说明就直接删除了。

说明:

  1. 默认情况下触发编译工作流程有两种方式,发布 release 和修改 .config 文件,所以无论是点发布还是修改 .config 都会自动开始编译。当发现仓库源码有更新时,在 releases 页面发布一个版本就会触发编译的工作流程,使用最新源码进行编译最新固件了。
  2. 本方法实际上就是将前面的步骤在本地电脑进行,到最后一步编译命令 make V=s 时交给了 GitHub 自动操作,适合网络问题多的情况,后续更新编译也方便。可以看参考文章自定义更多内容。
  3. 建议申请新 GitHub 账号,我的账号 actions 功能就被禁用了。
Pay by WeChat

Pay by WeChat

Comment/ Cancel Comment

  1. gigi gigi
    Chrome 107

    dllkids.xyz/我下载了1个固件,然后使用1天,就被封了。 不知道是啥原因。。。

    1. Harry Harry
      Chrome 107

      封和固件没啥关系,我的IP没被封过,但经常端口被封

  2. 卡卡 卡卡
    Chrome 102

    cannot find dependency kernel (= 5.10.115-1-bce8e44f7254c1ead36f72c6d346f19e) for kmod-nf-reject

    你好 安装的时候报这个错 是内核版本和你编译的不一致的原因吗

    1. Harry Harry
      Chrome 101

      有可能,我也是半桶水。
      到这里下载插件试试:op.dllkids.xyz

  3. zongchao zongchao
    Chrome 99

    昨晚还能访问,今天就404了

    1. Harry Harry
      Chrome 99

      哪个链接404了?

  4. FOO FOO
    Firefox 94

    非常感谢分享。。。。。。。。。。。。。。。

  5. eric eric
    Chrome 89

    https://share.mianao.info/Router/X86-64/openwrt-x86-64/

    下载的包 无法打开web页面, 一直在loading

    1. Harry Harry
      Chrome 91

      都是吗?我一直在用啊。换别人的试试吧,反正openwrt各种版本多的是

  6. molezz molezz
    Chrome 89

    ok, 按这个试下云编译

  7. tiger tiger
    Safari 14

    感谢大神的分享,ssr终于可以用了!网上找了很多贴子都没有用,大神的这个一次搞定!

  8. xiaoheizi xiaoheizi
    Chrome 88

    你好,请教一个问题,我再编译 Lienol时,安装方法二加入了ssrplus和passwall,进入编译选项时,把这两个插件的选项全部打星号的,(这两个插件编译时的选项应该选那些,是全部选择吗?),最后编译出错。

    1. Harry Harry
      Chrome 88

      我一般不选择SSR相关的选项,不过估计多半不是因为这个吧,可根据出错信息去搜下,我也不太懂

      1. xiaoheizi xiaoheizi
        Chrome 88

        好的,谢谢你

  9. lk lk
    Chrome 87

    网页不打开了,有新的网址吗?

  10. mjj mjj
    Chrome 86

    https://share.mianao.info/Router/X86-64/
    链接失效了,麻烦更新下。谢谢!

    1. Harry Harry
      Chrome 87

      fast.io不提供服务了,我只能再换一个了

  11. Clarence.K Clarence.K
    Chrome 87

    请问,我用的是R2S,上面有passwall,能正常使用 v2ray ,但不支持最新的xray,想要更新,passwall, 是直接安装一次你的连接里的“luci-app-passwall_4-3_all.ipk” 么?

    1. Harry Harry
      Chrome 87

      不能的,这个是x86的,r2s是ARM的

  12. Zeng sipeng Zeng sipeng
    Chrome 86

    文件不存在了,考虑一下度云,天翼云,蓝奏云吧!感谢

    1. Harry Harry
      Chrome 86

      改了文件夹名字,忘记改链接了。百度天翼会删文件,蓝奏全广告

  13. dkstryc dkstryc
    Chrome 85

    您好,安装您编译好的SSR-Plus.ipk,最后会提示uci entry not found。订阅url填写好,一点更新订阅就变回空白,无法订阅,手动添加服务器的是可以正常使用的,只是GFW模式用不了,别的都OK,请教下原因?另外180-9更新了,不忙的时候可以编译下新的了:)

    1. Harry Harry
      Chrome 86

      这个我不知道呢,一个是SSR插件我不怎么用,另一个是我从来没有订阅过。要不要回退其他版本试试

  14. wan wan
    Chrome 77

    找到了,是 openwrt-x86-64-combined-squashfs-8-23.img.gz 吧?

    1. Harry Harry
      Chrome 85

      是,直接用这个升级就好了

  15. dkstryc dkstryc
    Chrome 85

    您好,下载了您提供的x86-64的SSR-plus,原版op安装的时候提示缺少依赖,麻烦能在下载地址里也提供一下吗,感谢:)

    1. Harry Harry
      Chrome 85

      这依赖就繁琐了,我都不知道具体有哪些。我上传了一个固件,可以试一下,常用插件都有,不喜欢可以删除的

      1. dkstryc dkstryc
        Chrome 85

        感谢,下载来试一下,我在一个google云盘把需要的插件下载全了,安装也成功了,但是一直显示not runing,服务启动不起来。

      2. wan wan
        Chrome 77

        地址有吗,谢谢。

        1. Harry Harry
          Chrome 86

          我分享的链接文件夹里有,你试试

          1. wan wan
            Chrome 77

            分享的链接文件夹 找不到,可以再贴下吗,谢谢。

  16. wan wan
    Chrome 77

    依赖找到了,可是在安装 libltdl7_2.4.6-2_x86_64 提示 Package size mismatch: libltdl7 is 15500 bytes, expecting 15508 bytes。

    1. Harry Harry
      Chrome 85

      这种比较麻烦,最后是升级一下固件,直接支持passwall或SSRplus的,我上传了一份可以试一下

  17. wan wan
    Chrome 77

    你好,请问,我在x86软路由安装 luci-app-passwall: 提示出错

    trojan-plustrojan-gobrookchinadns-ngopkg_install_cmd: Cannot install package luci-app-passwall.

    opkg update 更新,出现一个 * opkg_download: Failed to download https://openwrt.proxy.ustclug.org/snapshots/packages/x86_64/helloworld/Packages.gz, wget returned 8.
    哪里可以下载x86的trojan-plus trojan-go brook chinadns-ng?

    1. Harry Harry
      Chrome 86

      之前安装过passwall吗?如果有我就不知道原因了,如果没有是否是这个插件还有一些依赖,那就要更新一下openwrt了

  18. ZHOU WEI ZHOU WEI
    Chrome 85

    请教下,为了支持VLESS协议,我编译了coolwoolf的lede,也加了最新的linoel大神的passwall,但是配置好了,外网还是不通,手机连是通的。请问你在路由器上有试过吗

    1. Harry Harry
      Chrome 85

      有的,我测试过vless,新版的passwall没问题
      填写时下面的域名,证书路径,ws host都不用写,一些方框也不勾试试

  19. layueee zhang layueee zhang
    Edge 18

    请问一下,这个版本没有负载均衡吗?

    1. Harry Harry
      Chrome 85

      有的,从我用开始就有

  20. 咸鱼 咸鱼
    Chrome 85

    想问下arm的openwrt,怎么装helloworld啊,我路由器原来有这个,换了r2s当软路由后,里面只有passwall,总感觉不稳的样子,昨天还好好的,今天起来连订阅链接都莫名其妙没了

    1. Harry Harry
      Chrome 84

      这得找对应ARM的固件了,不然就自己编译加入helloworld插件

  21. Chen Chen
    Safari < 11

    请问openwrt的passwall跟see plus,哪一个可以搭建server

    1. Harry Harry
      Chrome 84

      两个都可以

      1. Chen Chen
        Safari < 11

        奇怪、因为我装了passwall找不到服务端。只能添加节点当Client

  22. K2p K2p
    Chrome 84

    你好,请问这个编译好的passwall插件ipk是不是不支持k2p的openwrt安装?

    1. Harry Harry
      Chrome 84

      不支持,这是x86的

  23. hansun hansun
    Chrome 81

    我在“https://share.mianao.info/Router/X86-64/”下载的IPK文件,我想在koolshare lede 2.33上安装,但是提示需要依赖包,请问需要如何添加,下面是错误提示:
    root@Openwrt:~# opkg install luci-app-ssr-plus_176-7_all.ipk
    Installing luci-app-ssr-plus (176-7) to root...
    Collected errors:

    satisfy_dependencies_for: Cannot satisfy the following dependencies for luci-app-ssr-plus:shadowsocksr-libev-altcoreutils-base64pdnsd-altmicrosocksdns2socksshadowsocks-libev-ss-localshadowsocksr-libev-ssr-localshadowsocks-libev-ss-redirsimple-obfsv2ray-pluginv2raytrojanipt2socksredsocks2kcptun-clientshadowsocksr-libev-serveropkg_install_cmd: Cannot install package luci-app-ssr-plus.
    1. harry harry
      Chrome 81

      koolshare的安装版本不在这里,请看router另外一个文件夹

      1. hansun hansun
        Chrome 83

        意思是koolshare lede 无法安装“passwall”“ssr-plus”等插件是吗?

        1. harry harry
          Chrome 81

          应该是,我现在没用koolshare的固件,因为他们也不开源所以不知道

  24. whfweb whfweb
    Chrome 84

    以上几种方式都不能顺利把passwall整合进系统。
    编译出错代码:
    Configuring luci-i18n-firewall-zh-cn.
    Configuring luci-i18n-nlbwmon-zh-cn.
    Configuring dnsmasq-full.
    package/Makefile:65: recipe for target 'package/install' failed
    make[2]: Leaving directory '/workdir/openwrt'
    package/Makefile:108: recipe for target '/workdir/openwrt/staging_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/stamp/.package_install' failed
    make[1]: Leaving directory '/workdir/openwrt'
    /workdir/openwrt/include/toplevel.mk:225: recipe for target 'world' failed
    make: * [world] Error 2

    [error]Process completed with exit code 2.

    这个是用的lienol的源码,方式二;

    1. harry harry
      Chrome 81

      编译出错的问题我是帮不了你,我自己都不懂,只会依葫芦画瓢。只要别人没问题我就尽量和别人环境一样,不行就全删了重来

    2. whfweb whfweb
      Chrome 84

      feeds.conf.default内容:

      src-git routing https://git.openwrt.org/feed/routing.git;openwrt-19.07
      src-git telephony https://git.openwrt.org/feed/telephony.git;openwrt-19.07
      src-git packages https://github.com/Lienol/openwrt-packages.git;dev-19.07
      src-git luci https://github.com/Lienol/openwrt-luci.git;dev-18.06
      src-git lienol https://github.com/Lienol/openwrt-package

      diy-part1.sh文件:

      !/bin/bash=============================================================https://github.com/P3TERX/Actions-OpenWrtFile name: diy-part1.shDescription: OpenWrt DIY script part 1 (Before Update feeds)Lisence: MITAuthor: P3TERXBlog: https://p3terx.com=============================================================Uncomment a feed sourcesed -i 's/^#(.*helloworld)/\1/' feeds.conf.defaultAdd a feed sourcesed -i '$a src-git lienol https://github.com/Lienol/openwrt-package' feeds.conf.default

      git clone https://github.com/kenzok8/openwrt-packages.git package/package
      git clone https://github.com/kenzok8/small.git package/small

This is just a placeholder img.