This repository has been archived by the owner on Dec 5, 2021. It is now read-only.
forked from mengskysama/shadowsocks-rm
-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Firewall and API updates
- Loading branch information
Showing
6 changed files
with
263 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,34 @@ | ||
About shadowsocks-python manyuser | ||
================================= | ||
This is a multi-user version of shadowsocks-python. Requires a mysql database. | ||
This is a multi-user version of shadowsocks-python. Requires a mysql database or a panel support SS MU API. | ||
|
||
Install | ||
------- | ||
1. install MySQL 5.x.x | ||
Install instruction for database user | ||
------------------------------------- | ||
1. install MySQL Server 5.x.x | ||
2. install cymysql library by `pip install cymysql` | ||
3. create a database named `shadowsocks` | ||
4. import `shadowsocks.sql` into `shadowsocks` | ||
5. copy `config_example.py` to `config.py` and edit it following the notes inside (but DO NOT delete the example file) | ||
6. TestRun `cd shadowsocks && python servers.py` (not server.py) | ||
|
||
Install instruction for MU API user | ||
----------------------------------- | ||
1. install a panel which supports MU API (the known one is [SS-Panel V3](https://github.com/orvice/ss-panel)) | ||
2. copy `config_example.py` to `config.py` and edit it following the notes inside (but DO NOT delete the example file) | ||
3. TestRun `cd shadowsocks && python servers.py` (not server.py) | ||
|
||
|
||
if no exception the server will startup. By default logging is enabled. | ||
You should be able to see this kind of thing in `shadowsocks.log`(default log file name) | ||
``` | ||
May 25 23:03:16 INFO Multi-User Shadowsocks Server Starting... | ||
May 25 23:03:17 INFO Current Server Version: 2.8.3-83-gf8dd2f8 | ||
May 25 23:03:18 INFO db skipped port 443 | ||
May 25 23:03:19 INFO db downloaded | ||
May 25 23:03:19 INFO Server Added: P[XXXX], M[aes-256-cfb], E[[email protected]] | ||
Jun 24 01:06:08 INFO ----------------------------------------- | ||
Jun 24 01:06:08 INFO Multi-User Shadowsocks Server Starting... | ||
Jun 24 01:06:08 INFO Current Server Version: 3.1.0-1-gc2ac618 | ||
Jun 24 01:10:11 INFO api downloaded | ||
Jun 24 01:10:13 INFO api skipped port 443 | ||
Jun 24 01:10:13 INFO Server Added: P[XXXXX], M[rc4-md5], E[[email protected]] | ||
Jun 24 01:10:13 INFO Server Added: P[XXXXX], M[rc4-md5], E[[email protected]] | ||
``` | ||
|
||
Explanation of the log output | ||
|
@@ -58,7 +67,7 @@ Database user table column | |
|
||
Compatibility with other frontend UIs | ||
------------------------------------- | ||
It is compatible with [ss-panel](https://github.com/orvice/ss-panel). | ||
It is fully compatible (SS MU API) with [ss-panel V3](https://github.com/orvice/ss-panel). | ||
|
||
Open source license | ||
------------------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.