openwrt编译ssr

需求

弄了个软路由,openwrt。
CPU : MediaTek MT7621A
是什么 mipsel_24kc 架构的。搞不懂。
刷了几天终于把能上谷歌的插件装上了。
一开始用openclash,结果装上配置太复杂,玩不转。
然后又去找其他的替代软件,发现ShadowSocksR Plus+ 和符合我的需求。简单粗暴。

编译

建议使用Ubuntu18.04,我用的Debian10也可以,CPU > 1 ,内存 >1。我用的4G 2C。全程建议在能上外网的环境下进行。
在LEDE中编译:

# 全程不能用root操作
sudo apt-get update
sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3 python2.7 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib antlr3 gperf wget curl swig rsync

# https://github.com/Lienol/openwrt
# https://github.com/gl-inet/openwrt.git
# https://github.com/coolsnowwolf/lede 看说明
# 二次编译 和 重新配置 查看仓库README
git clone https://github.com/coolsnowwolf/lede
cd  lede/package
git clone https://github.com/kenzok8/openwrt-packages.git
git clone https://github.com/kenzok8/small.git

cd  ../
./scripts/feeds clean && ./scripts/feeds update -a 
./scripts/feeds install -a
# 在弹出的菜单中,通过前三个选择到指定的CPU型号,在LUCI里选择要编译的应用。配置保存为 ".config"文件
make menuconfig

# 下载dl库(国内请尽量全局科学上网)
make -j8 download V=s
# -j1 后面是线程数。第一次编译推荐用单线程
# 如果之前用 proxychains4 ,那这一步不能用 proxychains4 。
make -j1 V=s

make menuconfig 这一步要注意,Luci->Application中luci-app-passwall 的NaiveProxy ,我勾选上会报错,需要取消勾选:

 <M> luci-app-passwall.............................. LuCI support for PassWall
 [ ] Include NaiveProxy    

安装

bin目录下会有很多包
直接安装 luci-app-ssr-plus_181-4_all.ipk会报少依赖:

缺啥依赖 就用 find 命令去bin/目录下找,找到拉过去安装,直到完全满足依赖。

luci-app-ssr-plus:

  • shadowsocksr-libev-alt
  • pdnsd-alt
  • microsocks
  • dns2socks
  • shadowsocksr-libev-ssr-local
  • tcping
  • shadowsocks-libev-ss-local
  • shadowsocks-libev-ss-redir
  • simple-obfs
  • shadowsocks-rust-sslocal
  • simple-obfs
  • v2ray-plugin
  • xray-core
  • trojan
  • ipt2socks
  • redsocks2
  • kcptun-client
  • shadowsocksr-libev-server
  • shadowsocksr-libev-alt
  • shadowsocks-libev-ss-local
  • shadowsocks-libev-ss-redir
  • simple-obfs

passwall:

  • shadowsocks-libev-ss-server
  • xray-geodata
  • trojan-plus
  • trojan-go
  • naiveproxy
  • brook
  • chinadns-ng

vssr:

  • lua-maxminddb
  • xray-plugin

还要额外安装 luci-compat

我编译好的:
https://mc.73007300.xyz/files/router/

Leave a Reply

Your email address will not be published. Required fields are marked *