找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 103530|回复: 34

关闭关闭

  [复制链接]
发表于 2014-3-21 09:53 | 显示全部楼层
我也有这个问题, 应该是路由本身不是通过br-lan口或 prerouting之类的, 所以以下两条命令并不能把路由自身的请求转到 REDSOCKS

iptables -t nat -A PREROUTING -i br-lan -p tcp -j REDSOCKS
iptables -t nat -A PREROUTING -i br-lan -p udp -j REDSOCKS
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2014-3-21 14:07 | 显示全部楼层
SZPUNK 发表于 2014-3-21 14:03
路由器本身:

iptables -t nat -A OUTPUT 1 -p tcp  -j REDSOCKS

# iptables -t nat -A OUTPUT 1 -p tcp  -j REDSOCKS
Bad argument `1'
Try `iptables -h' or 'iptables --help' for more information.


iptables 版本是 v1.4.10
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2014-3-21 14:27 | 显示全部楼层

好像不行,加了, 随便wget一个东西,都是connection refused

# wget http://www.baiud.com
Connecting to www.baiud.com (216.218.207.151:80)
wget: can't connect to remote host (216.218.207.151): Connection refused
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2014-3-21 14:53 | 显示全部楼层
本帖最后由 muziling 于 2014-3-21 15:00 编辑
SZPUNK 发表于 2014-3-21 14:42
你那个地址有问题吧。。。。

好奇怪,我的就是不行, 你的iptabes规则列表是什么

[root@wins2012:/tmp]# iptables -t nat -A OUTPUT -p tcp -j REDSOCKS
[root@wins2012:/tmp]# wget http://www.baidu.com
Connecting to www.baidu.com (115.239.210.27:80)
wget: can't connect to remote host (115.239.210.27): Connection refused
[root@wins2012:/tmp]# wget http://www.qq.com
Connecting to www.qq.com (14.17.32.211:80)
wget: can't connect to remote host (14.17.32.211): Connection refused





我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2014-3-21 15:01 | 显示全部楼层
SZPUNK 发表于 2014-3-21 14:56
twitter 也没问题。

我配在redsocks里的代理是192.168的网段,会是这个原因?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-26 01:28

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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