Gabriel 发表于 2013-6-24 08:02:43

CentOS 5.8 x32使用kingate搭建Socks5代理

本帖最后由 Gabriel 于 2013-6-24 08:02 编辑

部署环境:CentOS 5.8 x32/512MB Ram/20GB SSD Disk
kingate是一位国人开发的代理服务器,支持http,socks,ftp等多种协议。支持多线程、tcp端口映射、规则控制、时间控制、用户认证、http管理等功能。kingate官网:http://sourceforge.net/projects/kingate/1.确认安装了gcc和make,如果没有就运行下面的命令yum install make automake gcc gcc-c++ gcc-g77 -y2.安装并配置kingatewget http://softlayer.dl.sourceforge.net/project/kingate/kingate/2.0/kingate-2.0.tar.gz
tar zxf kingate-2.0.tar.gz && cd kingate-2.0
./configure --prefix=/usr/local/kingate
make && make install如果没有报错就可以开始配置
vi /usr/local/kingate/etc/kingate.confhttp on
ftp off
pop3 off
smtp off
telnet off
socks on
mms off
rtsp off
manage on
max 2000
max_per_ip 0
min_free_thread 3
http_port 8082
http_accelerate off
x_forwarded_for on
http_time_out 30
ftp_port 2121
ftp_time_out 300
pop3_port 1100
pop3_time_out 300
smtp_port 2525
smtp_time_out 300
telnet_port 2323
telnet_time_out 300
socks_port 20120
socks_time_out 300
socks5_user off
mms_port 1755
mms_time_out 300
rtsp_port 5540
rtsp_time_out 300
manage_port 8822
manage_time_out 300
log_model user
log_level 0
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_msg on
mem_min_cache 50m
mem_max_cache 12m
disk_min_cache 20m
disk_max_cache 30m
use_disk_cache off
refresh never
refresh_time 300
user_time_out 0
mem_cache 50m
disk_cache 100m
max_deny_per_ip 0
max_queue_thread 15
min_limit_speed_size 1m
limit_speed 20k
max_request 50
total_seconds 10
bind_addr
run_user
insert_via off以 上配置中,http on 表示启用http 代理(也可以根据你自己的需求开启其他类型的代理),socks_port 20120 表示http 代理的端口。manage on 为启用http管理,manage_port 8822 为http管理的端口。强烈建议修改端口号!

3.启动kingate
要启动kingate,就需要启动脚本wget http://soft.vpser.net/proxy/kingate/kingate.init.d
cp kingate.init.d /etc/init.d/kingate
chmod +x /etc/init.d/kingate然后启动kingate
/etc/init.d/kingate start
停止和重启kingate的命令是
/etc/init.d/kingate stop
/etc/init.d/kingate restart

4.http管理kingate:
管理地址:http://ip:8822,如果修改过配置,8822端口修改为你设置的端口号,默认用户名为root,密码为kingate,建议修改.
加入开机启动chkconfig kingate on
在DO上搭建成功的演示:http://192.81.213.140:2222管理面板:









河小马 发表于 2013-6-24 08:15:29

真心好东西

fy188 发表于 2013-6-24 08:40:04

支持了,留着以后用

sadffg 发表于 2013-6-24 09:10:44

太麻烦了,看不懂啊 :L有没有一键安装的,就像vpn那样

blackhat 发表于 2013-6-24 09:27:03

linux 一条命令SSH 瞬间变S5

ssh -p VPS_SSH_PORT -D LOCAL_PROXY_PORT

lhhdj0727 发表于 2013-6-24 09:41:18

只支持32位的系统????

Gabriel 发表于 2013-6-24 10:58:17

我的VPS环境是32位
Kingate 2.0应该也支持64位

bluescharp 发表于 2013-6-24 11:00:12

Linux上的socks代理很多,为什么要用这款?优势在哪里?

Gabriel 发表于 2013-6-24 11:38:22

bluescharp 发表于 2013-6-24 11:00 static/image/common/back.gif
Linux上的socks代理很多,为什么要用这款?优势在哪里?

其实我是闹着玩的。

满意沟通 发表于 2013-6-24 11:54:05

blackhat 发表于 2013-6-24 09:27 static/image/common/back.gif
linux 一条命令SSH 瞬间变S5

ssh -p VPS_SSH_PORT -D LOCAL_PROXY_PORT

:lol 自用的话 还是这个好用

goog1e 发表于 2013-6-25 10:50:44

其实还是推荐用dante

Gabriel 发表于 2013-6-25 11:13:19

本帖最后由 Gabriel 于 2013-6-25 11:23 编辑

goog1e 发表于 2013-6-25 10:50 static/image/common/back.gif
其实还是推荐用dante
dante还有官网哦。http://www.inet.no/dante/
Dante是一个免费的Socks 4/5代理服务器软件,它可以作为防火墙连接两个网络。支持socks、msproxy和HTTP proxies
Dante可以实现同时多ip出口,可以参考如下配置:http://actgod.com/archives/45/

买醉 发表于 2013-9-4 13:32:17

原来这样额呵呵,记住了
页: [1]
查看完整版本: CentOS 5.8 x32使用kingate搭建Socks5代理