Skip to content

Commit

Permalink
more work
Browse files Browse the repository at this point in the history
  • Loading branch information
clowwindy committed Jun 1, 2014
1 parent c2f6bc3 commit 9b2a455
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 75 deletions.
68 changes: 22 additions & 46 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
shadowsocks
===========

Current version: 1.4.5 [![Build Status][1]][0]
Current version: 2.0 [![Build Status][]][Shadowsocks]

shadowsocks is a lightweight tunnel proxy which can help you get through firewalls.
shadowsocks is a lightweight tunnel proxy that help you get through firewalls.

2.0 is currently under development. Please use 1.4.x.

Both TCP CONNECT and UDP ASSOCIATE are implemented.

[中文说明][3]
[中文说明]

Install
-------
Expand All @@ -22,7 +24,7 @@ Install Shadowsocks.
#### Debian / Ubuntu:

apt-get install build-essential python-pip python-m2crypto python-dev
pip install gevent shadowsocks
pip install shadowsocks

#### CentOS:

Expand All @@ -39,7 +41,7 @@ Install Shadowsocks.

#### Windows:

Choose a [GUI client][7]
Choose a [GUI client]

Usage
-----
Expand Down Expand Up @@ -70,11 +72,11 @@ Explanation of the fields:
| password | password used for encryption |
| timeout | in seconds |
| method | encryption method, "aes-256-cfb" is recommended |
| fast_open | use [TCP_FASTOPEN][2], true / false |
| fast_open | use [TCP_FASTOPEN], true / false |
| workers | number of workers, available on Unix/Linux |

Run `ssserver -c /etc/shadowsocks.json` on your server. To run it in the background,
[use supervisor][8].
Run `ssserver -c /etc/shadowsocks.json` on your server. To run it in the
background, use [Supervisor].

On your client machine, run `sslocal -c /etc/shadowsocks.json`.

Expand All @@ -84,9 +86,6 @@ Change the proxy settings in your browser to
hostname: 127.0.0.1
port: your local_port

**Notice: If you want to use encryption methods other than "table", please
install M2Crypto (See Encryption Section).**

It's recommended to use shadowsocks with AutoProxy or Proxy SwitchySharp.

Command line args
Expand All @@ -98,29 +97,6 @@ You can use args to override settings from `config.json`.
ssserver -p server_port -k password -m bf-cfb --workers 2
ssserver -c /etc/shadowsocks/config.json

gevent
------

If you suffer from any strange problem when you have installed gevent 0.9.x,
install a new version.

pip install gevent --upgrade


Salsa20
-------

Salsa20 is a fast stream cipher.

Use "salsa20-ctr" in shadowsocks.json.

And install these packages:

#### Debian / Ubuntu:

apt-get install python-numpy
pip install salsa20

Wiki
----

Expand All @@ -132,18 +108,18 @@ MIT

Bugs and Issues
----------------
Please visit [issue tracker][5]
Please visit [Issue Tracker]

Mailing list: http://groups.google.com/group/shadowsocks

Also see [troubleshooting][6]

[0]: https://travis-ci.org/clowwindy/shadowsocks
[1]: https://travis-ci.org/clowwindy/shadowsocks.png?branch=master
[2]: https://github.com/clowwindy/shadowsocks/wiki/TCP-Fast-Open
[3]: https://github.com/clowwindy/shadowsocks/wiki/Shadowsocks-%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E
[4]: http://chandlerproject.org/Projects/MeTooCrypto
[5]: https://github.com/clowwindy/shadowsocks/issues?state=open
[6]: https://github.com/clowwindy/shadowsocks/wiki/Troubleshooting
[7]: https://github.com/clowwindy/shadowsocks/wiki/Ports-and-Clients
[8]: https://github.com/clowwindy/shadowsocks/wiki/Configure-Shadowsocks-with-Supervisor
Also see [Troubleshooting]


[Shadowsocks]: https://travis-ci.org/clowwindy/shadowsocks
[Build Status]: https://travis-ci.org/clowwindy/shadowsocks.png?branch=2.0
[TCP_FASTOPEN]: https://github.com/clowwindy/shadowsocks/wiki/TCP-Fast-Open
[Issue Tracker]: https://github.com/clowwindy/shadowsocks/issues?state=open
[GUI client]: https://github.com/clowwindy/shadowsocks/wiki/Ports-and-Clients
[Supervisor]: https://github.com/clowwindy/shadowsocks/wiki/Configure-Shadowsocks-with-Supervisor
[Troubleshooting]: https://github.com/clowwindy/shadowsocks/wiki/Troubleshooting
[中文说明]: https://github.com/clowwindy/shadowsocks/wiki/Shadowsocks-%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E
38 changes: 11 additions & 27 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
shadowsocks
===========

shadowsocks is a lightweight tunnel proxy which can help you get through
|Build Status|

shadowsocks is a lightweight tunnel proxy that help you get through
firewalls.

2.0 is currently under development. Please use 1.4.x.

Both TCP CONNECT and UDP ASSOCIATE are implemented.

`中文说明 <https://github.com/clowwindy/shadowsocks/wiki/Shadowsocks-%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E>`__
Expand All @@ -25,7 +29,7 @@ Debian / Ubuntu:

::

apt-get install python-pip python-gevent python-m2crypto
apt-get install build-essential python-pip python-m2crypto python-dev
pip install shadowsocks

CentOS:
Expand Down Expand Up @@ -98,8 +102,8 @@ Explanation of the fields:
+------------------+-----------------------------------------------------------------------------------------------------+

Run ``ssserver -c /etc/shadowsocks.json`` on your server. To run it in
the background, `use
supervisor <https://github.com/clowwindy/shadowsocks/wiki/Configure-Shadowsocks-with-Supervisor>`__.
the background, use
`Supervisor <https://github.com/clowwindy/shadowsocks/wiki/Configure-Shadowsocks-with-Supervisor>`__.

On your client machine, run ``sslocal -c /etc/shadowsocks.json``.

Expand All @@ -111,9 +115,6 @@ Change the proxy settings in your browser to
hostname: 127.0.0.1
port: your local_port

**Notice: If you want to use encryption methods other than "table",
please install M2Crypto (See Encryption Section).**

It's recommended to use shadowsocks with AutoProxy or Proxy
SwitchySharp.

Expand All @@ -128,23 +129,6 @@ You can use args to override settings from ``config.json``.
ssserver -p server_port -k password -m bf-cfb --workers 2
ssserver -c /etc/shadowsocks/config.json

Salsa20
-------

Salsa20 is a fast stream cipher.

Use "salsa20-ctr" in shadowsocks.json.

And install these packages:

Debian / Ubuntu:
^^^^^^^^^^^^^^^^

::

apt-get install python-numpy
pip install salsa20

Wiki
----

Expand All @@ -158,13 +142,13 @@ MIT
Bugs and Issues
---------------

Please visit `issue
tracker <https://github.com/clowwindy/shadowsocks/issues?state=open>`__
Please visit `Issue
Tracker <https://github.com/clowwindy/shadowsocks/issues?state=open>`__

Mailing list: http://groups.google.com/group/shadowsocks

Also see
`troubleshooting <https://github.com/clowwindy/shadowsocks/wiki/Troubleshooting>`__
`Troubleshooting <https://github.com/clowwindy/shadowsocks/wiki/Troubleshooting>`__

.. |Build Status| image:: https://travis-ci.org/clowwindy/shadowsocks.png?branch=master
:target: https://travis-ci.org/clowwindy/shadowsocks
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name="shadowsocks",
version="1.4.5",
version="2.0",
license='MIT',
description="a lightweight tunnel proxy",
author='clowwindy',
Expand All @@ -16,7 +16,7 @@
package_data={
'shadowsocks': ['README.rst', 'LICENSE', 'config.json']
},
install_requires=['setuptools'],
install_requires=[],
entry_points="""
[console_scripts]
sslocal = shadowsocks.local:main
Expand Down

0 comments on commit 9b2a455

Please sign in to comment.