发信人: tcpip (俺的昵称改了), 信区: cnunix
标 题: SOCKS原码: README
发信站: 哈工大紫丁香 (Sun Sep 26 15:01:52 1999), 转信
发信人: cpu (奔腾的心), 信区: Solaris
发信站: 华南网木棉站 (Tue Jul 7 11:25:20 1998), 转信
Socksd, by digger. it is a socks server that support socks v4 and socks v5.
some function of v5 yet not finished, just like some authentication methods
and udp socks functions, i think that udp socks function is really no use.
u can found socks5 easily on net but no socks4, so i prefer to writing one
by myself.
i made this one just for lovely gznet bbs, now i can reach gznet bbs throuth
some other hosts that installed and runing my socksd, or i have to telnet
to other hosts then to gznet bbs. for some reason i can't tell u, it is not
a good idea for me to telnet to those damned relay hosts time by time...
socksv4 can easily tested by netscape browser, netscape 3.x or 4.x can only
support socksv4. i have used it to test v4 functions of socksd, just like
http or ftp, they r OK, and used netterm to test telnet function, OK too...
i promise i never user IE to test my socksd, 'cause I hate it very much...
i have no socksv5 client application to test the functions of v5, so i have
to debug it by my own tcp debug tool, that is "visitor", the old version of
"visitor" can be found in unix board or 202.38.198.66, new version will be
put along with the socks source code. All source code is for sun solaris, but
they can be easily migrated to other unix systems, i think.
the relative document is rfc1928(for socks v5) and rfc1929(username/password
authentication of socks v5). this version can only surport username/password
authentication(using /etc/shadow to realize authentication, this need socksd
run as root!!!) or no authentication, other authentication methods u can
reference relative rfc documents.
the usage of socksd:
socksd [-p port] [-d home_dir] [-a y|n]
port is server port of socksd, default is 1080
home_dir is home directory of socksd process
-a: authentication option, y mean using user/passwd method, n mean none.
the default authentication method is none.
for security, this socksd support ip filter, no port filter, u can add it if u
need port filter. for configuration of ip filter, u just write one file named
"ip.auth" in the home directory of socksd. if "ip.auth" is not found in home
directory, no ip filter is used. the format of "ip.auth" is shown below:
# this line is for comment
172.18.86.148
172.18.86.88
...
max 32 hosts, u can modify source code for more.
many bug in source i think, no time;( BUG report: digger@163.net
nearly no comments in my source code, sorry, still for no time ;(
--
******************************************************
青岛啤酒,可能是世界上最好的啤酒 。。。 。。。
******************************************************
※ 修改:.trueip 于 Sep 26 15:05:39 修改本文.[FROM: dns.mtlab.hit.ed]
--
※ 转寄:.华南网木棉站 bbs.gznet.edu.cn.[FROM: dns.mtlab.hit.ed]
--
☆ 来源:.哈工大紫丁香 bbs.hit.edu.cn.[FROM: trueip.bbs@melon.gzn]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:3.189毫秒