BlueXIII's Blog

热爱技术,持续学习

0%

小米路由器刷openwrt

下载PandoraBox固件

http://downloads.pandorabox.com.cn/pandorabox/

小米路由刷ROM

mtd -r write /tmp/PandoraBox-ralink-xiaomi-mini-r355-20150114.bin firmware

设置时间

date -s “2016-11-11 19:52:00”

配置opkg源及兼容性

vi /etc/opkg.conf
src/gz pandorabox http://downloads.openwrt.org.cn/PandoraBox/ralink/mt7620/packages
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
arch all 100
arch noarch 200
arch ralink 300
arch ramips_24kec 400

查看连接主机

cat /proc/net/arp
cat /tmp/dhcp.leases

查看连接数

netstat -na|grep ESTABLISHED|wc -l
netstat -na|grep 192.168.32.142|wc -l

开机自启脚本

/etc/rc.local

限制MAC地址

iptables -A INPUT -m mac –mac-source 00:0F:EA:91:04:08 -j DROP

配置ChinaDNS

https://github.com/clowwindy/ChinaDNS

配置RedSocks

https://github.com/darkk/redsocks