{"id":15107302,"url":"https://github.com/quniu/shadowsocksr","last_synced_at":"2025-10-08T14:50:56.619Z","repository":{"id":56633264,"uuid":"149546362","full_name":"quniu/shadowsocksr","owner":"quniu","description":"兼容ssrpanel的自改版SSR(R)后端，可兼容原版SS、SSR，本版本是带有IP自动上报功能","archived":false,"fork":false,"pushed_at":"2020-10-27T21:41:54.000Z","size":158,"stargazers_count":12,"open_issues_count":1,"forks_count":7,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-06T15:12:02.089Z","etag":null,"topics":["shadowsocks","shadowsocksr","ss","ssr"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/quniu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-20T03:32:03.000Z","updated_at":"2023-08-16T08:19:16.000Z","dependencies_parsed_at":"2022-08-15T22:20:22.409Z","dependency_job_id":null,"html_url":"https://github.com/quniu/shadowsocksr","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/quniu/shadowsocksr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quniu%2Fshadowsocksr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quniu%2Fshadowsocksr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quniu%2Fshadowsocksr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quniu%2Fshadowsocksr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quniu","download_url":"https://codeload.github.com/quniu/shadowsocksr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quniu%2Fshadowsocksr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278963718,"owners_count":26076542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["shadowsocks","shadowsocksr","ss","ssr"],"created_at":"2024-09-25T21:22:56.878Z","updated_at":"2025-10-08T14:50:56.603Z","avatar_url":"https://github.com/quniu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"SSRR\n\n兼容SSRPanel的自改版SSR(R)后端，可兼容原版SS、SSR，本版本是带有IP自动上报功能的\n\n## 安装\n- wget https://github.com/quniu/shadowsocksr/archive/master.zip \u0026\u0026 unzip master \u0026\u0026 mv shadowsocksr-master shadowsocksr\n\n## 更新软件源\n#### CentOS\n- yum update\n\n#### Ubuntu/Debian\n- sudo apt-get update\n\n## 安装\n#### Python3.x\n\n1. 安装pyenv 参照:[Pyenv Common build problems](https://github.com/pyenv/pyenv/wiki/Common-build-problems)\n```\n# Ubuntu/Debian:\nsudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \\\nlibreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \\\nxz-utils tk-dev libffi-dev liblzma-dev gcc readline readline-devel readline-static \\\nopenssl openssl-devel openssl-static sqlite-devel bzip2-devel bzip2-libs\n\n# Fedora/CentOS/RHEL(aws ec2):\nsudo yum install -y zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel \\\nopenssl-devel xz xz-devel libffi-devel gcc readline readline-devel readline-static \\\nopenssl openssl-devel openssl-static sqlite-devel bzip2-devel bzip2-libs\n\n```\n\n2.安装pyenv\n```\ncurl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash\n```\n\n3.添加环境变量到.bashrc\n```\ncat \u003e\u003e ~/.bashrc \u003c\u003c EOF\nexport PATH=\"/root/.pyenv/bin:\\$PATH\"\neval \"\\$(pyenv init -)\"\neval \"\\$(pyenv virtualenv-init -)\"\nEOF\nsource ~/.bashrc\n```\n\n4.用pyenv安装并启用python\n```\npyenv install 3.7.1\npyenv global 3.7.1\n```\n\n5.安装shadowsocks依赖\n```\ncd shadowsocksr\npip install -r requestment.txt\n```\n---\n\n#### Python2.x\n```\n# Ubuntu/Debian:\napt-get install python-pip\n\ncd shadowsocksr\npip install -r requestment.txt\n```\n\n#### 编辑节点配置（混淆、协议、限速、IPV6）\n\n    vi user-mysql.json\n\n    protocol 协议，带 _compatible 结尾兼容 原版，直接用原版可以改为 origin\n    protocol_param 协议参数，配置了的话，客户端也要一致\n    obfs 混淆 tls1.2_ticket_auth 可以限制客户端数量 tls1.2_ticket_auth_compatible 兼容原版，直接用原版可以改为 plain\n    obfs_param 混淆参数，当obfs为 tls1.2_ticket_auth 的时候，这个值为 1 到 256 之间，表示限制客户端数量\n    additional_ports 单端口配置，请看wiki\n    additional_ports_only 强制单端口，改为true则所有非设置的单端口都无法连接，只能用additional_ports设置的那些端口连接\n    dns_ipv6 为true时，会优先走ipv6，需要节点服务器至少有一个2开头的ipv6地址（有时候会导致IPV4失效，不推荐开启，你可以自己试试）\n    connect_verbose_info 为1时记录用户访问网址，推荐打开，可以清楚知道连接成功与否\n    redirect 请求失败时返回信息伪造成访问配置里网址\n\n\n#### 编辑数据库连接信息\n\n    vi usermysql.json\n\n    host 数据库地址，如果是本机就是127.0.0.1\n    port 数据库连接端口\n    user 数据库连接用户，不推荐使用root\n    password 数据库连接密码\n    db 面板所在数据库\n    node_id 节点ID，对应面板里的 节点列表 最左侧的id（请先将面板搭建好，然后创建一个节点，就有节点ID了）\n    transfer_mul 节点流量计算比例，默认1.0，填1也可以，1表示：用了100M算100M，10表示用了100M算1000M，0.1表示用了100M算10M。\n\n#### 运行、关闭、看日志\n\n    sh logrun.sh\n    sh stop.sh\n    sh tail.sh\n\n#### 其他\n\n数据库机的 iptables、firewall 得对本节点IP开放\n\n数据库机的 mysql 的对本节点进行授权（不推荐使用root账号）\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquniu%2Fshadowsocksr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquniu%2Fshadowsocksr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquniu%2Fshadowsocksr/lists"}