闲置一个树莓派4B,正好之前的N1退休了,于是在给树莓派4B装上了OpenWrt,作为旁路由替代N1的工作。
具体流程包括:
配置如下:
默认版本是没有开启WiFi的,连接起来还得要网线,索性直接用官网提供的固件自定义功能开启WiFi功能。
电机https://firmware-selector.openwrt.org,输入Raspberry Pi 4B/400/CM4 (64bit)
,一定要是64位的,不然软件会不兼容,后续性能也会受影响。版本选择最新的稳定版,不要选择snapshot版本。
opkg install cfdisk fdisk block-mount
https://www.right.com.cn/forum/thread-8254070-1-1.html
https://github.com/kiddin9/openwrt-packages
vi /etc/opkg.conf
删除 opkg配置(/etc/opkg.conf) 中的 option check_signature
opkg install luci-app-xxxxx
2024-03-13 15:17:19: 系统未安装iptables或ipset或Dnsmasq没有开启ipset支持,无法透明代理!
2024-03-13 15:17:19: 透明代理基础依赖 kmod-nft-socket 未安装...
2024-03-13 15:17:19: 透明代理基础依赖 kmod-nft-tproxy 未安装...
opkg remove dnsmasq && opkg install dnsmasq-full
选择