[关闭]
@forestsheep 2018-02-11T10:40:13.000000Z 字数 1794 阅读 1411

SSR配置

服务器

SSR配置

以下是新版ssrr的配置

  1. SSR
  2. 增加TCP连接数量
  3. nano /etc/security/limits.conf
  4. 添加两行:
  5. * soft nofile 51200
  6. * hard nofile 51200
  7. 设置ulimit
  8. ulimit -n 51200
  9. 连接SSH,运行下面的命令
  10. wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh
  11. chmod +x bbr.sh
  12. ./bbr.sh
  13. 添加一些优化内容
  14. 修改sysctl.conf
  15. nano /etc/sysctl.conf
  16. 复制代码:
  17. #TCP配置优化(不然你自己根本不知道你在干什么)
  18. fs.file-max = 51200
  19. net.core.rmem_max = 67108864
  20. net.core.wmem_max = 67108864
  21. net.core.netdev_max_backlog = 250000
  22. net.core.somaxconn = 4096
  23. #net.core.default_qdisc = fq
  24. net.ipv4.tcp_syncookies = 1
  25. net.ipv4.tcp_tw_reuse = 1
  26. net.ipv4.tcp_tw_recycle = 0
  27. net.ipv4.tcp_fin_timeout = 30
  28. net.ipv4.tcp_keepalive_time = 1200
  29. net.ipv4.ip_local_port_range = 10000 65000
  30. net.ipv4.tcp_max_syn_backlog = 8192
  31. net.ipv4.tcp_max_tw_buckets = 5000
  32. net.ipv4.tcp_fastopen = 3
  33. net.ipv4.tcp_mem = 25600 51200 102400
  34. net.ipv4.tcp_rmem = 4096 87380 67108864
  35. net.ipv4.tcp_wmem = 4096 65536 67108864
  36. net.ipv4.tcp_mtu_probing = 1
  37. net.ipv4.tcp_congestion_control = bbr
  38. 保存(Ctrl + X —— y ——回车)
  39. 应用
  40. sysctl -p
  41. 执行 sysctl net.ipv4.tcp_available_congestion_control
  42. apt-get update
  43. apt-get install m2crypto git build-essential python-pip python-m2crypto -y
  44. wget https://github.com/jedisct1/libsodium/releases/download/1.0.13/libsodium-1.0.13.tar.gz
  45. tar xf libsodium-1.0.13.tar.gz && cd libsodium-1.0.13
  46. ./configure && make -j2 && make install
  47. ldconfig
  48. git clone -b akkariiin/master https://github.com/shadowsocksrr/shadowsocksr
  49. cd ~/shadowsocksr
  50. bash initcfg.sh
  51. shadowsocksr目录内,对userapiconfig.py里以下内容进行相应修改:
  52. API_INTERFACE = 'mudbjson' #修改接口类型
  53. SERVER_PUB_ADDR = '127.0.0.1' #修改生成链接对应的公网IP
  54. python mujson_mgr.py -a -u boccaro -p 80 -k fkgfw -m none -O auth_chain_a -o http_simple -t 512
  55. python mujson_mgr.py -a -u fs -p 443 -k fkgfw -m chacha20 -O auth_sha1_v4 -o tls1.2_ticket_auth -t 512
  56. python mujson_mgr.py -a -u tuzi -p 35288 -k Tz791121 -m chacha20 -O auth_sha1_v4 -o tls1.2_ticket_auth -t 512
  57. To run in the backg
  58. ./logrun
  59. To stop:
  60. ./stop.sh
  61. To monitor the log:
  62. ./tail.sh

ssr windows c# 客户端

下载页面


ssr andriod 客户端

下载页面

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注