启动 linux 客户端
日志在 /var/log/shadowsocksr.log
sudo python /data/service/ssr/src/shadowsocks/local.py -c /data/service/ssr/shadowsocks.json -d start
json例子
{
"server": "x.x.x.cn",
"server_ipv6": "::",
"server_port": 8888,
"local_address": "127.0.0.1",
"local_port": 1080,
"password": "xxxxx",
"timeout": 300,
"udp_timeout": 60,
"method": "chacha20",
"protocol": "auth_aes128_sha1",
"protocol_param": "xxxxx",
"obfs": "http_simple",
"obfs_param": "xxxx",
"fast_open": false,
"workers": 1
}
ShadowsocksR
A fast tunnel proxy that helps you bypass firewalls.
Server
Install
Debian / Ubuntu:
apt-get install git
git clone https://github.com/shadowsocksr/shadowsocksr.git
CentOS:
yum install git
git clone https://github.com/shadowsocksr/shadowsocksr.git
Windows:
git clone https://github.com/shadowsocksr/shadowsocksr.git
Usage for single user on linux platform
If you clone it into "/shadowsocksr"/shadowsocksr", then run:
move to "
bash initcfg.sh
move to "~/shadowsocksr/shadowsocks", then run:
python server.py -p 443 -k password -m aes-128-cfb -O auth_aes128_md5 -o tls1.2_ticket_auth_compatible
Check all the options via -h
.
You can also use a configuration file instead (recommend), move to "/shadowsocksr" and edit the file "user-config.json", then move to "/shadowsocksr/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.