1、下载CT模板 https://downloads.immortalwrt.org/ https://downloads.immortalwrt.org/releases/24.10.0-rc2/targets/x86/64/immortalwrt-24.10.0-rc2-x86-64-rootfs.tar.gz https://downloads.immortalwrt.org/releases/24.10.0/targets/x86/64/immortalwrt-24.10.0-x86-64-rootfs.tar.gz
2、创建LXC
pct create 112 local:vztmpl/immortalwrt-24.10.0-rc2-x86-64-rootfs.tar.gz
–rootfs local-lvm:2
–ostype unmanaged
–hostname ImmortalWrt
–arch amd64
–cores 2
–memory 1024
–swap 0
-net0 bridge=vmbr0,name=eth0
-net1 bridge=vmbr1,name=eth1
-net2 bridge=vmbr2,name=eth2
3、修改LXC配置 选项->功能里->全部开启 nano /etc/pve/lxc/110.conf 增加
features: nesting=1 lxc.cgroup2.devices.allow: c 108:0 rwm lxc.cgroup2.devices.allow: c 10:200 rwm lxc.mount.auto: proc:mixed sys:ro cgroup:mixed lxc.mount.entry: /dev/net/tun dev/net/tun none rw,bind,create=file 0 0 lxc.mount.entry: /dev/ppp dev/ppp none rw,bind,optional,create=file 0 0
选项->功能里->全部开启
4、OpenWrt配置网络 vim /etc/config/network /etc/init.d/network restart
5、配置lan网关、dns地址
6、修改仓库镜像 sed -i ’s_https?://downloads.openwrt.org_https://mirrors.cernet.edu.cn/openwrt_' /etc/opkg/distfeeds.conf libustream-openssl ca-bundle ca-certificates
7、重新安装插件 opkg list-installed luci-i18n-base-zh-cn 25.011.06450~2520588 nano - 8.3-r1 openssh-sftp-server 9.9_p1-r1
netbird - 0.30.3-r1 tailscale - 1.78.1-r1 zerotier 1.14.1-r1 cloudflared - 2024.12.1-r1 luci-app-cloudflared - 1.2-r1 luci-i18n-cloudflared-zh-cn - 24.357.20500~a72dc64
nlbwmon - 2024.02.21c7616bcf-r1
luci-app-nlbwmon - 24.357.20500a72dc64
luci-i18n-nlbwmon-zh-cn - 24.357.20500~a72dc64
vnstat2 2.12-r1
luci-app-vnstat2 25.040.36223e888ad7
luci-i18n-vnstat2-zh-cn 25.040.36223e888ad7
miniupnpc 2.2.8-r1
libminiupnpc 2.2.8-r1
miniupnpd-nftables 2.3.7-r1
luci-app-upnp 25.040.36223e888ad7
luci-i18n-upnp-zh-cn 25.040.36223e888ad7
ttyd 1.7.3-r1
luci-app-ttyd 24.362.2005134c1f40
luci-i18n-ttyd-zh-cn 24.362.2005134c1f40
fdisk parted cfdisk block-mount kmod-usb-storage luci-mod-admin-full
没有安装
luci-theme-argon 25.040.36223e888ad7
luci-app-argon-config 25.040.36223e888ad7
luci-i18n-argon-config-zh-cn 25.040.36223~e888ad7
smartdns 46-r1 luci-app-smartdns 1.2024.45-r1 luci-i18n-smartdns-zh-cn 24.362.20051~34c1f40
https://github.com/xptsp/openwrt-twin-bcrypt-js https://github.com/xptsp/luci-app-adguardhome
mt7612 wifi
opkg update usbutils opkg install usb-modeswitch nano /etc/rc.local /bin/sleep 20 /usr/bin/usbreset 0e8d:2870 /bin/sleep 5 /sbin/usbmode -s -c /etc/usb-mode.json