Skip to content

Commit 2e0654c

Browse files
author
clowwindy
committed
Merge branch 'master' of github.com:clowwindy/shadowsocks
2 parents 33f7ad9 + f7c6f6b commit 2e0654c

File tree

2 files changed

+57
-73
lines changed

2 files changed

+57
-73
lines changed

CHANGES

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
1.4.0 2014-05-02
22
- Adds UDP relay
3-
- TCP fast open supports on Linux 3.7+
3+
- TCP fast open support on Linux 3.7+
44

55
1.3.7 2014-04-10
66
- Fix a typo in help

README.md

Lines changed: 56 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
shadowsocks
22
===========
33

4-
Current version: 1.4.0 [![Build Status](https://travis-ci.org/clowwindy/shadowsocks.png?branch=master)](https://travis-ci.org/clowwindy/shadowsocks)
4+
Current version: 1.4.0 [![Build Status][1]][0]
55

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

8-
Other ports and clients can be found [here](https://github.com/clowwindy/shadowsocks/wiki/Ports-and-Clients).
8+
Both TCP CONNECT and UDP ASSOCIATE are implemented.
99

10-
[中文说明](https://github.com/clowwindy/shadowsocks/wiki/Shadowsocks-%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E)
10+
[中文说明][3]
1111

12-
Usage
13-
-----------
12+
Install
13+
-------
1414

1515
First, make sure you have Python 2.6 or 2.7.
1616

@@ -19,33 +19,54 @@ First, make sure you have Python 2.6 or 2.7.
1919

2020
Install Shadowsocks.
2121

22+
#### Debian / Ubuntu:
23+
24+
apt-get install python-gevent python-m2crypto
25+
pip install shadowsocks
26+
27+
#### CentOS:
28+
29+
yum install m2crypto python-setuptools
30+
easy_install pip
2231
pip install shadowsocks
23-
24-
Create a file named `config.json`, with the following content.
32+
33+
#### Windows / OS X:
34+
35+
Choose a [GUI client][7]
36+
37+
Usage
38+
-----
39+
40+
Create a config file `/etc/shadowsocks.json` (or put it in other path).
41+
Example:
2542

2643
{
2744
"server":"my_server_ip",
2845
"server_port":8388,
46+
"local_address": "127.0.0.1",
2947
"local_port":1080,
30-
"password":"barfoo!",
31-
"timeout":600,
32-
"method":"table"
48+
"password":"mypassword",
49+
"timeout":300,
50+
"method":"aes-256-cfb",
51+
"fast_open": false
3352
}
3453

3554
Explanation of the fields:
3655

37-
server your server IP (IPv4/IPv6), notice that your server will listen to this IP
38-
server_port server port
39-
local_port local port
40-
password a password used to encrypt transfer
41-
timeout in seconds
42-
method encryption method, "bf-cfb", "aes-256-cfb", "des-cfb", "rc4", etc. Default is table, which is not secure. "aes-256-cfb" is recommended
43-
fast_open use TCP_FASTOPEN, true/false
56+
| Name | Explanation |
57+
| ------------- | ----------------------------------------------- |
58+
| server | the address your server listens |
59+
| server_port | server port |
60+
| local_address | the address your local listens |
61+
| local_port | local port |
62+
| password | password used for encryption |
63+
| timeout | in seconds |
64+
| method | encryption method, "aes-256-cfb" is recommended |
65+
| fast_open | use [TCP_FASTOPEN][2], true / false |
4466

45-
`cd` into the directory of `config.json`. Run `ssserver` on your server. To run it in the background, run
46-
`nohup ssserver > log &`.
67+
Run `ssserver -c /etc/shadowsocks.json` on your server. To run it in the background, [use supervisor][8].
4768

48-
On your client machine, run `sslocal`.
69+
On your client machine, run `sslocal -c /etc/shadowsocks.json`.
4970

5071
Change the proxy settings in your browser to
5172

@@ -66,66 +87,29 @@ You can use args to override settings from `config.json`.
6687
ssserver -p server_port -k password -m bf-cfb
6788
ssserver -c /etc/shadowsocks/config.json
6889

69-
Encryption
70-
------------
71-
72-
Default encryption method table, which is not secure, is not recommended. Please use "aes-256-cfb" or "bf-cfb". "rc4" is not secure, either, please don't use it.
73-
74-
List of all encryption methods:
75-
76-
- aes-128-cfb
77-
- aes-192-cfb
78-
- aes-256-cfb
79-
- bf-cfb
80-
- camellia-128-cfb
81-
- camellia-192-cfb
82-
- camellia-256-cfb
83-
- cast5-cfb
84-
- des-cfb
85-
- idea-cfb
86-
- rc2-cfb
87-
- rc4
88-
- seed-cfb
89-
- table
90-
91-
**If you want to use encryption method other than "table", please install [M2Crypto](http://chandlerproject.org/Projects/MeTooCrypto).**
92-
93-
Ubuntu:
94-
95-
apt-get install python-m2crypto
96-
97-
Others:
98-
99-
apt-get install openssl-dev swig
100-
pip install M2Crypto
101-
102-
Please notice that some encryption methods are not available on some environments.
103-
104-
Performance
105-
------------
106-
107-
You may want to install gevent for better performance.
108-
109-
$ sudo apt-get install python-gevent
110-
111-
Or:
112-
113-
$ sudo apt-get install libevent-dev python-pip
114-
$ sudo pip install gevent
115-
116-
If both of your server and client are deployed on Linux 3.7+, you can turn on
117-
fast_open for lower latency.
90+
Wiki
91+
----
11892

119-
echo 3 > /proc/sys/net/ipv4/tcp_fastopen
93+
https://github.com/clowwindy/shadowsocks/wiki
12094

12195
License
12296
-------
12397
MIT
12498

12599
Bugs and Issues
126100
----------------
127-
Please visit [issue tracker](https://github.com/clowwindy/shadowsocks/issues?state=open)
101+
Please visit [issue tracker][5]
128102

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

131-
Also see [troubleshooting](https://github.com/clowwindy/shadowsocks/wiki/Troubleshooting)
105+
Also see [troubleshooting][6]
106+
107+
[0]: https://travis-ci.org/clowwindy/shadowsocks
108+
[1]: https://travis-ci.org/clowwindy/shadowsocks.png?branch=master
109+
[2]: https://github.com/clowwindy/shadowsocks/wiki/TCP-Fast-Open
110+
[3]: https://github.com/clowwindy/shadowsocks/wiki/Shadowsocks-%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E
111+
[4]: http://chandlerproject.org/Projects/MeTooCrypto
112+
[5]: https://github.com/clowwindy/shadowsocks/issues?state=open
113+
[6]: https://github.com/clowwindy/shadowsocks/wiki/Troubleshooting
114+
[7]: https://github.com/clowwindy/shadowsocks/wiki/Ports-and-Clients
115+
[8]: https://github.com/clowwindy/shadowsocks/wiki/Configure-Shadowsocks-with-Supervisor

0 commit comments

Comments
 (0)