OpenWRT for LEDE

Linux Embedded Development Environment(LEDE)
https://downloads.lede-project.org/snapshots/targets/ramips/mt7620/

LEDE

Miwifi

https://downloads.lede-project.org/snapshots/targets/ramips/mt7620/lede-ramips-mt7620-miwifi-mini-squashfs-sysupgrade.bin

SSH

192.168.1.1
root
uci set network.wan.proto=pppoe
uci set network.wan.username=宽带账号
uci set network.wan.password=宽带密码
uci commit
/etc/init.d/network restart
ping baidu.com

luci 界面

opkg update
opkg install luci luci-i18n-base-zh-cn

浏览器

http://192.168.1.1
root
passwd

USB & Samba & FTP:

opkg update
opkg install kmod-usb-core mount-utils block-mount ntfs-3g kmod-fs-ntfs kmod-usb2 kmod-usb-ohci kmod-usb-uhci kmod-usb-storage kmod-usb-storage-extras kmod-fs-ext4 kmod-fs-vfat
opkg install luci-app-samba luci-i18n-samba-zh-cn
opkg install vsftpd luci-app-vsftpd
mount /dev/sda /mnt 挂载 U 盘
mkfs.ext3 /dev/sda 格式化 U 盘
df -h              磁盘空间
fdisk -l           挂载情况
//opkg install kmod-ata-marvell-sata 
//opkg install usbutils fdisk e2fsprogs

框架 & 源

opkg print-architecture | awk '{print $2}'
└─ mipsel_24kc

### 不稳定 ###
src/gz openwrt_dist http://openwrt-dist.sourceforge.net/packages/LEDE/base/mipsel_24kc
src/gz openwrt_dist_luci http://openwrt-dist.sourceforge.net/packages/LEDE/luci

软件

# 下载
#  ChinaDNS
http://openwrt-dist.sourceforge.net/packages/LEDE/base/mipsel_24kc/ChinaDNS_1.3.2-4_mipsel_24kc.ipk
http://openwrt-dist.sourceforge.net/packages/LEDE/luci/luci-app-chinadns_1.6.0-1_all.ipk

# DNS-forwarder
http://openwrt-dist.sourceforge.net/packages/LEDE/base/mipsel_24kc/dns-forwarder_1.1.1-1_mipsel_24kc.ipk
http://openwrt-dist.sourceforge.net/packages/LEDE/luci/luci-app-dns-forwarder_1.6.0-1_all.ipk

# Shadowsocks-libev
http://openwrt-dist.sourceforge.net/packages/LEDE/base/mipsel_24kc/shadowsocks-libev_2.6.0-1_mipsel_24kc.ipk
http://openwrt-dist.sourceforge.net/packages/LEDE/luci/luci-app-shadowsocks_1.3.8-1_all.ipk

# 安装
opkg install ChinaDNS_1.3.2-4_mipsel_24kc.ipk
opkg install luci-app-chinadns_1.6.0-1_all.ipk
opkg install dns-forwarder_1.1.1-1_mipsel_24kc.ipk
opkg install luci-app-dns-forwarder_1.6.0-1_all.ipk
opkg install shadowsocks-libev_2.6.0-1_mipsel_24kc.ipk
opkg install luci-app-shadowsocks_1.3.8-1_all.ipk

依赖

# 下载
http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/base/libopenssl_1.0.2j-1_mipsel_24kc.ipk
http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/base/zlib_1.2.9-1_mipsel_24kc.ipk
http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/packages/libpcre_8.39-1_mipsel_24kc.ipk
http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/base/ipset_6.30-1_mipsel_24kc.ipk
http://downloads.lede-project.org/snapshots/targets/ramips/mt7620/packages/kmod-ipt-ipset_4.4.39-1_mipsel_24kc.ipk
http://downloads.lede-project.org/snapshots/targets/ramips/mt7620/packages/kmod-nfnetlink_4.4.39-1_mipsel_24kc.ipk
http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/base/libmnl_1.0.4-1_mipsel_24kc.ipk

# 安装
opkg install libopenssl_1.0.2j-1_mipsel_24kc.ipk
opkg install zlib_1.2.8-1_mipsel_24kc.ipk
opkg install libpcre_8.39-1_mipsel_24kc.ipk
opkg install ipset_6.30-1_mipsel_24kc.ipk
opkg install kmod-ipt-ipset_4.4.39-1_mipsel_24kc.ipk
opkg install kmod-nfnetlink_4.4.39-1_mipsel_24kc.ipk
opkg install libmnl_1.0.4-1_mipsel_24kc.ipk

路由表

* 3 * * * wget -O- 'http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest' | awk -F\| '/CN\|ipv4/ { printf("%s/%d\n", $4, 32-log($5)/log(2)) }' > /etc/chinadns_chnroute.txt

SS + KCP 配置

├─ChinaDNS
│  ├─上游服务器 - 223.5.5.5,127.0.0.1:5300
│  ├─启用双向过滤 - 启用
│  ├─国内路由表 - chinadns_chnroute.txt
│  └─本地端口- 5353
├─DNS转发
│  ├─上游DNS - 8.8.8.8
│  ├─监听地址 - 127.0.0.1
│  └─监听端口 - 5300
├─Kcptun
│  ├─总览
│  ├─设置
│  │  ├─Kcptun客户端(别名)
│  │  ├─以该用户启动 - root
│  │  ├─启用定时重启任务
│  │  ├─启用日志记录
│  │  ├─启用服务端 - 关
│  │  ├─启用进程监控
│  │  ├─客户端可执行文件(路径可自定义)
│  │  └─日志文件夹
│  └─配置文件
│      ├─内置模式 - 对应服务器端
│      ├─别名
│      ├─加密方式 - 对应服务器端
│      ├─服务器地址 - ip冒号port
│      ├─本地监听地址 - 127.0.0.1:10800
│      └─禁用压缩 - 建议路由关闭压缩
└─Shadowsocks-libev
    ├─基本设置
    │  ├─Socks5 - 停用
    │  ├─端口转发 - 启用
    │  │  ├─服务器 - 127.0.0.1
    │  │  ├─本地端口 - 5300
    │  │  └─目标地址 - 8.8.4.4:53
    │  └─透明代理 - 启用
    │      ├─UDP服务器 - 默认
    │      ├─主服务器 - 127.0.0.1
    │      └─本地端口 - 1080
    ├─服务器管理
    │  ├─加密方式 - 10800
    │  ├─头部混淆 - 停用
    │  ├─服务器地址 - 127.0.0.1
    │  └─服务器端口 - 127.0.0.1
    └─访问控制
        └─被忽略IP列表 - ChinaDNS路由表

# Windows 树形命令:tree /F >C:\Users\Administrator\Desktop\tree.txt

Website

LEDE:
https://downloads.lede-project.org

OpenWRT-Shadowsocks-libev:
http://openwrt-dist.sourceforge.net

luci-app-Shadowsocks:
https://github.com/kuoruan/luci-app-kcptun/releases

OpenWRT-Kcptun:
https://github.com/bettermanbao/openwrt-kcptun/releases

Kcptun-all:
https://github.com/xtaci/kcptun/releases

WIFI 定时(不支持LEDE):
http://openwrt.razvi.ro/wifischedule/