Socks 5
命令汇总
uname -aLinux vultr.guest 3.10.0-862.3.2.el7.x86_64 #1 SMP Mon May 21 23:36:36 UTC 2018 x86_64 x86_64 x86_64 GNU/Linuxcat /etc/os-releaseNAME="CentOS Linux"VERSION="7 (Core)"ID="centos"ID_LIKE="rhel fedora"VERSION_ID="7"PRETTY_NAME="CentOS Linux 7 (Core)"ANSI_COLOR="0;31"CPE_NAME="cpe:/o:centos:centos:7"HOME_URL="https://www.centos.org/"BUG_REPORT_URL="https://bugs.centos.org/"yum --version3.4.3复制代码
yum install gcc openldap-devel pam-devel openssl-devel复制代码
wget http://jaist.dl.sourceforge.net/project/ss5/ss5/3.8.9-8/ss5-3.8.9-8.tar.gz复制代码
tar -vzx -f ss5-3.8.9-8.tar.gz复制代码
cd ss5-3.8.9/复制代码
./configure复制代码
make复制代码
make install复制代码
chmod a+x /etc/init.d/ss5复制代码
- 修改 socks5 配置文件,放开
auth
和 permit
注释
vi /etc/opt/ss5/ss5.conf# 如果需要配置访问权限# auth 0.0.0.0/0 - u# permit u 0.0.0.0/0 - 0.0.0.0/0 - - - - -复制代码
vi /etc/opt/ss5/ss5.passwd# 格式为 用户名 密码# username password复制代码
vi /etc/sysconfig/ss5# SS5_OPTS=" -u root -b 0.0.0.0:8080"复制代码
service ss5 start复制代码
chkconfig --add ss5chkconfig --level 345 ss5 onchkconfig --list | grep ss5复制代码