Use kingate to build socks proxy server on Linux VPS

Source: Internet
Author: User
Tags vps automake

Kingate is a proxy server developed by Chinese people. It supports http, socks, ftp, and other protocols. Supports multiple threads, tcp port ing, rule control, time control, user authentication, and http management.

Kingate Official Website: http://sourceforge.net/projects/kingate/

Install the required dependency package

Debian: apt-get install build-essential automake make gcc g ++


CentOS: yum install make automake gcc-c ++ gcc-g77


Install the kingatewget http://softlayer.dl.sourceforge.net/project/kingate/kingate/2.0/kingate-2.0.tar.gz
Tar xzf kingate-2.0.tar.gz
Cd kingate-2.0/
./Configure -- prefix =/usr/local/kingate
Make & make install


Configure kingate

Modify/usr/local/kingate/etc/kingate. conf as follows: http off
Ftp off
Pop3 off
Smtp off
Telnet off
Socks on
Mms off
Rtsp off
Manage on
Maxcompute 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
Mmms_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, 23 ***}
Log_close_msg on
Mem_min_cache 50 m
Mem_max_cache 12 m
Disk_min_cache 20 m
Disk_max_cache 30 m
Use_disk_cache off
Refresh never
Refresh_time 300
User_time_out 0
Mem_cache 50 m
Disk_cache 100 m
Max_deny_per_ip 0
Max_queue_thread 15
Min_limit_speed_size 1 m
Limit_speed 20 k
Max_request 50
Total_seconds 10
Bind_addr
Run_user
Insert_via off


In the preceding configuration, socks on indicates that the socks proxy is enabled (you can also enable other types of proxies as needed), and socks_port 20120 indicates the port of the socks proxy. Manage on enables http management and manage_port 8822 is the port for http management. We strongly recommend that you modify the port number!

Kingate startup and Management

Download launch script and add permissions wget http://soft.vpser.net/proxy/kingate/kingate.init.d
Mv kingate. init. d/etc/init. d/kingate
Chmod + x/etc/init. d/kingate


Kingate Management

Start kingate:/etc/init. d/kingate start


Disable kingate:/etc/init. d/kingate stop


Restart kingate:/etc/init. d/kingate restart


Http Management

Management address: http: // ip: 8822. If the configuration is modified, port 8822 is changed to the port number you set.

Add boot start

Debian execution: update-rc.d-f nginx ults


CentOS execution: chkconfig -- level 345 kingate on


Client settings

The following uses dorpbox as an example:

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.