小白常用的openwrt脚本、参数等
防火墙自定义参数添加 iptables -t nat -A PREROUTING -p udp –dport 53 -j REDIRECT –to-ports 53 iptables -t nat -A PREROUTING -p tcp –dport 53 -j REDIRECT –to-ports 53 [ -n “$(command -v ip6tables)” ] && ip6tables -t nat -A PREROUTING -p udp –dport 53 -j REDIRECT –to-ports 53 [ -n “$(command -v ip6tables)” ] && ip6tables -t nat -A PREROUTING -p tcp –dport 53 -j REDIRECT –to-ports 53 网络共享设置 在Samba“编辑模板“里注释掉#invalid users = root, docker 防火墙 iptables –wait -t nat -A DOCKER -p tcp -d 0/0 –dport 8081 -j DNAT –to-destination 172.17.0.2:8081 更新所有 LUCI 插件 opkg list-upgradable | grep luci- | cut -f 1 -d ‘ ‘ | xargs opkg upgrade 如果要更新所有软件,包括 OpenWRT 内核、固件等 opkg list-upgradable | cut -f 1 -d ‘ ‘ | xargs opkg upgrade 解决电视机smb版本低问题 编辑/etc/samba/smb.conf,在[global]下面加上一句 server min protocol = NT1 小米电视似乎只能使用版本较低的 SMB 1.0协议。 通过配置/etc/samba/smb.conf解决,建议直接走openwrt网页设置上的模板上修改,在其中加入一行。 min protocol = NT1 跑分 AES: openssl speed -evp aes-256-gcm ChaCha20-poly1305: openssl speed -evp chacha20-poly130...