CentOS7 ss5 & Shadowsocks
博客专区 > banwh 的博客 > 博客详情
CentOS7 ss5 & Shadowsocks
banwh 发表于6个月前
CentOS7 ss5 & Shadowsocks
  • 发表于 6个月前
  • 阅读 2
  • 收藏 0
  • 点赞 0
  • 评论 0

新睿云服务器60天免费使用,快来体验!>>>   

ss5

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
./configure && make && make install

vim /etc/opt/ss5/ss5.conf
auth    0.0.0.0/0               -               -
permit -    0.0.0.0/0   -   0.0.0.0/0   -   -   -   -   -

vim /etc/opt/ss5/ss5.passwd
root passwd

chmod a+x /etc/init.d/ss5
service ss5 start
chkconfig --add ss5
chkconfig --level 2345 ss5 on

 

Shadowsocks

1. 链接

https://github.com/shadowsocks/shadowsocks/wiki
https://github.com/shadowsocks/shadowsocks-windows/wiki/Shadowsocks-Windows-%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E

2. 安装

1. yum 安装

yum install gcc gettext autoconf libtool automake make openssl-devel pcre-devel asciidoc xmlto zlib-devel openssl-devel libsodium-devel udns-devel libev-devel -y
wget https://copr.fedorainfracloud.org/coprs/librehat/shadowsocks/repo/epel-7/librehat-shadowsocks-epel-7.repo
cp librehat-shadowsocks-epel-7.repo /etc/yum.repos.d/
yum update yum install shadowsocks-libev

2. pip 安装

yum install python-setuptools
easy_install pip
pip install shadowsocks

3. 配置

/etc/shadowsocks-libev/config.json
{
    "server":"0.0.0.0",
    "server_port":8388,
    "local_address": "127.0.0.1",
    "local_port":1080,
    "password":"passwd",
    "timeout":300,
    "method":"aes-256-cfb",
    "fast_open": false
}

4. 启动

1. yum 安装 启动

/usr/bin/ss-server -c /etc/shadowsocks-libev/config.json
systemctl start shadowsocks 
systemctl enable shadowsocks
systemctl stop shadowsocks

2. pip 安装 启动

ssserver -c /etc/shadowsocks-libev/config.json
ssserver -c /etc/shadowsocks-libev/shadowsocks.json -d start
ssserver -c /etc/shadowsocks-libev/shadowsocks.json -d stop

 

 

  • 打赏
  • 点赞
  • 收藏
  • 分享
共有 人打赏支持
粉丝 1
博文 40
码字总数 76957
×
banwh
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
打赏人
留言
* 支付类型
微信扫码支付
打赏金额:
已支付成功
打赏金额: