Skip to content

Instantly share code, notes, and snippets.

View jiuxiaxixi's full-sized avatar

jiuxiaxixi jiuxiaxixi

View GitHub Profile
  1. 开启ipv4转发
vi /etc/sysctl.conf
# 将net.ipv4.ip_forward=0更改为net.ipv4.ip_forward=1
sysctl -p
  1. 安装dnsmasq 和pdnsd解决dns污染

DNS的解析方案为 resolve.conf ==> dnsmasq ==> pdnsd

@yangmenghui
yangmenghui / OCB_Patch.md
Last active November 20, 2018 14:27
Introduction of creating an OCB enabled Linux system with ath9k interface

#Overview The latest Ubuntu 15.04 announced it has already support OCB mode. its kernel version is 3.19.0, however,it just added ocb feature on mac80211 and nl80211 layer, for drvier layer, we have to menully patch it by ourself. Here will show how patch whole stack to suport OCB/802.11p for Kernel 3.19.0 and ath9k step by step.

#Get 3.19.0 source code from official site

If you are in ubuntu 15.04, just follow the steps below,

apt-get source linux-image-$(uname -r)
apt-get build-dep linux-image-$(uname -r)
@snakevil
snakevil / howto-setup-transparent-proxied-router.md
Last active April 1, 2024 01:28
如何在路由器中实现透明代理?

如何在路由器中实现透明代理?

0 互联网现状

目前整个互联网环境,被破坏最严重地部分,是 Web 服务体验。当直接破坏难以实现时,就会从流程链的上下游着手,如:DNS 污染。

其它地互联网服务类型,例如:邮件,可能小部分会受到 Web 服务上下游破坏地余震,但整体上基本不受影响。