openWRT-MiWiFi

atlassian private:

https://intbird.atlassian.net/wiki/spaces/~644199061/pages/431030273/openwrt-fly

flastboot:

cat /proc/cpuinfo

https://d.miwifi.com/rom/ssh?

openwrt:

https://openwrt.org/toh/start

packages:

http://openwrt-dist.sourceforge.net/packages/

sftp:

bash:

opkg update && opkg install openssh-sftp-server


lcui:

1. upload ipk from admin web

2. opkg install /tmp/upload.ipk

opkg:

http://wiki.openmoko.org/wiki/Opkg/Documentation

opkg --nodeps install
opkg install --force-overwrite

opkg update

opkg install luci-i18n-base-*
opkg install openssh-sftp-server
opkg install luci-compat

opkg install zerotier_*.ipk
opkg --force-removal-of-dependent-packages install apache

Mount UDisk

https://openwrt.org/docs/guide-user/services/nas/usb-storage-samba-webinterface

Scheduled Tasks (Reboot)

https://openwrt.org/docs/guide-user/base-system/cron

cat /etc/crontabs/root

30 4 * * * sleep 70 && touch /etc/banner && reboot

0 0 * * * 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

Net:

/etc/config/zerotier
option enabled 1

service zerotier start

zerotier-cli join

Proxy

s:

https://openwrt.org/docs/guide-user/services/proxy/start

https://launchpad.net/ubuntu/+source/simple-obfs

https://github.com/shadowsocks/v2ray-plugin/releases/tag/v1.3.1

testing: obfs-local -h & v2ray-plugin

v:

github: core & cui & luci-compat & config & tansport

testing: vfly -config config.json

dev-log:
/usr/bin/v2ray --config=/var/etc/v2ray/v2ray.main.json

China DNS:

https://github.com/shadowsocks/ChinaDNS

http://openwrt-dist.sourceforge.net/archives/ChinaDNS/1.3.3-1/current/mipsel_24kc/ChinaDNS_1.3.3-1_mipsel_24kc.ipk

OpenWrt Shdowsocks 逻辑架构图

DNS Settings

!!! s speed than v, so…

!!! DNS resolve must be use ip direct connect

!!! Bypass other devices

!!! Bypass local network ips

cat “192.168.1.0/24” >> /etc/chinadns_chnroute.txt

&

192.168.1.0/24
192.168.20.0/24
192.168.192.0/24
1.1.1.1
8.8.8.8