LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: ewingman

爽!用BT的办法保护隐私 ~

[复制链接]
发表于 2005-11-23 08:01:10 | 显示全部楼层
Post by Lolita
是gentoo系统下才是这样的。其他系统应该放在其他地方吧。


隐藏是隐藏了,不过打开网页的速度好像变慢了呢

好像没有,已经把torrc.sample拷贝为torrc,网站上还是能够显示我的IP地址,我没有使用代理。
回复 支持 反对

使用道具 举报

发表于 2005-11-23 09:48:23 | 显示全部楼层
这一步做了没有?

3.1.2 编辑相关配置文件
需要编辑的文件其实只有一份,即/etc/tsocks.conf,只需要三行即可:
server = 127.0.0.1
server_type = 5
server_port = 9050

还有:
/etc/init.d/tor start


然后:
tsocks firefox

....
回复 支持 反对

使用道具 举报

发表于 2005-11-23 10:09:19 | 显示全部楼层
一般的代理还可以被检测出ip的,比如
http://www.3322.org/dyndns/getip

不过tor可以隐藏得很好
回复 支持 反对

使用道具 举报

发表于 2005-11-23 13:24:05 | 显示全部楼层
没有这一行
server_type = 5
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-23 14:20:19 | 显示全部楼层
安装后默认的tsocks.conf是错误的,server_port设的1080,不改成9050根本不能打开网页,firefox提示“The connection was refused when attempting to contract www........com

另外,$tsocks mozilla好像不能用
回复 支持 反对

使用道具 举报

发表于 2005-11-23 17:08:13 | 显示全部楼层
Post by 终极幻想
sample文件是在安装目录里边的。

tsocks是一个软件,转换所有请求为socks请求。
具体用法,是

. tsocks off  #关闭转换
. tsocks on  #打开转换
tsocks show #确认status

主要是用 LD_PRELOAD 实现的。tsocks只是一个脚本。而且你要自己搜索文件位置,默认安装的是错误的。

请问这个tsocks脚本是哪个程序里带的,我装了tor,但是find / -name tsocks 也没有找到这个文件啊。。
回复 支持 反对

使用道具 举报

发表于 2005-11-23 19:52:21 | 显示全部楼层
我用tsocks mozilla启动报“ERROR: ld.so: object '/usr/lib/libtsocks.so' form LD_PRELOAD cannot be preloaded: ignored."
回复 支持 反对

使用道具 举报

发表于 2005-11-23 23:52:57 | 显示全部楼层
什么发行版里默认配置是错误的 ?

Debian/Ubuntu 里 apt 后直接可以用啊
回复 支持 反对

使用道具 举报

发表于 2005-11-24 00:59:13 | 显示全部楼层
好像不行
apt-get install tsocks tor
vi /etc/tsocks.conf
加入
server = 127.0.0.1
server_type = 5
server_port = 9050
(把原来的配置文件删掉)
还有:
/etc/init.d/tor start


然后:
tsocks firefox

http://www.dheart.net/ip/
这个网址还是能显示我真实的IP
一定要设代理?
在哪里设置?
回复 支持 反对

使用道具 举报

发表于 2005-11-24 01:11:49 | 显示全部楼层
我说说配置。
3个软件:  privoxy  tor  tsocks

用到的端口:
8118            privoxy
9050            tor
1080            socks5协议默认端口

使用过程:
firefox 指定代理为8118端口。
privoxy转发所有代理到9050端口。

至于1080端口,是没用到的。
tsocks 我也没用到。只是单纯安装了备用。


配置细节:
关于privoxy:
我的配置文件:

  1. logdir /var/log/privoxy
  2. actionsfile standard  # Internal purpose, recommended
  3. actionsfile default   # Main actions file
  4. actionsfile user      # User customizations
  5. filterfile default.filter
  6. trust-info-url  http://www.example.com/why_we_block.html
  7. trust-info-url  http://www.example.com/what_we_allow.html
  8. listen-address  127.0.0.1:8118
  9. listen-address  192.168.0.1:8118
  10. toggle  0
  11. enable-remote-toggle  0
  12. enable-edit-actions 1
  13. permit-access  localhost
  14. permit-access  192.168.0.1/24
  15. buffer-limit 4096
  16. forward-socks4a / 192.168.0.1:9050 .
复制代码



关于tor:
我的tor配置文件:

  1. SocksPort 9050 # what port to open for local application connections
  2. SocksBindAddress 127.0.0.1 # accept connections only from localhost
  3. SocksBindAddress 192.168.0.1 # accept connections only from localhost
  4. SocksPolicy accept 192.168.0.1/24
  5. SocksPolicy reject *
  6. AllowUnverifiedNodes middle,rendezvous
  7. Log debug-err file /dev/null
  8. RunAsDaemon 1
  9. DataDirectory /var/lib/tor
  10. User privoxy
  11. Group privoxy
复制代码



关于tsocks:
tsocks是一个软件!而且默认安装是有错误的。要改动 /usr/bin/tsocks 文件。
我的tsocks 配置文件:

  1. local = 192.168.0.0/255.255.255.0
  2. server = 192.168.0.1
  3. server_port = 9050
  4. server_type = 5
复制代码
回复 支持 反对

使用道具 举报

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

本版积分规则

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