关于tsocks的设置使用问题

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
ygl123
帖子: 23
注册时间: 2007-10-25 19:54
送出感谢: 0
接收感谢: 0

关于tsocks的设置使用问题

#1

帖子 ygl123 » 2007-10-28 10:38

我的ubuntu7想通过别人的winxp机器上网(ip为172.26.21.3,其上装有ccproxy代理,端口为http 88,socks 1080)。我在ubuntu下装了tsocks。
/etc/囗囗囗囗囗囗.conf内容如下:
# assistance from a socks server
# - Paths - Paths are basically lists of networks and a socks server
# which can be used to reach these networks
# - Default server - A socks server which should be used to access
# networks for which no path is available
# Much more documentation than provided in these comments can be found in
# the man pages, 囗囗囗囗囗囗(8) and 囗囗囗囗囗囗.conf(8)

# Local networks
# For this example this machine can directly access 192.168.0.0/255.255.255.0
# (192.168.0.*) and 10.0.0.0/255.0.0.0 (10.*)

local = 172.26.21.3/255.255.255.255
#local = 10.0.0.0/255.0.0.0

# Paths
# For this example this machine needs to access 150.0.0.0/255.255.0.0 as
# well as port 80 on the network 150.1.0.0/255.255.0.0 through
# the socks 5 server at 10.1.7.25 (if this machines hostname was
# "socks.hello.com" we could also specify that, unless --disable-hostnames
# was specified to ./configure).

#path {
# reaches = 150.0.0.0/255.255.0.0
# reaches = 150.1.0.0:80/255.255.0.0
# server = 10.1.7.25
# server_type = 5
# default_user = delius
# default_pass = hello
#}

# Default server
# For connections that aren't to the local subnets or to 150.0.0.0/255.255.0.0
# the server at 192.168.0.1 should be used (again, hostnames could be used
# too, see note above)
server =172.26.21.3
# Server type defaults to 4 so we need to specify it as 5 for this one
server_type = 5
# The port defaults to 1080 but I've stated it here for clarity
server_port = 1080

我运行tsocks firefox 后出现如下提示:
10:33:59 libtsocks(5949): Malformed configuration pair on line 41 in configuration file, "server =172.26.21.3 "
10:33:59 libtsocks(5949): Connection needs to be made via default server but the default server has not been specified
10:34:06 libtsocks(5949): Connection needs to be made via default server but the default server has not been specified
10:34:06 libtsocks(5949): Connection needs to be made via default server but the default server has not been specified
10:34:06 libtsocks(5949): Connection needs to be made via default server but the default server has not been specified
10:34:06 libtsocks(5949): Connection needs to be made via default server but the default server has not been specified
10:34:06 libtsocks(5949): Connection needs to be made via default server but the default server has not been specified
10:34:06 libtsocks(5949): Connection needs to be made via default server but the default server has not been specified

请问各位高手这是怎么回事啊?
ygl123
帖子: 23
注册时间: 2007-10-25 19:54
送出感谢: 0
接收感谢: 0

#2

帖子 ygl123 » 2007-10-28 10:44

自己顶一下,热切期望回复
头像
skyx
论坛版主
帖子: 9203
注册时间: 2006-12-23 13:46
来自: Azores Islands
送出感谢: 0
接收感谢: 1 次
联系:

#3

帖子 skyx » 2007-10-28 10:52

高手不来,菜鸟来看下:

很早以前我用过,记不太清了,没感觉tsocks设定上有什么麻烦,但我以为你的41行格式貌似有问题,我想是这样的:

把server =172.26.21.3

改为:

server = 172.26.21.3

也就是=后加一个空格试下


请楼下高手补充:
no security measure is worth anything if an attacker has physical access to the machine
ygl123
帖子: 23
注册时间: 2007-10-25 19:54
送出感谢: 0
接收感谢: 0

#4

帖子 ygl123 » 2007-10-28 14:06

正如三楼所言,问题已经解决。感谢楼主指点。对楼言的景仰如涛涛江水。不过bouncer仍不能用。楼主能否再指点一二?
lznan
帖子: 2
注册时间: 2008-02-06 21:47
送出感谢: 0
接收感谢: 0

tsocks的用户用密码使用

#5

帖子 lznan » 2008-03-06 13:17

path {
# reaches = 150.0.0.0/255.255.0.0
# reaches = 150.1.0.0:80/255.255.0.0
server = 10.1.7.25
server_type = 5
default_user = delius
default_pass = hello
}
default_user = delius
default_pass = hello
leegang
帖子: 11
注册时间: 2009-03-02 1:12
来自: http://www.ugoes.cn
送出感谢: 0
接收感谢: 0
联系:

Re: 关于tsocks的设置使用问题

#6

帖子 leegang » 2009-03-02 1:45

终于找到这个帖子了
tsocks在哪里下载啊 ?
可否直接install 囗囗囗囗囗囗
我的是Ubuntu 8.10
回复

回到 “服务器基础应用”