2021年12月21日
注意固件,不同的略有不同https://downloads.openwrt.org/releases/21.02.1/targets/x86/64/openwrt-21.02.1-x86-64-generic-ext4-combined-efi.img.gzgeneric-ext4-combined-efi.img.gzResizing Ext4 rootfsResize Ext4 rootfs for ext4-combined.img.gz:1.工具准备opkg update
o
2021年12月20日
Resizing partitions Be sure to resize the image before resizing partitions when installing in a VM.Install fdisk.Use fdisk to show the partitions.Write down the starting sector address of /dev/sda2 (which is the root partition).Us
2021年03月22日
下载官方固件到 ddwrt中//去除 bootdd if=/tmp/wrd4900v2.bin of=tplink.bin skip=257 bs=512//输入机子,等待重启mtd -r write tplink.bin linux
2020年10月23日
#!/bin/sh
#以下代码可以放到自定义防火墙中.
iptables -F input_lan_rule
i=0;
while true
do
mac=`uci get dhcp.@host[$i].mac 2>/dev/null`;
if [ -z $mac ]; then
 
2020年08月25日
opkg update & opkg list-upgradable | cut -f 1 -d ' ' | xargs opkg upgrade
2018年11月02日
openwrt https://downloads.openwrt.org/releases/18.06.1/targets/dd-wrt ftp://ftp.dd-wrt.com/betas meilin https://drivers.softpedia.com
2017年09月27日
sudo port install 所有差的库,只有openssl 安装了还要提示下面的错误:Please install the openssl library (with development headers)解决方案如下:找到 OpenWrt/include/host-build.mkifeq ($(HOST_OS),Darwin)
HOST_CFLAGS += -I/usr/local/opt/openssl/include
&
2017年07月08日
一台小米路由器rootssh root@192.168.1.1vim /lib/functions.sh 倒数第二行追加如下代码default_postinst() {
return 0
}
default_prerm() {
return 0
}5.&
2017年05月19日
1、Dnsmasq的配置文件是放在 /etc/dnsmasq.conf 中。2、打开编辑,配置:resolv-file=/etc/resolv.dnsmasq.conf,表示dnsmasq 会从这个指定的文件中寻找上游dns服务器。同时取消 strict-order 前面的注册#号。3、检查一下no-hosts前面是不是已经有了#号,默认的情况下是有的,dnsmasq 会首先寻找本地的 hosts 文件再去寻找缓存下来的域名, 最后去上游dns 服务器寻找。4、设置:listen-address