代理服务器(proxy)设置,使用软件 kingate(windows下的运用)

关键字:代理(proxy)服务器,代理软件(proxy soft)kingate,配置
描述:我们的目的就是使用代理软件(proxy soft)kingate配置一台公网代理服务器。
-------------------------------------
http://www.anywolfs.com/liuhui/article.asp?id=109

和铁通和做有利也有弊,利很多我也列举不了,使用过铁通带宽的朋友都了解,弊也有和很多,我也连举不了,大家不妨可以把自己的心得体会拿出来分享。我要说的就是其中之一,我们和全国许多地区铁通合作,他们非常恼火的一点就是大部分都封ip,限制本地区用户可以访问我们合作的站点项目,导致我们维护都是问题,领导怒了,决定。。。。。。。。自己配置一个代理服务器(proxy server),让这些地区的铁通都开放我们的一个固定的ip,我们通过这个ip代理进行网站内容维护,这个光荣的使命就交付给我了,为了建设社会主义的四个现代化,实现祖国的繁荣,人民的共同富裕,最终实现共产主义,我决定奋斗了(打。。。。劫了,香蕉皮、橘子皮,丑鸡蛋统统给我交。。。出来。。。。 )。
朋友之前介绍过ccproxy,简单又好用,不过我比较笨,这个太简单了,我配置不出来,怎么折腾都不行,只好又找了一个软件,那就是kingate,管方下载地址http://sourceforge.net/projects/kingate/
hoho,最新版本是kingate-1.6,我下载的是windows版本下的,所以直接下了一个kingate-1.6-win32.zip,地址我提供,自己去下载哈。
解压缩,copy到D:\Program Files\kingate-1.6-win32下,嘎嘎,看了下说明,发现它的安装也极其简单,我认真都观察了,这里提供下我安装的方法。hoho。
直接运行bin目录下的kingate.exe,在命令窗口中显示这段代码,
程序代码 程序代码
kingate 1.6-win32 Author king(email:khj99@tom.com)
http://sourceforge.net/projects/kingate/
Usage:
kingate --install       install the kingate as service
kingate --uninstall     uninstall the kingate service
kingate -z              create and format disk cache
If kingate haven't exit ,use ctrl+c to exit.
这时耐心等待,因为它正在安装,之后会自动消失,如果你等了很长时间都没有消失,直接使用ctrl+c退出

再运行dnsproxy.exe,显示
程序代码 程序代码
Author:king
Usage:D:\Program Files\kingate-1.6-win32\bin\dnsproxy.exe -h host -b bindaddr -m
max -u run_user -q
use default dns server:211.141.90.68
D:\Program Files\kingate-1.6-win32\bin\dnsproxy.exe start success.
那么你已经安装成功了,在ie右键--属性--连接--局域网设置--代理服务器上
选上“为LAN使用代理服务器(X)(这些折纸不会应用于拨号或VPN连接)。”
地址(E):代理服务器的ip地址比如我的222.222.222.222 端口(T):8082

(高级选项里面的端口设置参考etc文件夹下的kingate.conf,里面有端口对应的应用,注意:这里面的端口有很多,你可以自己修改,但是建议你不用修改,在系统防火墙里把这些端口都开着。)
或者直接运行 install.bat
会显示
程序代码 程序代码
D:\Program Files\kingate-1.6-win32\bin>kingate --install
kingate 1.6-win32 Author king(email:khj99@tom.com)
http://sourceforge.net/projects/kingate/
install service success.请按任意键继续.  ..

表示安装成功,然后在运行dnsproxy.exe,可以在你的本地ie(http://www.ip138.com)上作测试了,会显示代理服务器的ip地址。good。嘎嘎。。。我测试成功,如果你不成功留下e-mail,说名错误提示。
我写这片日志的时候就是使用代理服务器上的网。
程序代码 程序代码
#the kingate config file

#service
#if you don't want open one service ,please set it off

#开启代理服务器,如果不开启请使用off
http            on
ftp            on
pop3            on
smtp            on
telnet            on
socks            on
mms            on
rtsp            on
manage            on

#bind_addr        192.168.0.1

#run_user        nobody


max            500        
#max thread limit.

max_per_ip        0
#thread number limit for every ip address.if the value is 0 ,mean no limit.

min_free_thread        3
#the min_free_thread first add in v1.5.


#[http]
http_port        8082
#http listen port

http_accelerate        off
#be care for don't set http_accelerate to on when you use kingate proxy http protocol
#you must set it on when you use kingate to accelerate the http server
#when you use kingate to accelerate the http server Please add
#http_redirect        { * *  http_host:http_port  none }

x_forwarded_for        off
#add the client ip(who use kingate http proxy) in the http request head


http_time_out        300
#time out in http service.(sec)

#use http redirect ,for second proxy.

#http_redirect        { dst[/dst_mask][:dst_port]    file    redirect_host:redirect_port    flag    }
#http_redirect        { * *  210.15.29.16:80 none }
#http_redirect        { 211. *  210.15.29.16:8082 proxy }
#[ftp]
ftp_port        2121
ftp_time_out        300

#[pop3]
pop3_port        1100
pop3_time_out        300

#[smtp]
smtp_port        2525
smtp_time_out        300    


#[telnet]
telnet_port        2323
telnet_time_out        300

#[socks]
socks_port        1082
socks_time_out        300
socks5_user        off

#[mms]
mms_port        1755
mms_time_out        300

#[rtsp]
rtsp_port        5540
rtsp_time_out        300

#[manage]
manage_port        2222
manage_time_out        300

#log section
log_model        user
log_level        2            
log_rotate        { 0 0 * * * }        
log_close_msg        off
#the log_close_msg first add in v1.5 when it on the kingate will log the connect close msg to log_file.
#and when it set off kingate won't log the connect close msg to log_file

#缓存部分
#cache section

mem_min_cache        10m
mem_max_cache        12m
disk_min_cache        20m
disk_max_cache        30m
use_disk_cache        off
refresh            never
refresh_time        0


#端口重定向
#redirect        port_host:port        #端口重定向功能,所有port端口的请求发送至host:port
#redirect        9999_211.141.90.201:23
#redirect        3333_127.0.0.1:23

#[user]
user_time_out        0
#set the user login time out

相关连接:
kingate在linux下的设置:http://www.anywolfs.com/liuhui/article.asp?id=113

[本日志由 jothui 于 2006-11-01 04:10 PM 编辑]
文章来自: 本站原创
引用通告: 查看所有引用 | 我要引用此文章
Tags: kingate proxy 代理服务器 配置
相关日志:
评论: 0 | 引用: 0 | 查看次数: 7309
发表评论
昵 称:
密 码: 游客发言不需要密码.
内 容:
验证码: 验证码
选 项:
虽然发表评论不用注册,但是为了保护您的发言权,建议您注册帐号.
字数限制 10000 字 | UBB代码 开启 | [img]标签 关闭