Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
c5dd081
Update README.md
clowwindy Aug 8, 2015
3c11549
fix json unicode issue in manager
Aug 9, 2015
a434eef
fix json decode issue
Aug 10, 2015
7c08101
update CHANGES
Aug 10, 2015
a2bc6e1
fix #414
Aug 11, 2015
f19d0ea
fix #425
Aug 15, 2015
eb033a8
Update README.md
clowwindy Aug 16, 2015
0c4f792
allow user to override system dnsserver with config.
May 11, 2015
ffed9b2
dns_server config test
Aug 17, 2015
e52aa9d
Merge pull request #335 from slayercat/master
clowwindy Aug 17, 2015
61a0b2d
Update README.md
clowwindy Aug 17, 2015
5b450ac
Update README.md
clowwindy Aug 20, 2015
6683dfd
fix manger bug
mengskysama Oct 9, 2015
4d24b74
fix bug!
mengskysama Oct 26, 2015
0aba0aa
fix memory leak!
mengskysama Oct 26, 2015
34851fb
readme
mengskysama Oct 26, 2015
173323c
Update common.py
mengskysama Nov 13, 2015
767b921
one time auth server side
mengskysama Dec 5, 2015
77b2a22
ota completed!
mengskysama Jan 11, 2016
ca99abf
fix udp ota
mengskysama Jan 11, 2016
743ddf4
Merge pull request #481 from RockerFlower/master
mengskysama Jan 11, 2016
28c4d14
Merge branch 'feature-ota'
mengskysama Jan 11, 2016
569ca0d
reverse config
mengskysama Jan 11, 2016
7efc3e2
README.md
mengskysama Jan 11, 2016
2d40a36
ota config
mengskysama Jan 11, 2016
ee391c7
udp ota bug
mengskysama Jan 11, 2016
a4a87eb
PEP8
mengskysama Jan 11, 2016
7c8ecb8
PEP8
mengskysama Jan 11, 2016
614eed2
PEP8
mengskysama Jan 11, 2016
285dc40
here?
mengskysama Jan 11, 2016
ab42062
Can't append to data files in parallel mode.
mengskysama Jan 11, 2016
4786b9c
Can't append to data files in parallel mode.
mengskysama Jan 11, 2016
3788df5
Can't append to data files in parallel mode.
mengskysama Jan 11, 2016
9f3641d
url ssl timeout
mengskysama Jan 11, 2016
d2f1cae
fixbug: when ota disable data not write
mengskysama Jan 11, 2016
ae082f2
Merge remote-tracking branch 'origin/fixbug-ci'
mengskysama Jan 11, 2016
efad757
9001 not idle?
mengskysama Jan 11, 2016
288c11c
CI Try again!
mengskysama Jan 11, 2016
bcf9329
Merge branch 'master' into fixbug-ci
mengskysama Jan 11, 2016
248582c
remove IPv6 testcase and add ota test
mengskysama Jan 12, 2016
269e3dd
test pass ota in udp
mengskysama Jan 12, 2016
f163a7b
add CI
mengskysama Jan 12, 2016
811a0e6
PEP8 and undefined name 'gen_key_iv'
mengskysama Jan 12, 2016
a8d116d
fix bug with ord in Py3
mengskysama Jan 12, 2016
efe39a7
README CI
mengskysama Jan 12, 2016
e1e17c8
Merge branch 'fixbug-ci'
mengskysama Jan 12, 2016
b9766ce
Update README.md
mengskysama Jan 12, 2016
b276d52
Add support for option 'prefer-ipv6'
htc550605125 Feb 20, 2016
9d6b9fc
add dockerfile
htc550605125 Feb 24, 2016
5b58069
Merge pull request #507 from htc550605125/master
mengskysama Mar 14, 2016
1f24b31
Update install.sh
mengskysama Apr 16, 2016
bb53b0c
fix build dante cache and old src corrupt and slow
mengskysama Apr 16, 2016
aae990a
Add auth method check for TCP socks connections (#528)
watermeter Apr 16, 2016
f62a550
pep8
mengskysama Apr 16, 2016
9844ba9
pep8
mengskysama Apr 16, 2016
677e6c4
fix ota
v3aqb May 14, 2016
34fa8de
Merge pull request #543 from v3aqb/fix_ota
madeye Jun 2, 2016
f7afcd4
add ota help in local
mengskysama Jul 18, 2016
8e8ee5d
Update tcprelay.py
mengskysama Jul 18, 2016
6ef14e5
Add chacha20-ietf crypto (#590)
smounives Aug 17, 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
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
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)
robo5ive Mar 4, 2017
d6b40ef
encrypt.py is renamed to cryptor.py (#780)
robo5ive Mar 4, 2017
74f8f8c
Add sodium:aes-256-gcm and openssl:ocb AEAD mode (#784)
robo5ive Mar 10, 2017
4e21f83
Handle cipher exceptions #783 (#791)
robo5ive Mar 14, 2017
9e25cc6
fix some error for parse dns_servre in config (#798)
Mar 19, 2017
1222fb1
update find_lib's name for the new openssl-1.1 dll (just for windows)…
Mar 21, 2017
0f4e3fa
Add mbedtls wrapper, custom crypto lib path, test files (#803)
robo5ive Apr 29, 2017
06b028b
Fix memory leak when excpetions occur (#814)
robo5ive Apr 29, 2017
13b5d6e
Fix udp dns issue under python3 (#849)
robo5ive May 12, 2017
d5026cf
Update README.md (#841)
tedlz123 May 12, 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
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
5ff694b
Fix #1209 (#1212)
shadowsocked Dec 19, 2018
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
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,17 @@ htmlcov

.DS_Store
.idea
tags

#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
3 changes: 3 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2.8.2 2015-08-10
- Fix a encoding problem in manager

2.8.1 2015-08-06
- Respond ok to add and remove commands

Expand Down
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM ubuntu:14.04

RUN apt-get update && apt-get install -y \
python-software-properties \
software-properties-common \
&& add-apt-repository ppa:chris-lea/libsodium \
&& echo "deb http://ppa.launchpad.net/chris-lea/libsodium/ubuntu trusty main" >> /etc/apt/sources.list \
&& echo "deb-src http://ppa.launchpad.net/chris-lea/libsodium/ubuntu trusty main" >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get install -y libsodium-dev python-pip

RUN pip install shadowsocks

ENTRYPOINT ["/usr/local/bin/ssserver"]

# usage:
# docker run -d --restart=always -p 1314:1314 ficapy/shadowsocks -s 0.0.0.0 -p 1314 -k $PD -m chacha20
75 changes: 33 additions & 42 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@ shadowsocks

[![PyPI version]][PyPI]
[![Build Status]][Travis CI]
[![Coverage Status]][Coverage]

A fast tunnel proxy that helps you bypass firewalls.

Features:
- TCP & UDP support
- User management API
- TCP Fast Open
- Workers and graceful restart
- Destination IP blacklist

Server
------

Expand All @@ -15,16 +21,25 @@ Server
Debian / Ubuntu:

apt-get install python-pip
pip install shadowsocks
pip install git+https://github.com/shadowsocks/shadowsocks.git@master

CentOS:

yum install python-setuptools && easy_install pip
pip install shadowsocks
pip install git+https://github.com/shadowsocks/shadowsocks.git@master

For CentOS 7, if you need AEAD ciphers, you need install libsodium
```
dnf install libsodium python34-pip
pip3 install git+https://github.com/shadowsocks/shadowsocks.git@master
```
Linux distributions with [snap](http://snapcraft.io/):

snap install shadowsocks

Windows:

See [Install Server on Windows]
See [Install Shadowsocks Server on Windows](https://github.com/shadowsocks/shadowsocks/wiki/Install-Shadowsocks-Server-on-Windows).

### Usage

Expand All @@ -45,62 +60,38 @@ To check the log:
Check all the options via `-h`. You can also use a [Configuration] file
instead.

Client
------
If you installed the [snap](http://snapcraft.io/) package, you have to prefix the commands with `shadowsocks.`,
like this:

shadowsocks.ssserver -p 443 -k password -m aes-256-cfb

### Usage with Config File

* [Windows] / [OS X]
* [Android] / [iOS]
* [OpenWRT]
[Create configuration file and run](https://github.com/shadowsocks/shadowsocks/wiki/Configuration-via-Config-File)

To start:

ssserver -c /etc/shadowsocks.json

Use GUI clients on your local PC/phones. Check the README of your client
for more information.

Documentation
-------------

You can find all the documentation in the [Wiki].
You can find all the documentation in the [Wiki](https://github.com/shadowsocks/shadowsocks/wiki).

License
-------

Copyright 2015 clowwindy
Apache License

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.

Bugs and Issues
----------------

* [Troubleshooting]
* [Issue Tracker]
* [Mailing list]



[Android]: https://github.com/shadowsocks/shadowsocks-android
[Build Status]: https://img.shields.io/travis/shadowsocks/shadowsocks/master.svg?style=flat
[Configuration]: https://github.com/shadowsocks/shadowsocks/wiki/Configuration-via-Config-File
[Coverage Status]: https://jenkins.shadowvpn.org/result/shadowsocks
[Coverage]: https://jenkins.shadowvpn.org/job/Shadowsocks/ws/PYENV/py34/label/linux/htmlcov/index.html
[Debian sid]: https://packages.debian.org/unstable/python/shadowsocks
[iOS]: https://github.com/shadowsocks/shadowsocks-iOS/wiki/Help
[Issue Tracker]: https://github.com/shadowsocks/shadowsocks/issues?state=open
[Install Server on Windows]: https://github.com/shadowsocks/shadowsocks/wiki/Install-Shadowsocks-Server-on-Windows
[Mailing list]: https://groups.google.com/group/shadowsocks
[OpenWRT]: https://github.com/shadowsocks/openwrt-shadowsocks
[OS X]: https://github.com/shadowsocks/shadowsocks-iOS/wiki/Shadowsocks-for-OSX-Help
[PyPI]: https://pypi.python.org/pypi/shadowsocks
[PyPI version]: https://img.shields.io/pypi/v/shadowsocks.svg?style=flat
[Travis CI]: https://travis-ci.org/shadowsocks/shadowsocks
[Troubleshooting]: https://github.com/shadowsocks/shadowsocks/wiki/Troubleshooting
[Wiki]: https://github.com/shadowsocks/shadowsocks/wiki
[Windows]: https://github.com/shadowsocks/shadowsocks-csharp

5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
About shadowsocks-rm
---------------

This project is https://github.com/shadowsocks/shadowsocks clone. I JUST fix bug on the original code. Unless it is necessary to have additional features.

shadowsocks
===========

Expand Down
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 <shell909090@gmail.com> 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 <shell909090@gmail.com> 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 <shell909090@gmail.com>
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 <shell909090@gmail.com>
License: Expat
Source: https://github.com/shadowsocks/shadowsocks

Files: *
Copyright: 2014 clowwindy <clowwindy42@gmail.com>
License: Expat
License: Apache-2.0

Files: debian/*
Copyright: 2016 Shell.Xu <shell909090@gmail.com>
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 <shell909090@gmail.com>"
and
.IR "Clowwindy <clowwindy42@gmail.com>",
available via the Info system.
.IR "Clowwindy <clowwindy42@gmail.com>"
.
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 <shell909090@gmail.com>"
and
.IR "Clowwindy <clowwindy42@gmail.com>",
available via the Info system.
.IR "Clowwindy <clowwindy42@gmail.com>"
.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name="shadowsocks",
version="2.8.1",
version="3.0.0",
license='http://www.apache.org/licenses/LICENSE-2.0',
description="A fast tunnel proxy that help you get through firewalls",
author='clowwindy',
Expand Down
Loading