找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 7875|回复: 11

发一个MW4530R可用的redsocks(已更新智能反强使用方法)

[复制链接]
发表于 2013-4-22 17:29 | 显示全部楼层 |阅读模式
本帖最后由 hackwaly 于 2013-4-23 15:40 编辑

TARGET为ar71xx的openwrt路由器均可使用
已经测试可用,PC上不做任何配置即可上推



需要配合反dns污染的脚本使用, 脚本稍后会在单独的帖子里给出。此脚本在不影响DNS的CDN分配的情况下能反G`F`W的DNS污染。

使用方法
推荐使用"Bitvise SSH Client",连上路由器,打开ssh和sftp
1, 先将redsocks安装包传到/tmp
2, opkg install redsocks
3, 修改/etc/redsocks.conf
  1. base {
  2.         log_debug = off;
  3.         log_info = off;
  4.         log = "file:/var/log/redsocks";
  5.         daemon = on;
  6.         redirector = iptables;
  7. }

  8. redsocks {
  9.         local_ip = 0.0.0.0;
  10.         local_port = 12345;
  11.         // 如果你用的是http代理,请使用autohttp-connect
  12.         type = autosocks5;
  13. // 下面配置你的代理服务的地址,我是安装的stunnel将远程的socks5映射到路由器上的.
  14.         ip = 127.0.0.1;
  15.         port = 10800;
  16. // 如果你的代理需要验证,请配置下面的参数
  17.         // login = "foobar";
  18.         // password = "baz";
  19. }

复制代码
4,使用iptables配置透明代理规则
  1. iptables -t nat -A prerouting_rule -i br-lan -p tcp --dport 80 -j REDIRECT --to-port 12345
  2. iptables -t nat -A prerouting_rule -i br-lan -p tcp --dport 443 -j REDIRECT --to-port 12345
复制代码
注意如果你没有使用NWan多拨的话,把"prerouting_rule"改成"PREROUTING"
5,开启redsocks
  1. /etc/init.d/redsocks start
复制代码
感谢test0x01的 https://www.right.com.cn/forum/forum.php?mod=viewthread&tid=118945 这篇帖子
感谢semigodking, darkk的开源

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
发表于 2013-4-22 19:28 | 显示全部楼层
编译怎么搞的. . 我想弄一个flexget
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-4-22 20:14 | 显示全部楼层
等后续内容
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2013-4-22 21:45 | 显示全部楼层
没有成功,貌似我的iptables规则没法将web流量redir到redsocks,可能是和nwan生成的规则冲突了。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-6-20 06:28 | 显示全部楼层
请教楼主编译方法!!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-6-21 00:30 | 显示全部楼层
能出个完整教程么??????????
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-6-21 09:15 | 显示全部楼层
学习科学上网
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-6-21 21:02 | 显示全部楼层
iptables在哪呀?我都找不到
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-8-29 12:45 | 显示全部楼层
本帖最后由 axishero 于 2013-8-29 13:04 编辑

用这个方案yt,fb可以,推不行,楼主用的是哪个过滤dns更新:360chrome可以访问推,其他浏览器不行,why?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-8-30 01:31 | 显示全部楼层
3420 v1 不怕砖
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-11-10 05:53 | 显示全部楼层
期待更稳定和更简洁的方案
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-11-28 11:17 | 显示全部楼层
有没有更新的版本?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-26 13:26

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表