四句命令 yum必威手机官网: update -y

SOCK5代理服务器配置,sock5代理服务器

yum install rpm-build openldap-devel pam-devel openssl-devel libgssapi-devel -y (for 32 bit Linux)
yum install rpm-build.x86_64 openldap-devel.x86_64 pam-devel.x86_64 openssl-devel.x86_64 libgssapi-devel.x86_64 -y (for 64 bit Linux)

                                                                                  SOCK5代理服务器配置

root登录服务器后: lsb_release -a      #查看当前服务器版本 Run the commands below to install the latest version of EPEL repository for CentOS 7 and then update your system for missing updates and security patches.

yum install epel-release

yum groupinstall 'Development Tools'

yum -y install gcc gcc-c++ automake make pam-devel openldap-devel cyrus-sasl-devel  yum -y install openssl-devel                           ###四句命令 yum update -y
wget  #命令

./configure && make && make install               #命令

1.设定用户名/密码

SS5 配置文件位于 /etc/opt/ss5/ss5.conf, ‘auth’ 参数用于设定认证模式。

不使用用户认证,
auth 0.0.0.0/0 – –
使用用户名/密码认证,
auth 0.0.0.0/0 – u

设置权限 ( /etc/opt/ss5/ss5.conf )
允许所有主机连接:
permit u 0.0.0.0/0 – 0.0.0.0/0 – – – – –            最后一个-后有一个tab键(备注)

2.在文件 /etc/opt/ss5/ss5.passwd 中, 每行输入一个用户名和密码,用空格分开。
例如:
user1 pass1
user2 pass2

3.以 root 身份运行 SS5 并修改端口为 8899 (默认端口 1080)
修改 /etc/init.d/ss5 并在文件顶部的 #!/bin/sh 之后添加下面的代码:
export SS5_SOCKS_PORT=8899
export SS5_SOCKS_USER=root

4.用户名/密码保存在文件 /etc/opt/ss5/ss5.passwd。请设置权限:
chown root:root /etc/opt/ss5/ss5.passwd
chmod 755 /etc/opt/ss5/ss5.passwd
chmod 755 /etc/opt/ss5

chmod 755 /etc/init.d/ss5

5.设置ss5端口

vim /etc/sysconfig/ss5

SS5_OPTS=" -u root -b 0.0.0.0:8899"

6.启动/停止/重启 ss5
service ss5 start
service ss5 stop
service ss5 restart

以上就已经配置好了ss5.

 开启阿里云端口网页

上面是购买阿里云服务器的优惠券

wget

  1. Run SS5 as root and change the port to 9999 (default port is 1080)

The user/password pairs are stored in /etc/opt/ss5/ss5.passwd. Make sure that this file is readable only by root:

export SS5_SOCKS_PORT=9999
export SS5_SOCKS_USER=root

Edit /etc/init.d/ss5 and put following lines at the top after shabang:

You can use any available port you want. 

For user/pass auth,
auth 0.0.0.0/0 – u

permit – 0.0.0.0/0 – 0.0.0.0/0 – – – – -

Install and configure ss5 socks proxy with simple authentication

SS5 configuration file is /etc/opt/ss5/ss5.conf. The ‘auth’ directive sets the authentication policy.

chown root.root /etc/opt/ss5/ss5.passwd
chmod 750 /etc/opt/ss5/ss5.passwd

In /etc/opt/ss5/ss5.passwd, specify user and pass separated by a space and one user/password per line.

  1. Start ss5
  1. Permission

本文由必威发布于必威-运维,转载请注明出处:四句命令 yum必威手机官网: update -y

相关阅读