Linux Kingate 代理部署

1.概述

Kingate是国人开发的一款开源多功能代理服务器,可以在unix及windows系统下安装使用,支持http,https,socks,ftp,pop3,smtp,dns,telnet代理。

Kingate官方:http://sourceforge.net/projects/kingate/

2.Kingate部署

2.1.环境配置

1.安装所需依赖包

Debian:

Apt-getinstall build-essential automake make gcc g++

CentOS:

Yuminstall make automake gcc gcc-c++ gcc-g77




2.2.Kingate部署

1.下载kingate

Wgethttp://sourceforge.net/projects/kingate/files/kingate/2.2/kingate-2.2.tar.gz/download

2.解压安装

Tarzxvf kingate-2.2tar.gz

Cdkingate-2.2/

./confingure  --prefix=/usr/local/kingate

Make

makeinstall


3.Kingate配置文件

Vi/usr/local/kingate/bin/kingate.conf

httpon

ftpon

pop3off

smtpoff

telnetoff

socksoff

mmsoff

rtspoff

manageon

max2000

max_per_ip0

min_free_thread3

http_port110

http_accelerateoff

x_forwarded_foroff

http_time_out30

ftp_port2121

ftp_time_out300

pop3_port1100

pop3_time_out300

smtp_port2525

smtp_time_out300

telnet_port2323

telnet_time_out300

socks_port1082

socks_time_out300

socks5_useroff

mms_port1755

mms_time_out300

rtsp_port5540

rtsp_time_out300

manage_port2222

manage_time_out300

log_modeluser

log_level2

log_rotate{0 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 * * * }

log_close_msgoff

mem_min_cache50m

mem_max_cache12m

disk_min_cache20m

disk_max_cache30m

use_disk_cacheoff

refreshnever

refresh_time300

user_time_out0

mem_cache50

disk_cache100

max_deny_per_ip0

max_queue_thread15

min_limit_speed_size1

limit_speed20k

max_request50

total_seconds10

bind_addr

run_user

insert_viaoff

以上配置中,http on 表示启用http代理(也可以根据自己的需要开启其他类型的代理);manage on  为启用http管理,manage_port 2222为http管理端口

4.Kingate访问控制

Vi/usr/local/kingate/etc/access.conf

Firstdeny

Modeldeny

Modelallow

{* * * *}

{manage* * * * }#充许所有管理

{* * * * }#允许匿名代理


5.Kingate启动管理

/usr/local/kingate/bin/kingate #启动kingate

/usr/local/kingate/bin/kingate�Cq #停止 kingate


6.下载启动脚本及给予权限

wget http://soft.vpser.net/proxy/kingate/kingate.init.d

mvkingage.init.d  /etc/init.d/kingate

chmod+x /etc/init.d/kingate

servicekingate stop

servicekingate start



7.设置开机自动启动

Chkconfig �Cadd kingate

Chkconfig kingate on



8.Kingate管理地址

管理地址:http://ip:2222



你可能感兴趣的:(linux系统,kingate,代理服务器部署)