Expand description
An unofficial shadowsocks implementation that can work with official shadowsocks.
§Features
- SOCKS5 CONNECT command
- AEAD ciphers
- Defend against replay attacks
- Access control list
§Get Started
§Server
Start a server listening on port 5421 using chacha20-ietf-poly1305 AEAD cipher with password ocfbnj.
ss-rs -s 0.0.0.0:5421 -k ocfbnj -m chacha20-ietf-poly1305§Client
Start a client connecting to the ocfbnj.cn.
The client listens on port 1080 for incoming SOCKS5 connections and uses chacha20-ietf-poly1305 AEAD cipher with password ocfbnj.
ss-rs -s ocfbnj.cn:5421 -l localhost:1080 -k ocfbnj -m chacha20-ietf-poly1305§How to build
§Prerequisites
- Cargo installed (See this).
§Building with Cargo
-
Clone
git clone https://github.com/ocfbnj/ss-rs cd ss-rs -
Build
cargo b --releaseNow you can find the binary in
./target/release/ss-rs.
Modules§
- acl
- Access control list.
- context
- Shadowsocks context.
- crypto
- Encryption and decryption.
- net
- Networking facilities for shadowsocks communication.
- plugin
- SIP 003 plugin implementation.
- security
- Networking security facilities for shadowsocks communication.
- socks5
- SOCKS5 protocol implementation.
- tcp
- Shadowsocks tcp services.
- url
- SS-URL parser