1. 首页
  2. 技术小贴

科学上网指南

搭建ssr服务器

技术小贴
技术小贴

采用doub的一键部署脚本:

wget -N --no-check-certificate https://raw.githubusercontent.com/CecilWu/SSR-Chinese/master/ssr.sh && chmod +x ssr.sh && bash ssr.sh

搭建ssr客户端

#针对Linux
git clone https://github.com/ssrbackup/shadowsocksr
cp shadowsocksr/config.json /etc/shadowsocks.json 
vim /etc/shadowsocks.json 
vim ssr.sh 
#添加以下内容
python ~/shadowsocksr/shadowsocks/local.py -c /etc/shadowsocks.json 
#配置代理链
vim /etc/proxychains.conf
##去掉dynamic_chain的注释
##在最后加上 sock5 127.0.0.1 1080
#测试 
proxychains firefox

搭建ss客户端

  • pip install shadowsocks
  • vi /etc/shadowsocks.json
{
   "server": "139.180.141.162",
   "server_ipv6": "::",
   "server_port": 2333,
   "local_address": "127.0.0.1",
   "local_port": 1080,
 
   "password": "doub.io",
   "method": "aes-128-ctr",
   "protocol": "auth_sha1_v4",
   "protocol_param": "",
   "obfs": "plain",
   "obfs_param": "",
   "speed_limit_per_con": 0,
   "speed_limit_per_user": 0,

   "additional_ports" : {}, 
   "additional_ports_only" : false, 
   "timeout": 120,
   "udp_timeout": 60,
   "dns_ipv6": false,
   "connect_verbose_info": 0,
   "redirect": "",
   "fast_open": false
}
  • 快速启动ss
  • vi ss.sh
  • sslocal -c /etc/shadowsocks.json
  • chmod +x ss.sh
  • mv ss.sh /usr/bin/ss
  • 配置代理链
    • vim /etc/proxychains.conf
    • 去掉dynamic_chain的注释
    • 在最后加上 sock5 127.0.0.1 1080
  • 错误解决
  • shadowsocks2.8.2启动报undefined symbol: EVP_CIPHER_CTX_cleanup
    • vim /usr/local/lib/python2.7/dist-packages/shadowsocks/crypto/openssl.py
  • 将libcrypto.EVP_CIPHER_CTX_cleanup(self._ctx),libcrypto.EVP_CIPHER_CTX_cleanup.argtypes中的cleanup改为reset
  • ss 重启ss客户端
  • 测试

原创文章,作者:小嵘源码,如若转载,请注明出处:https://www.lcpttec.com/kxswzn/

联系我们

176-888-72082

在线咨询:点击这里给我发消息

邮件:2668888288@qq.com

工作时间:周一至周五,9:00-18:00,节假日休息

QR code