LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 714|回复: 1

[帮我]装了tsocks,不会配置,谁可以教教我。

[复制链接]
发表于 2005-5-24 20:13:30 | 显示全部楼层 |阅读模式
我打算用tsocks通过学校的socks 代理上网。不会配置。
下面是源码包内给的一个例子。
# This is the configuration for libtsocks (transparent socks)
# Lines beginning with # and blank lines are ignored
#
# The basic idea is to specify:
#        - Local subnets - Networks that can be accessed directly without
#                          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, tsocks(8) and tsocks.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 = 192.168.0.0/255.255.255.0
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 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
        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 = 192.168.0.1
# 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
 楼主| 发表于 2005-5-24 20:20:25 | 显示全部楼层
下面是我试着配置的tsocks的例子,大家帮忙看看。
还有,是不是用./inspectsocks <服务器IP> 来连接的。
我试了一下,提示连接失败。
210.45.193.16 --》我学校的代理服务器ip ,用的微软的代理软件(winsocks)
# This is the configuration for libtsocks (transparent socks)
# Lines beginning with # and blank lines are ignored
#
# The basic idea is to specify:
#        - Local subnets - Networks that can be accessed directly without
#                          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, tsocks(8) and tsocks.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.16.0.0/255.255.255.0
local = 210.45.193.0/255.0.0.0

# Paths
# For this example this machine needs to access 150.0.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
        server = 210.45.193.16
        server_type = 5
        default_user = cgc837
        default_pass = congemcle
}

# 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.16.75.1
# 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
回复 支持 反对

使用道具 举报

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

本版积分规则

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