Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能不能给SS的服务端为每个用户分别配置代理ip出口的功能 #87

Open
wants to merge 184 commits into
base: manyuser
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
184 commits
Select commit Hold shift + click to select a range
f2df4d0
Update config.py
zuoruizhi May 18, 2016
f485d0b
Update servers.py
zuoruizhi May 18, 2016
0a1113c
Update tcprelay.py
zuoruizhi May 18, 2016
5336a80
Update udprelay.py
zuoruizhi May 18, 2016
dbc5c31
Update dbtransfer.py
zuoruizhi May 18, 2016
ffcbfc5
Update dbtransfer.py
zuoruizhi May 18, 2016
9ca4907
Update dbtransfer.py
zuoruizhi May 18, 2016
564c942
Merge pull request #1 from zuoruizhi/manyuser
fsgmhoward May 23, 2016
b4bc110
PEP8 Calibration
fsgmhoward May 23, 2016
f8dd2f8
Lots of modification
fsgmhoward May 23, 2016
53765a3
Added feature of blocking specific ports. README.md is altered.
fsgmhoward May 25, 2016
59cfd30
Fix fatal
fsgmhoward May 28, 2016
875f99a
Update config.example.py
zuoruizhi May 28, 2016
bddd1e9
support ss-panel V3 mu api
zuoruizhi May 28, 2016
a2fbed6
Update config.example.py
zuoruizhi May 28, 2016
1575964
support ss-panel V3 mu api
zuoruizhi May 28, 2016
f3e45cb
support ss-panel V3 mu api
zuoruizhi May 28, 2016
1cebb0d
Merge pull request #2 from zuoruizhi/manyuser
fsgmhoward May 29, 2016
a87f5b8
fix mu api
zuoruizhi May 29, 2016
db8ff80
add custom method switch
zuoruizhi May 29, 2016
6aa5a86
Merge pull request #4 from zuoruizhi/CUSTOM_METHOD_switch
fsgmhoward May 29, 2016
d66a07a
Merge pull request #3 from zuoruizhi/CUSTOM_METHOD_switch
zuoruizhi May 29, 2016
57204c4
use new method to update user traffic
zuoruizhi May 30, 2016
3deec82
test
zuoruizhi May 30, 2016
3fb14cd
Revert "test"
zuoruizhi May 30, 2016
16ae784
Merge pull request #5 from zuoruizhi/manyuser
fsgmhoward Jun 1, 2016
1d5923d
Fix a problem, which makes ports not be blocked by the program
fsgmhoward Jun 1, 2016
3db01de
Minor changes
fsgmhoward Jun 2, 2016
3bc4b8c
update log
zuoruizhi Jun 11, 2016
8c5a650
Revert SQL change
zuoruizhi Jun 11, 2016
73e12ea
Merge pull request #6 from zuoruizhi/manyuser
fsgmhoward Jun 11, 2016
a7687b5
delete duplicate code
zuoruizhi Jun 12, 2016
df9bf26
Merge pull request #7 from zuoruizhi/manyuser
fsgmhoward Jun 12, 2016
ddf5565
Remove unused method
fsgmhoward Jun 12, 2016
c3216c3
Merge branch 'manyuser' of https://github.com/fsgmhoward/shadowsocks-…
fsgmhoward Jun 13, 2016
5084642
Fixed some potential errors
fsgmhoward Jun 13, 2016
cde7287
Update logging
fsgmhoward Jun 13, 2016
d9269ed
Some updates and minor fixes
fsgmhoward Jun 14, 2016
04da94d
Updated SQL
fsgmhoward Jun 14, 2016
dec8d46
Fixed an error.
fsgmhoward Jun 15, 2016
c9589bb
Changed the logic of OTA
fsgmhoward Jun 18, 2016
8c6ffe2
Fixed a bug
fsgmhoward Jun 18, 2016
8660c3b
Added user-port output for most log
fsgmhoward Jun 18, 2016
1c3524c
changed UDPRelay._ota_chunk_data_gen to static method
fsgmhoward Jun 18, 2016
7f61f50
Revert "Fixed a bug"
fsgmhoward Jun 18, 2016
2dbf5a4
Added some more descriptions for config
fsgmhoward Jun 18, 2016
f87e5b4
Added version check of the configuration file to avoid unpredictable …
fsgmhoward Jun 18, 2016
18e1c9b
Fixed the logging error
fsgmhoward Jun 18, 2016
5ca0cc4
Fix fatal
fsgmhoward Jun 18, 2016
2ca8b8e
Revert "Fixed the logging error"
fsgmhoward Jun 18, 2016
254d3e4
Fixed the UDP connection log problem
fsgmhoward Jun 19, 2016
c88ab2b
Log fixes
fsgmhoward Jun 19, 2016
6dad4b2
Compatible with Python < 2.7 (subprocess.check_output)
fsgmhoward Jun 22, 2016
7569352
Log update
fsgmhoward Jun 22, 2016
4e7569a
Extended firewall settings
fsgmhoward Jun 23, 2016
cc6a70f
Fixed a logging bug
fsgmhoward Jun 23, 2016
589cc67
Added firewall_allow_port 53 8080 and 8081
fsgmhoward Jun 23, 2016
0421087
Update notice
fsgmhoward Jun 23, 2016
69eb3ac
A great update: API update
fsgmhoward Jun 23, 2016
c2ac618
Added debugging output for send_command
fsgmhoward Jun 23, 2016
11841ad
Update README.md
fsgmhoward Jun 23, 2016
3244bbe
Bug fixes
fsgmhoward Jun 25, 2016
6f2efb1
Fixed a firewall error
fsgmhoward Jun 25, 2016
28a0f42
Fixed a logging error
fsgmhoward Jun 25, 2016
be856c1
Release of V3.1.0
fsgmhoward Jun 25, 2016
d988cdc
Some improvements:
fsgmhoward Jun 26, 2016
4ad1564
Merge pull request #9 from fsgmhoward/dev
fsgmhoward Jun 26, 2016
795a6c2
Performance improvements
fsgmhoward Jun 26, 2016
3028c55
Bug fixes
fsgmhoward Jun 26, 2016
c7243f9
Bug fixes
fsgmhoward Jun 26, 2016
b565b2b
Merge pull request #10 from fsgmhoward/dev
fsgmhoward Jun 26, 2016
851acf7
Release of V3.1.1
fsgmhoward Jun 26, 2016
2a57ad0
Release of V3.1.1 (#11)
fsgmhoward Jun 26, 2016
5d43a14
Revert "Changed the logic of OTA"
fsgmhoward Jun 27, 2016
b50bf10
Logging improvement
fsgmhoward Jun 27, 2016
030401c
Bug fixes
fsgmhoward Jun 28, 2016
42d3fdc
Logging improvements
fsgmhoward Jun 28, 2016
06caedb
Added exception callback
fsgmhoward Jun 28, 2016
fe5fa2e
Bug Fixes and Minor Improvements (#12)
fsgmhoward Jul 3, 2016
20f4804
Fixed TCP logging bug
fsgmhoward Jul 3, 2016
5577134
Merge branch 'dev' into manyuser
fsgmhoward Jul 15, 2016
b337281
Fix bug
fsgmhoward Jul 15, 2016
f878e64
Fix bug (#15)
fsgmhoward Jul 15, 2016
6ef14e5
Add chacha20-ietf crypto (#590)
smounives Aug 17, 2016
f4a94df
password to passwd
henryhuang Aug 19, 2016
43249c6
Merge pull request #21 from henryhuang/manyuser
fsgmhoward Aug 20, 2016
f35590b
Dockfile add libsodium (#601)
ficapy Aug 23, 2016
56bf81f
fix ota (#609)(#610) (#610)
v3aqb Sep 4, 2016
5c11527
fix ota call write_to_sock multi
mengskysama Sep 4, 2016
e06bfd4
Merge branch 'manyuser' of https://github.com/fsgmhoward/shadowsocks-…
fsgmhoward Sep 25, 2016
5cd9f04
Refactor (#615)
ahxxm Oct 7, 2016
4f28f7c
Fix a OTA bug on `_ota_chunk_data` (#642)
loggerhead Oct 10, 2016
5a05312
Fix method on manager's add command (#578) (#614)
sorz Oct 11, 2016
6dae6e2
fix that autoban can not get ip when use ipv6 (#674)
littlezz Nov 20, 2016
72f1d68
Fixed #675 (#676)
loggerhead Nov 20, 2016
229ec75
Update README.md (#643)
casouri Nov 20, 2016
d31003e
new debian package (#659)
shell909090 Nov 20, 2016
bdefeb5
Update README.md (#697)
anthonywong Jan 2, 2017
392e54e
update regex to support hostnames containing underscore (#694)
Jan 2, 2017
ad39d95
2.9.1
mengskysama Jan 2, 2017
5ed7cfe
Docker Support (#27)
coderfox Jan 31, 2017
417efe5
fix libsodium (#28)
coderfox Feb 11, 2017
9769fc8
Merged branch manyuser into dev
fsgmhoward Feb 11, 2017
fc3468a
Added chacha20-ietf crypto
fsgmhoward Feb 11, 2017
b49f455
update regex to support hostnames containing underscore
fsgmhoward Feb 11, 2017
0b15dbe
Fix a OTA bug on `_ota_chunk_data`
fsgmhoward Feb 11, 2017
fe609eb
Edited README.md for Docker and/or Database user
fsgmhoward Feb 12, 2017
1ba3d8b
Merged release/3.2.0 into manyuser
fsgmhoward Feb 12, 2017
34a01c1
Merged release/3.2.0 into dev
fsgmhoward Feb 12, 2017
8ac72b0
parse dns_servre in config (#739)
supermariogo Feb 28, 2017
fe13c20
Correct spelling. (#755)
tssujt Feb 28, 2017
e06819c
add simple ss-tunnel to shadowsocks for dns forward (#759)
Mar 2, 2017
c4731de
Update README.md (#575)
elvisw Mar 2, 2017
445a3c9
Add AEAD ciphers support (#775)
made-by-love Mar 4, 2017
d6b40ef
encrypt.py is renamed to cryptor.py (#780)
made-by-love Mar 4, 2017
74f8f8c
Add sodium:aes-256-gcm and openssl:ocb AEAD mode (#784)
made-by-love Mar 10, 2017
4e21f83
Handle cipher exceptions #783 (#791)
made-by-love Mar 14, 2017
9e25cc6
fix some error for parse dns_servre in config (#798)
Mar 19, 2017
3a4adfd
Fix #34
fsgmhoward Mar 19, 2017
1222fb1
update find_lib's name for the new openssl-1.1 dll (just for windows)…
Mar 21, 2017
b4ab368
Merge branch 'manyuser' into dev
fsgmhoward Mar 22, 2017
af51e1c
new debian package
shell909090 Nov 20, 2016
964db9f
Add AEAD ciphers support
fsgmhoward Mar 26, 2017
64d0243
Add sodium:aes-256-gcm and openssl:ocb AEAD mode
made-by-love Mar 10, 2017
387d1db
update find_lib's name for the new openssl-1.1 dll (just for windows)
Mar 21, 2017
a532783
Added traceback to subprocess_callback
fsgmhoward Apr 1, 2017
dd92d3c
Refactor
fsgmhoward Apr 1, 2017
a81087e
Handle cipher exception
fsgmhoward Apr 1, 2017
b1c2280
Merge branch 'HEAD' into dev
fsgmhoward Apr 1, 2017
ae46569
Release version 3.3.0
fsgmhoward Apr 1, 2017
7f0a6af
Merge branch 'release/3.3.0' into manyuser
fsgmhoward Apr 1, 2017
f364d24
Merge branch 'release/3.3.0' into dev
fsgmhoward Apr 1, 2017
9896a65
Fix git in docker (#40) and updated README.md
fsgmhoward Apr 5, 2017
1a71b18
Merge branch 'manyuser' into dev
fsgmhoward Apr 5, 2017
c9ce79c
Fix memory leak when excpetions occur
made-by-love Mar 28, 2017
841b172
Merge branch 'hotfix/memoryleak' into manyuser
fsgmhoward Apr 8, 2017
d2c9a1b
Merge branch 'hotfix/memoryleak' into dev
fsgmhoward Apr 8, 2017
f9893f6
Update README.md
fsgmhoward Apr 26, 2017
9504e59
Merge branch 'hotfix/readme-20170426' into manyuser
fsgmhoward Apr 26, 2017
e6918dd
Merge branch 'hotfix/readme-20170426' into dev
fsgmhoward Apr 26, 2017
0f4e3fa
Add mbedtls wrapper, custom crypto lib path, test files (#803)
made-by-love Apr 29, 2017
06b028b
Fix memory leak when excpetions occur (#814)
made-by-love Apr 29, 2017
13b5d6e
Fix udp dns issue under python3 (#849)
made-by-love May 12, 2017
d5026cf
Update README.md (#841)
tedlz123 May 12, 2017
5bd640b
Fix memory leak (#48)
Aug 1, 2017
aa4a592
Merged upstream repo: 'https://github.com/shadowsocks/shadowsocks'
fsgmhoward Aug 1, 2017
7e7bea3
Finish Upstream_Merge
fsgmhoward Aug 1, 2017
35d7b0f
Merge branch 'manyuser' into dev
fsgmhoward Aug 1, 2017
893f909
Fix memory leak (#921)
esdeathlove Sep 6, 2017
3c82f02
Improve lru_cache. Update test for it (#897)
MinweiShen Sep 6, 2017
91e6237
Update README.md (#734)
anthonywong Sep 6, 2017
0b0379b
Add new file snapcraft.yaml for building snap package (#932)
anthonywong Sep 6, 2017
0168be7
Update .travis.yml
mengskysama Sep 6, 2017
f7d7aee
Fix typo (#866)
apemost Sep 6, 2017
2ab8c6b
Update jenkins.sh
mengskysama Sep 6, 2017
30ae661
Finish Upstream Merge from shadowsocks/shadowsocks
fsgmhoward Sep 11, 2017
5ec4c69
Released 3.4.0
fsgmhoward Sep 16, 2017
f571a08
Fix Version for 3.4.0-dev
fsgmhoward Oct 10, 2017
9a888c4
Added option to enforce the use of AEAD ciphers (#41)
fsgmhoward Nov 20, 2017
ebfd7e1
Create ISSUE_TEMPLATE.md
fsgmhoward Dec 1, 2017
0914bbb
Merge branch 'dev' into manyuser
fsgmhoward Dec 2, 2017
710d6bf
Change default state of AEAD enforcement back to False
fsgmhoward Dec 20, 2017
8b30264
update run_method() (#1161)
mengskysama Feb 18, 2018
c668f44
Update README.md (#1042)
netroby Feb 18, 2018
e332ec9
use list instead of string, prevent injection attack. (#1009)
shell909090 Feb 19, 2018
0aa9be6
Merge remote-tracking branch 'Shadowsocks-Original/master' into dev
fsgmhoward Feb 26, 2018
4bb8d19
Modify README.md & add detection for docker instances
fsgmhoward Feb 28, 2018
abca686
Minor fixes
fsgmhoward Mar 4, 2018
5919e34
Removed OTA Setting from the configuration file
fsgmhoward May 28, 2018
6d08dc4
Completely removed One Time Auth feature (#41)
fsgmhoward May 28, 2018
6cc8692
Updated the configuration file
fsgmhoward May 31, 2018
5917497
Merge branch 'dev' into manyuser
fsgmhoward Jul 21, 2018
7e94e2b
Updated comments in example config and README.md
fsgmhoward Jul 30, 2018
b0adbf5
Disable logging to sys.stdout in docker (#61)
fsgmhoward Jul 30, 2018
97026b8
Use WatchedFileHandler for non-Windows platforms
fsgmhoward Jul 31, 2018
68511d9
Fixed some compatibility issues with python 3
fsgmhoward Jul 31, 2018
11e326a
Replace deprecated logging.warn with logging.warning
fsgmhoward Aug 4, 2018
a3daed3
Re-organized methods in dbtransfer
fsgmhoward Aug 4, 2018
17261a6
Cleaned unnecessary codes and fixed TypeError for http_post
fsgmhoward Aug 4, 2018
410e169
Merge branch 'dev' into manyuser
fsgmhoward Aug 12, 2018
ae88fc8
Fix bug in getting traffic stats from server
fsgmhoward Aug 13, 2018
03ab257
Finish hotfix-1
fsgmhoward Aug 13, 2018
15ad382
Allow the MU API to return less data
balthild Mar 13, 2019
293b2ae
Merge pull request #68 from balthild/patch-1
fsgmhoward Mar 13, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
- Firstly, you are suggested to try the latest released version **OR** the latest commit.
- Secondly, before you submit an issue, please first search existing issues (including the open and closed ones).
- Lastly, if the above two did not help, please submit an issue following this template.
- **PLEASE MAKE SURE THAT THE PROBLEM IS WITH THIS REPO. WE DO NOT ANSWER ANY PROBLEM RELATED TO YOUR PANEL/WEB SERVER**
- You are free to delete this and the above lines (total 5 lines)

# Version
(tell us the version you are using, including the commit hash if you are not using a released version)

# Your Problem
(describe: what you have done, what you expect to see, what you actually see)

(you can paste your log here. Please enable VERBOSE in the configuration file and run the server again to get detailed log)

(suggestion is also welcomed)

# Your Configuration File
(i.e. config.py. Please use proper markdown to quote it. Remember to delete all sensitive info such as domain name & api key)
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,20 @@ htmlcov

.DS_Store
.idea
tags
shadowsocks/config.py
*.log
*.pyc

#Emacs
.#*
venv/

# VS-code
.vscode/

# Pycharm
.idea

#ss
config.json
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ cache:
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq build-essential dnsutils iproute nginx bc
- sudo dd if=/dev/urandom of=/usr/share/nginx/www/file bs=1M count=10
- sudo dd if=/dev/urandom of=/usr/share/nginx/html/file bs=1M count=10
- sudo sh -c "echo '127.0.0.1 localhost' > /etc/hosts"
- sudo service nginx restart
- pip install pep8 pyflakes nose coverage PySocks
- sudo tests/socksify/install.sh
- sudo tests/libsodium/install.sh
- sudo tests/libmbedtls/install.sh
- sudo tests/libopenssl/install.sh
- sudo tests/setup_tc.sh
script:
- tests/jenkins.sh
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM python:2.7-alpine
MAINTAINER coderfox<[email protected]>
RUN apk update && apk add libsodium git
COPY . /shadowsocks
WORKDIR /shadowsocks/shadowsocks
RUN pip install cymysql
CMD python servers.py
149 changes: 93 additions & 56 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,66 +1,103 @@
About manyuser
----------------

Install
-------

install MySQL 5.x.x

`pip install cymysql`

create a database named `shadowsocks`

import `shadowsocks.sql` into `shadowsocks`

if you upgrade from old version make sure:

`pass` is varchar(32) NOT NULL,
`passwd` is varchar(32) NOT NULL,
`last_get_gift_time` not `last_get_gitf_time`


edit config.py

Example:

#Config
MYSQL_HOST = 'mengsky.net'
MYSQL_PORT = 3306
MYSQL_USER = 'root'
MYSQL_PASS = 'root'
MYSQL_DB = 'shadowsocks'

MANAGE_PASS = 'passwd'
#if you want manage in other server you should set this value to global ip
MANAGE_BIND_IP = '127.0.0.1'
#make sure this port is idle
MANAGE_PORT = 23333
#BIND IP
#if you want bind ipv4 and ipv6 '[::]'
#if you want bind all of ipv4 if '0.0.0.0'
#if you want bind all of if only '4.4.4.4'
SS_BIND_IP = '0.0.0.0'


TestRun `cd shadowsocks` ` python servers.py` not server.py

if no exception server will startup. you will see such like
Example:

add: {"server_port": XXXXX, "password":"XXXXX"}

About Shadowsocks-python Manyuser
=================================
This is a multi-user version of shadowsocks-python. Requires a mysql database or a panel which supports SS MU API.

Requirement
-----------
1. Python >= 2.5 (python=2.5 need to install extra library: `pip install simplejson`)
2. MySQL >= 5 (if using database)
3. A Panel with [MU API](https://github.com/fsgmhoward/shadowsocks-py-mu/wiki/MultiUser-(MU)-API-Reference), such as [SS-Panel V3](https://github.com/orvice/ss-panel). (if using MU API)

Install Instructions for Database User
--------------------------------------
1. install `cymysql` library by `pip install cymysql`
2. create a database named `shadowsocks`
3. import `shadowsocks.sql` into the `shadowsocks` database
4. copy `config_example.py` to `config.py` and edit it following the notes inside (but DO NOT delete the example file). You *DO NOT* need to edit the API section.
5. TestRun `cd shadowsocks && python servers.py` (not server.py)

Install Instructions for MU API User
-----------------------------------
1. copy `config_example.py` to `config.py` and edit it following the notes inside (but DO NOT delete the example file). You *DO NOT* need to edit the Database section.
2. TestRun `cd shadowsocks && python servers.py` (not server.py)

Install Instructions for Docker User
------------------------------------

1. build the docker: `docker build -t shadowsocks-mu .`
2. create a config file as above
3. run the docker (random free ports will be allocated):

```
docker run -it \
-v /PATH/TO/CONFIG/FILE:/shadowsocks/shadowsocks/config.py \
-v /PATH/TO/LOG/FILE:/shadowsocks/shadowsocks/shadowsocks.log \
-p PORT_START-PORT_END \
shadowsocks-mu
```

If you want to use fixed ports (e.g. port 443 of the host being matched with 443 of the docker), use `-p PORT_START-PORT_END:PORT_START-PORT_END` instead.

Note: `/PATH/TO/CONFIG/FILE` & `/PATH/TO/LOG/FILE` should be **absolute** paths

Reminders for Windows User
--------------------------
1. install `pyuv` library by `pip install pyuv`
2. if git is not configured in your `%PATH%` environmental variable, you can create a file named `.nogit` to avoid using `git describe`

If no exceptions are thrown, 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)
```
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
-----------------------------
When adding server:

`P[XXX]` client port (assigned by database)

`M[XXX]` client encryption method

`E[XXX]` client email address

When data connection being established/blocked

`U[XXX]` client port (assigned by database)

`RP[XXX]` remote port (the port the client wants to connect)

`A[XXX-->XXX]` from the client address to the remote address

Database user table column
------------------
--------------------------
`passwd` server pass

`port` server port

`t` last keepalive time
`t` last connecting time

`u` no usage for this shadowsocks server (kept unchanged) but essential for some panels

`d` accumulated upload + download data transfer

`method` custom encryption method

`u` upload transfer
`enable`/`switch` indicating whether the user is enabled

`d` download transfer (upload & download in here now)
`transfer_enable` maximum accumulated data transfer allowed - if `u` + `d` > `transfer_enable`, service for this client will be stopped (other clients are not affected)

`transfer_enable` if u + d > transfer_enable this server will be stop (db_transfer.py del_server_out_of_bound_safe)
Compatibility with frontend UIs
-------------------------------
It is fully compatible (through [MU API](https://github.com/fsgmhoward/shadowsocks-py-mu/wiki/MultiUser-(MU)-API-Reference)) with [ss-panel V3](https://github.com/orvice/ss-panel) .

Open source license
-------------------
This program is licensed under [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0)
17 changes: 17 additions & 0 deletions config.json.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"server":"127.0.0.1",
"server_port":8388,
"local_port":1080,
"password":"password",
"timeout":600,
"method":"aes-256-cfb",
"local_address":"127.0.0.1",
"fast_open":false,
"tunnel_remote":"8.8.8.8",
"dns_server":["8.8.8.8", "8.8.4.4"],
"tunnel_remote_port":53,
"tunnel_port":53,
"libopenssl":"C:\\Program Files\\Git\\mingw64\\bin\\libeay32.dll",
"libsodium":"/usr/local/lib/libsodium.so",
"libmbedtls":"/usr/local/lib/libmbedcrypto.2.4.0.dylib"
}
23 changes: 23 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
shadowsocks (2.9.0-2) unstable; urgency=medium

[ Shell.Xu ]
* Fix compatible issue (Closes: #845016)

-- Shell.Xu <[email protected]> Sun, 20 Nov 2016 14:33:31 +0800

shadowsocks (2.9.0-1) unstable; urgency=medium

[ Shell Xu ]
* Upstream update (Closes: #824640)
* Remove reference not exists (Closes: #810688)

[ Thomas Goirand ]
* Added lsb-base as Depends:.
* Removed Pre-Depends: dpkg (>= 1.15.6~).
* Ran wrap-and-sort -t -a.
* Fixed VCS URLs to use https.
* Removed useless obsolete version of python-all build-depends.
* Fixed debian/copyright ordering.

-- Shell.Xu <[email protected]> Sat, 01 Oct 2016 16:14:47 +0800

shadowsocks (2.1.0-1) unstable; urgency=low

* Initial release (Closes: #758900)
Expand Down
3 changes: 2 additions & 1 deletion debian/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"timeout":300,
"method":"aes-256-cfb",
"fast_open": false,
"workers": 1
"workers": 1,
"prefer_ipv6": false
}
21 changes: 13 additions & 8 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,23 @@ Source: shadowsocks
Section: python
Priority: extra
Maintainer: Shell.Xu <[email protected]>
Build-Depends: debhelper (>= 8), python-all (>= 2.6.6-3~), python-setuptools
Standards-Version: 3.9.5
Homepage: https://github.com/clowwindy/shadowsocks
Vcs-Git: git://github.com/shell909090/shadowsocks.git
Vcs-Browser: http://github.com/shell909090/shadowsocks
Build-Depends: debhelper (>= 8),
python-all,
python-setuptools,
Standards-Version: 3.9.8
Homepage: https://github.com/shadowsocks/shadowsocks
Vcs-Git: https://github.com/shell909090/shadowsocks.git
Vcs-Browser: https://github.com/shell909090/shadowsocks

Package: shadowsocks
Architecture: all
Pre-Depends: dpkg (>= 1.15.6~)
Depends: ${misc:Depends}, ${python:Depends}, python-pkg-resources, python-m2crypto
Depends: lsb-base (>= 3.0-6),
python-m2crypto,
python-pkg-resources,
${misc:Depends},
${python:Depends},
Description: Fast tunnel proxy that helps you bypass firewalls
A secure socks5 proxy, designed to protect your Internet traffic.
.
This package contain local and server part of shadowsocks, a fast,
powerful tunnel proxy to bypass firewalls.
powerful tunnel proxy to bypass firewalls.
43 changes: 20 additions & 23 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -1,30 +1,27 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: shadowsocks
Source: https://github.com/clowwindy/shadowsocks

Files: debian/*
Copyright: 2014 Shell.Xu <[email protected]>
License: Expat
Source: https://github.com/shadowsocks/shadowsocks

Files: *
Copyright: 2014 clowwindy <[email protected]>
License: Expat
License: Apache-2.0

Files: debian/*
Copyright: 2016 Shell.Xu <[email protected]>
License: Apache-2.0

License: Expat
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
License: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
.
http://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
On Debian systems, the complete text of the Apache License 2.0 can
be found in "/usr/share/common-licenses/Apache-2.0"
2 changes: 1 addition & 1 deletion debian/install
Original file line number Diff line number Diff line change
@@ -1 +1 @@
debian/config.json etc/shadowsocks/
debian/config.json etc/shadowsocks/
2 changes: 1 addition & 1 deletion debian/shadowsocks.manpages
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
debian/sslocal.1
debian/ssserver.1
debian/ssserver.1
4 changes: 2 additions & 2 deletions debian/sslocal.1
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ Quiet mode, only show warnings/errors.
The programs are documented fully by
.IR "Shell Xu <[email protected]>"
and
.IR "Clowwindy <[email protected]>",
available via the Info system.
.IR "Clowwindy <[email protected]>"
.
4 changes: 2 additions & 2 deletions debian/ssserver.1
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ Quiet mode, only show warnings/errors.
The programs are documented fully by
.IR "Shell Xu <[email protected]>"
and
.IR "Clowwindy <[email protected]>",
available via the Info system.
.IR "Clowwindy <[email protected]>"
.
Loading