Skip to content

插件管理[SOCK5]

Mr Chen edited this page Jan 29, 2021 · 1 revision

linux下配置SS5(SOCK5)代理服务

安装sock5所需依赖开发库:

# yum install pam-devel openldap-devel openssl-devel

下载并解压安装sock5

# wget http://downloads.sourceforge.net/project/ss5/ss5/3.8.9-8/ss5-3.8.9-8.tar.gz
# tar -xzvf ss5-3.8.9-8.tar.gz
# cd ss5-3.8.9
# ./configure
# make
# make install

修改配置文件:

复制代码
# vim /etc/opt/ss5/ss5.conf

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 – – – – -
复制代码

添加账号,一行一个账号,用户名和密码之间用空格间隔:

# vim /etc/opt/ss5/ss5.passwd
账号  密码

查看账号和密码:

# cat /etc/opt/ss5/ss5.passwd

设置端口,添加下面这一行命令,-b后面的参数代表监听的ip地址和端口号

# vim /etc/sysconfig/ss5
设置如下:端口10888,可自行定义  0~65535

# Add startup option here
SS5_OPTS=" -u root -b 0.0.0.0:10888"

启动sock5:

# sh /etc/rc.d/init.d/ss5 start
doneting ss5...
Clone this wiki locally