xray/sb/mihomo install server/keenetic
build by qp-io
Установка на сервер
bash <(curl -sL https://raw.githubusercontent.com/qp-io/qp-io.github.io/refs/heads/main/xray/install.sh)
Установка xray на keenetic
opkg update && opkg install xray && ndmc -c interface Proxy0 && ndmc -c interface Proxy0 proxy protocol socks5 && ndmc -c interface Proxy0 proxy socks5-udp && ndmc -c interface Proxy0 proxy upstream 127.0.0.1 1080 && ndmc -c interface Proxy0 description Xray && ndmc -c interface Proxy0 ip global auto && ndmc -c interface Proxy0 up && ndmc -c system configuration save
Установка sing-box на keenetic
opkg update && opkg install sing-box-go && ndmc -c interface Proxy0 && ndmc -c interface Proxy0 proxy protocol socks5 && ndmc -c interface Proxy0 proxy socks5-udp && ndmc -c interface Proxy0 proxy upstream 127.0.0.1 1080 && ndmc -c interface Proxy0 description Sing-box && ndmc -c interface Proxy0 ip global auto && ndmc -c interface Proxy0 up && ndmc -c system configuration save
Установка mihomo на keenetic
opkg update && opkg install curl && \ A=$(opkg print-architecture | awk '/^arch/ && $2~/^(mips|mipsel|aarch64)/{sub(/[-_].*/,"",$2);print $2;exit}') && \ U=https://sw.ext.io/ent/$A && \ curl -fsSL "$U/$(curl -fsSL $U/ | grep -o "mihomo_.*_${A}.*\.ipk" | sort -V | tail -1)" \ -o /tmp/m.ipk && \ opkg install /tmp/m.ipk && \ i="interface Proxy0";for x in "" "proxy protocol socks5" "proxy socks5-udp" "proxy upstream 127.0.0.1 7890" "description mihomo" "ip global auto" "up";do ndmc -c "$i $x";done;ndmc -c "system configuration save"
Установка awg 2.0 opkgtun на keenetic
opkg update && opkg install curl && \ A=$(opkg print-architecture | awk '/^arch/ && $2~/^(mips|mipsel|aarch64)/{sub(/[-_].*/,"",$2);print $2;exit}') && \ U="https://sw.ext.io/ent/$A/" && \ TOOLS_FILE=$(curl -fsSL "$U" | grep -o 'amneziawg-tools_[^"]*\.ipk' | sort -V | tail -1) && \ GO_FILE=$(curl -fsSL "$U" | grep -o 'amneziawg-go_[^"]*\.ipk' | sort -V | tail -1) && \ curl -fsSL "${U}${TOOLS_FILE}" -o /tmp/tools.ipk && \ curl -fsSL "${U}${GO_FILE}" -o /tmp/go.ipk && \ opkg install /tmp/tools.ipk && \ opkg install /tmp/go.ipk && \ sed -i '/^TUN_MODE=/c\TUN_MODE=1' /opt/etc/amneziawg.conf