https://www.gravatar.com/avatar/5f48da38e786436afece6f2e46196202?s=240&d=mp

Linux Shell

在 Openwrt 中,禁止某个设备访问外网/内网

最近刷了某个AP固件,自带了一些云管理功能,发现它会收集mac地址并上传到服务器以及通过访问一些网站来达到检测网络状态的目的,个人只想它安安静静的做个AP就好了,不需要这些乱七八糟的功能,所以就在openwrt主路由上通过防火墙规则的方式来禁止它访问外网。

通过iptables实现端口转发和内网共享上网

原文:http://wwdhks.blog.51cto.com/839773/1154032

本文作者:张天成 zhangtiancheng#gmail.com

iptables是一个Linux下优秀的nat+防火墙工具,我使用该工具以较低配置的传统pc配置了一个灵活强劲的防火墙+nat系统,小有心得,看了网上也有很多这方面的文章,但是似乎要么说的比较少,要么就是比较偏,内容不全,容易误导,我研究了一段时间的iptables同时也用了很久,有点滴经验,写来供大家参考,同时也备日后自己翻阅。

Air780e 短信转发

注意

  • 此脚本会消耗流量

  • 在更新日志中有提到:

V1002已支持SMS中英文短信收发, 支持长短信自动合并. 但值得提醒的是, 电信卡不可用

  • 我用联通卡测试成功

准备工作

  1. 请先阅读三遍官方文档: 烧录教程
  2. 刷机工具下载:Luatools

刷机步骤

  1. 先下载固件

Understanding Redis Background Memory Usage

Author: Tiago Ilieve

Via: Here

A closer look at how the Linux kernel influences Redis memory management

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.