linux centos6搭建带帐号密码的socket5代理服务器

yum -y install pam-devel openldap-devel openssl-devel
yum -y install gcc
wget https://www.isres.com/usr/uploads/2019/03/982169671.gz
tar -zxvf 982169671.gz
cd ss5-3.8.9
./configure
make
make install

vi /etc/opt/ss5/ss5.conf

添加 auth 0.0.0.0/0 - u

#  TAG: auth
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       -       -       -       -       -

添加帐号密码

vi /etc/opt/ss5/ss5.passwd
test 123456
chmod u+x /etc/rc.d/init.d/ss5
chkconfig --add ss5
chkconfig ss5 on
service ss5 start
[root@aaaas ss5-3.8.9]# service ss5 start
doneting ss5...                                            [  OK  ]


[root@zhaoying2003 ss5-3.8.9]# netstat -anp | grep ss5
tcp        0      0 0.0.0.0:1080                0.0.0.0:*                   LISTEN      30859/ss5 

觉得还是要把默认的1080端口换换

vi /etc/sysconfig/ss5
SS5_OPTS=" -u root -b 0.0.0.0:16800"

service ss5 restar

[root@aaaas ss5-3.8.9]# netstat -anp | grep ss5
tcp        0      0 0.0.0.0:16800               0.0.0.0:*                   LISTEN      31190/ss5

防火墙

-A INPUT -m state --state NEW -m tcp -p tcp --dport 16800 -j ACCEPT

ss.jpg


标签: 代理服务器

非特殊说明,本博所有文章均为博主原创。

最新文章

发表评论