Skip to content

zhihengjiang/shadowsocks-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shadowsocks-java

Shadowsocks-java 是一个基于SOCKS5代理的使用java开发的shadowsocks 代理软件。可以同时作为客户端和服务端使用目前只支持TCP协议及流加密,后续会增加UDP协议和AEAD的支持。

Build & Install

git clone https://github.com/zhihengjiang/shasowsocks-java
cd shadowsocks-java
mvn package

Getting Started

创建配置文件

{
    "server": "my_server_ip",
    "server_port": 8388,
    "local_address": "127.0.0.1",
    "local_port": 1080,
    "password": "mypassword",
    "timeout": 300,
    "method": "aes-256-cfb"
}

详细的参数解释可以参考 shadowsocks 的文档.

在本地使用

chmod +x ./sslocal.sh
./sslocal.sh -c config.json

在服务器端使用

chmod +x ./ssserver.sh
./ssserver.sh -c config.json

更多脚本参数请输入

./ssserver.sh -h
./sslocal.sh -h

支持的加密方式

流加密

  • aes-128-cfb, aes-192-cfb, aes-256-cfb
  • aes-128-ofb, aes-192-ofb, aes-256-ofb
  • chacha20, chacha20-ietf

TODO

  • Documentation
  • 支持UDP协议
  • 支持AEAD加密
  • 编写使用脚本

About

A Java port of shadowsocks

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published