Syntax: match_hostname_regex:port(* means match all port)#redirect_dist_host:redirect_port and in the config.json(user-config.json) redirect param should be a list, for example ``` "redirect": ["*:8080#zhaoj.in:80","zhaojin97.cn:80#127.0.0.1:80","*#pku.edu.cn:80"] ``` This example means abnormal connection which connect to port 8080 will be redirected to zhaoj.in:80,and if there a http request with hostname zhaojin97.cn(you can set hosts file to test it) will be redirected to 127.0.0.1:80,and the rest of abnormal connection will be redirect to pku.edu.cn:80 |
||
---|---|---|
debian | ||
shadowsocks | ||
tests | ||
utils | ||
.gitignore | ||
.travis.yml | ||
apiconfig.py | ||
asyncmgr.py | ||
CHANGES | ||
config.json | ||
configloader.py | ||
CONTRIBUTING.md | ||
db_transfer.py | ||
Dockerfile | ||
importloader.py | ||
initcfg.sh | ||
LICENSE | ||
logrun.sh | ||
MANIFEST.in | ||
mudb.json | ||
mujson_mgr.py | ||
mysql.json | ||
README.md | ||
README.rst | ||
run.sh | ||
server.py | ||
server_pool.py | ||
setup.py | ||
stop.sh | ||
switchrule.py | ||
tail.sh |
ShadowsocksR
A fast tunnel proxy that helps you bypass firewalls.
Server
Install
Debian / Ubuntu:
apt-get install git
git clone https://github.com/breakwa11/shadowsocks.git
CentOS:
yum install git
git clone https://github.com/breakwa11/shadowsocks.git
Windows:
git clone https://github.com/breakwa11/shadowsocks.git
Usage for single user on linux platform
If you clone it into "/shadowsocks"/shadowsocks", then run:
move to "
bash initcfg.sh
move to "~/shadowsocks/shadowsocks", then run:
python server.py -p 443 -k password -m aes-128-cfb -O auth_aes128_md5_compatible -o tls1.2_ticket_auth_compatible
Check all the options via -h
.
You can also use a configuration file instead (recommand), move to "/shadowsocks" and edit the file "user-config.json", then move to "/shadowsocks/shadowsocks" again, just run:
python server.py
To run in the background:
./logrun.sh
To stop:
./stop.sh
To monitor the log:
./tail.sh
Client
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.
License
Copyright 2015 clowwindy
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.