OpenWrt下手动设置静态DHCP及网络设置

方法一 修改/etc/config/dhcp,增加如下的内容: config host option ip ‘192.168.1.2’ option mac ’00:11:22:33:44:55′ option name ‘mypc’ 方法二 dnsmasq读取 /etc/ether /etc/init.d/dnsmasq -> option readethers 1 在/etc/ether

- 阅读全文 -

OpenWRT防火墙iptables常用设置

iptables -I FORWARD -m mac --mac-source 34:80:b3:3d:50:41 -j DROP iptables -I FORWARD -m mac --mac-source 34:80:b3:3d:50:41 -j ACCEPT #指定IP地址每天0:00-19:00和19:30-23:59 禁止访问网络,保证孩子每天指定时间观看电视节目。 iptabl

- 阅读全文 -

Openwrt中DNSCrypt设置

摘自:Wiki Openwrt DNSCrypt DNSCrypt offers a way to protect clients against attacks related to the modification and manipulation of DNS traffic — The main objective of DNSCrypt is authentication of the

- 阅读全文 -

iptables禁止某个mac地址上网

iptables -I FORWARD  -m mac --mac-source c0:64:c6:cc:3e:a0 -j DROP 上面这条命令测试过是可行,禁止这个mac地址上网,马上禁止马上生效 iptables -I FORWARD  -m mac --mac-source c0:64:c6:cc:3e:a0 -j ACCEPT 解除禁止 下面的不一定对可以参考 iptables -I F

- 阅读全文 -

把路由器改装成git服务器(OpenWRT环境的GIT服务器搭建)

硬件 一台能够安装OpenWRT(或者Linux系统的)路由器,我用的是一台老设备,Netgear WND3700V1。 视你日常工作量大小,准备一个空间足够的U盘,最好是高速的,当然这个高速是指能匹配路由器USB口的标准就足够。 系统软件 成文时,OpenWRT的版本是18.06.0,其它版本应当也可以,OpenWRT挺早就支持git软件包了。下载地址在:http://downloads.o

- 阅读全文 -