shadowsocks-rust
This is a port of shadowsocks.
shadowsocks is a fast tunnel proxy that helps you bypass firewalls.
Currently developing and testing with rust-0.12-dev
Dependences
- libcrypto (OpenSSL)
- Rust >= 0.12
- Cargo
Usage
Build with Cargo:
cargo build
Then sslocal and ssserver will appear in ./target, it works similarly as the two binaries of
the official shadowsocks' implementation.
Enable more crypto algorithms by passing the name cipher-[name] via command line argument --features
cargo build --features "cipher-aes-ctr"
Getting Started
Create a shadowsocks' configuration file. Example
{
"server": "my_server_ip",
"server_port": 8388,
"local_address": "127.0.0.1",
"local_port": 1080,
"password": "mypassword",
"timeout": 300,
"method": "aes-256-cfb",
"fast_open": false,
"workers": 1
}
Detailed explaination could be found in shadowsocks' documentation.
Start local and server shadowsocks with
sslocal -c config.json
ssserver -c config.json
List all available arguments with -h.
Notes
Still under developing and waiting for the final release of rust-1.0.
Currently implementation can only be built by rust-0.12-dev. It supports the following features:
- CONNECT command
- Crypto algorithms defined in
Cargo.toml
TODO
- Documentation
- UDP_ASSOCIATION command
- BIND command
- Sock5 authentication
- Extend configuration format
- Fully testing on server
- Multiple worker
- User management
License
Copyright (c) 2014 Y. T. CHUNG
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.
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.