使用 Firmware Selector 构建openwrt镜像

openwrt: https://firmware-selector.openwrt.org immortalwrt: https://firmware-selector.immortalwrt.org

# 系统缺失中文语言包
luci-i18n-base-zh-cn
luci-i18n-package-manager-zh-cn
luci-i18n-firewall-zh-cn

# 系统升级
luci-i18n-attendedsysupgrade-zh-cn

# 文件网络共享相关
luci-i18n-samba4-zh-cn

# 硬盘休眠
luci-i18n-hd-idle-zh-cn

# 文件系统
kmod-fs-xfs

# 上网相关(最后两个immortalwrt才有)
luci-i18n-v2raya-zh-cn v2ray-geoip v2ray-geosite
luci-i18n-passwall-zh-cn
luci-app-openclash

# 其他工具
lsblk
luci-i18n-ttyd-zh-cn
kmod-usb-storage-uas

openwrt默认的 lan ip 为192.168.1.1,一般会和家中的上游光猫网络ip冲突。

uci set network.lan.ipaddr='192.168.100.1'
# r2s对调网口
uci del network.cfg030f15.ports
uci add_list network.cfg030f15.ports='eth0'
uci set network.wan.device='eth1'
uci set network.wan6.device='eth1'
# 提交网络配置
uci commit network

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