|
![]() | 作者: TecZm [teczm]
![]() |
登录 |
前N天帮人用kingate做了一个proxy,最近朋友反映不错,特推荐给大家 1. 下载 http://www.linuxeden.com/download/softdetail.php?softid=639 2.安装 tar xzvf kingate-1.6.tar.gz cd kingate ./configure --prefix=/usr/kingate make install 3:使用 prefix/bin/kingate 启动kingate prefix/bin/kingate -h 帮助 prefix/bin/kingate -q 关闭kingate prefix/bin/kingate -v 看kingate版本 4:配置 vim prefix/etc/kingate.conf #kingate.conf #service #以下是告诉kingate代理哪些协议,如果要打开的请设置on,否则设为off http on ftp on pop3 on smtp on telnet on socks on mms on rtsp on manage on #bind_addr用来告诉kingate绑定的IP地址。 #bind_addr 192.168.7.1 #run_user指kingate的运行者。请注意,如果设置了run_user.请以root启动kingate.并且把kingate的etc和var目录设置该用户可以读写。 #run_user nobody #max指kingate最多同时接受多少个连接请求。超过此数,多余的连接kingate将马上关闭。 max 500 #max_per_ip用来表明每个IP,同时最多有多少个连接请求。设置为0,表示不限制 max_per_ip 0 #min_free_thread 表明kingate关闭一些超时空闭的线程时,最少会留多少个不关闭。 min_free_thread 3 #[http] http_port 8082 #http_port表时http代理的端口 http_accelerate off #http_accelerate这个参数很重要。如果你只是使用代理时请设置为off. #如果你用kingate来加速web服务器时,设置为on,并且加上: #http_redirect { * * http_host:http_port none } x_forwarded_for off #在http请求中加入客户端的IP地址。如果你用kingate来加速web服务器时,建议设置on. http_time_out 300 #http_time_out http代理发送接收超时时间(秒) #http重定向: #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 #socks5_user设置是否在socks5代理中运行用户认证。 #[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 20m mem_max_cache 30m disk_min_cache 100m disk_max_cache 120m use_disk_cache on 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 #配置文件结束 可以在浏览器里输入 http://127.0.0.1:2222进入图形管理界面。 [此贴被 TecZm(teczm) 在 11月06日14时46分 编辑过] |
地主 发表时间: 04-11-06 14:40 |
![]() | 回复: peng_007 [peng_007] ![]() |
登录 |
img]http://www.20cn.net/cgi-bin/club/showpic.pl?u=peng_007&f=02.jpg[/img] |
B1层 发表时间: 04-11-07 12:27 |
|
20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon
粤ICP备05087286号