Linux VPS上使用kingate搭建socks代理服务器
来源:互联网 发布:usb端口检测 编辑:程序博客网 时间:2024/06/03 01:45
kingate是一位国人开发的代理服务器,支持http,socks,ftp等多种协议。支持多线程、tcp端口映射、规则控制、时间控制、用户认证、http管理等功能。
kingate官网:http://sourceforge.net/projects/kingate/
一、安装所需的依赖包
Debian:
CentOS:
注:如果不能安装依赖包,请先更新系统
Debian:
二、安装kingate
wget http://softlayer.dl.sourceforge.net/project/kingate/kingate/2.2/kingate-2.2.tar.gz
tar xzf kingate-2.2.tar.gz
cd kingate-2.2/
./configure --prefix=/usr/local/kingate
make && make install
三、配置kingate
修改/usr/local/kingate/etc/kingate.conf 为以下内容:
命令:vi /usr/local/kingate/etc/kingate.conf(修改完后,按esc,输入:wq保存)
http off
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
以上配置中,socks on 表示启用socks代理(也可以根据你自己的需求开启其他类型的代理),socks_port 20120 表示socks代理的端口。manage on 为启用http管理,manage_port 8822 为http管理的端口。强烈建议修改端口号!
四、kingate启动及管理
1、下载启动脚本及添加权限
wget http://soft.vpser.net/proxy/kingate/kingate.init.d
mv kingate.init.d /etc/init.d/kingate
chmod +x /etc/init.d/kingate
2、kingate管理
启动kingate:
关闭kingate:
重启kingate:
3、http管理
管理地址:http://ip:8822 ,如果修改过配置,8822端口修改为你设置的端口号,默认用户名为root,密码为kingate。
4、加入开机启动
Debian执行:
CentOS执行:
- Linux VPS上使用kingate搭建socks代理服务器
- 在vps上搭建代理服务器
- 在VPS上搭建Shadowsocks代理服务器
- 怎么使用socks代理服务器
- vps拨号+squid搭建代理服务器
- VPS下ubuntu搭建代理服务器
- SOCKS与Linux安装代理服务器ss5
- linux上搭建代理服务器 Proxy Server
- 在Linux上搭建Socks5 Proxy代理服务器
- 在虚拟机上搭建代理服务器,使用squid
- vps上搭建wordpress
- Linux下使用Squid搭建代理服务器
- Linux下使用Squid搭建代理服务器
- linux系统中VPS上搭建VPN网络
- 如何在linux上用squid搭建代理服务器
- 如何在Linux上用Squid搭建代理服务器
- 用SS5在Linux上搭建Socks5 Proxy代理服务器
- 用SS5在Linux上搭建Socks5 Proxy代理服务器
- oracle教程:PLSQL常用方法汇总
- tomcat中搭建solr Cloud、日志、多Core以及常见问题
- Java Map 集合类简介
- jquery dialog
- 批量修改指定文件夹下所有后缀名的文件为另外后缀名的java代码
- Linux VPS上使用kingate搭建socks代理服务器
- Uboot常用操作
- 用Flash Builder 4.6编译的iOS App上传至app store出现的三个问题及解决办法
- Pat(Basic Level)Practice--1003(我要通过)
- 【iOS 7】使用UIScreenEdgePanGestureRecognizer实现swipe to pop效果
- python 对于json数据的操作
- C++模板
- 转 WinSocket I/O五种模型
- C# 中 DateTime日期时间及方法函数