目前整个互联网环境,被破坏最严重地部分,是 Web 服务体验。当直接破坏难以实现时,就会从流程链的上下游着手,如:DNS 污染。
其它地互联网服务类型,例如:邮件,可能小部分会受到 Web 服务上下游破坏地余震,但整体上基本不受影响。
-- A function in Lua similar to PHP's print_r, from http://luanet.net/lua/function/print_r | |
function print_r ( t ) | |
local print_r_cache={} | |
local function sub_print_r(t,indent) | |
if (print_r_cache[tostring(t)]) then | |
print(indent.."*"..tostring(t)) | |
else | |
print_r_cache[tostring(t)]=true | |
if (type(t)=="table") then |
##ss-redir 的 iptables 配置(透明代理)
透明代理指对客户端透明,客户端不需要进行任何设置就使用了网管设置的代理规则
创建 /etc/ss-redir.json 本地监听 7777
运行ss-redir -v -c /etc/ss-redir.json
iptables -t nat -N SHADOWSOCKS
# 在 nat 表中创建新链
iptables -t nat -A SHADOWSOCKS -p tcp --dport 23596 -j RETURN
# 23596 是 ss 代理服务器的端口,即远程 shadowsocks 服务器提供服务的端口,如果你有多个 ip 可用,但端口一致,就设置这个
/* | |
* RF_Tranceiver.c | |
* | |
* Created: 2012-08-10 15:24:35 | |
* Author: Kalle | |
* Atmega88 | |
*/ | |
#include <avr/io.h> | |
#include <stdio.h> |
/* 这个是linus称为懂指针的人写的链表删除操作. | |
分析在1. (http://coolshell.cn/articles/8990.html) | |
2. (http://wordaligned.org/articles/two-star-programming) | |
*/ | |
#include <stdio.h> | |
typedef struct node { | |
struct node *next; | |
} node; |
--- agent.lua | |
local setmetatable = setmetatable | |
local coroutine = coroutine | |
local assert = assert | |
local unpack = unpack | |
local print = print | |
local pairs = pairs | |
module "agent" |