在 Openwrt 中,禁止某个设备访问外网/内网
最近刷了某个AP固件,自带了一些云管理功能,发现它会收集mac地址并上传到服务器以及通过访问一些网站来达到检测网络状态的目的,个人只想它安安静静的做个AP就好了,不需要这些乱七八糟的功能,所以就在openwrt主路由上通过防火墙规则的方式来禁止它访问外网。
最近刷了某个AP固件,自带了一些云管理功能,发现它会收集mac地址并上传到服务器以及通过访问一些网站来达到检测网络状态的目的,个人只想它安安静静的做个AP就好了,不需要这些乱七八糟的功能,所以就在openwrt主路由上通过防火墙规则的方式来禁止它访问外网。
原文:http://wwdhks.blog.51cto.com/839773/1154032
本文作者:张天成 zhangtiancheng#gmail.com
iptables是一个Linux下优秀的nat+防火墙工具,我使用该工具以较低配置的传统pc配置了一个灵活强劲的防火墙+nat系统,小有心得,看了网上也有很多这方面的文章,但是似乎要么说的比较少,要么就是比较偏,内容不全,容易误导,我研究了一段时间的iptables同时也用了很久,有点滴经验,写来供大家参考,同时也备日后自己翻阅。
作者: 元气少女郭德纲!! 转自:CentOS7防火墙之–firewalld
在CentOS7系统中集成了多款防火墙管理工具,默认启用的是firewalld(动态防火墙管理器)防火墙管理工具,Firewalld支持CLI(命令行)以及GUI(图形)的两种管理方式。
本文转自由Windfarer撰写的 Go工程化 - 依赖注入
之前在学习 Go 的接口化编程的时候,难以理解,有网友推荐了该文,我拜读之后,茅塞顿开。
Author: Tiago Ilieve
Via: Here
Recently, I was talking to a long-time friend, previous university colleague and former boss, who mentioned the fact that Redis was failing to persist data to disk in low memory conditions. For that reason, he advised to never let a Redis in-memory dataset to be bigger than 50% of the system memory. Thinking about how wasteful that practice would be, it’s interesting to understand why this can happen and look for alternatives to assure that Redis will be able to use as much memory as there’s available to it, without sacrificing its durability.