码迷,mamicode.com
首页 > 其他好文 > 详细

Socket V5 代理服务器部署

时间:2015-04-29 15:16:36      阅读:129      评论:0      收藏:0      [点我收藏+]

标签:代理服务器   socket   配置文件   软件包   1080   

 

  简单部署过程如下:

  1.   下载软件包

         ss5代理软件包 

2.     解压、编译、安装

        tar  zxvf ss5-3.6.1-1.tar.gz

        cd   ss5-3.6.1

         ./configure
         make

         make install

3.    启动ss5 服务

        /etc/init.d/ss5 start

4.    添加自启动

         chkconfig --add ss5

         chkconfig ss5 on

       默认情况下, ss5监听1080端口,接受所有用户的代理请求.

       安全起见,我们需呀启用代理认证功能,并维护认证的账号密码文件(ss5.passwd).

5.    修改配置文件 

       配置文件的位置:  

[root@phpVideoPro ss5]# pwd
/etc/opt/ss5
[root@phpVideoPro ss5]# ll
总用量 32
-rw-r--r--. 1 root root 9777 4月  21 18:58 ss5.conf
-rw-r--r--. 1 root root 9777 4月  21 18:29 ss5.conf_bak
-rw-r--r--. 1 root root   42 4月  21 19:05 ss5.passwd
-rw-r--r--. 1 root root   57 4月  21 18:32 ss5.passwd_bak
#       SHost           SPort           Authentication
#
#auth    0.0.0.0/0               -               -
#修改为
auth    0.0.0.0/0               -               u 



permit -        0.0.0.0/0       -       0.0.0.0/0       -       -
       -       -       -
#修改为
permit  u       0.0.0.0/0       -       0.0.0.0/0       -       -       -       -       -

添加账号和密码到密码文件:

 /etc/opt/ss5/ss5.passwd

形如:

 aaa    123

 bbb   234  

每个账号和密码各占一行.

重启ss5服务,即可.

 

 

 

本文出自 “史振宁的技术博客” 博客,请务必保留此出处http://magic3.blog.51cto.com/1146917/1640298

Socket V5 代理服务器部署

标签:代理服务器   socket   配置文件   软件包   1080   

原文地址:http://magic3.blog.51cto.com/1146917/1640298

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!