A simple and enough Shadowsocks Implementation.
I was create a small shadowsocks server weaknet-python at 2015.
I was always used it with stream crypto algorithm chacha20-ietf. I found that the newest windows client was drop all stream crypto algorithm when i was buy a new Windows laptop at 2021.
So, i need upgrade the server for my shadowsocks clients. I am unhappy.
-
My principle is Simple and Enough
I just need a server, i don't need others in the source code. I don't like split sub projects for one job. -
The library libevent is cute, so use c/c++
73C1
ul>
Depends on libevent openssl sodium.
cmake -DCMAKE_BUILD_TYPE=Release .
Usage: weaknet-server [options-file] [options]
Options:
-p or --port <port>, range 1-65535
-m or --algorithm <algorithm>, support list:
chacha20, chacha20-ietf,
chacha20-ietf-poly1305,
xchacha20-ietf-poly1305
-s or --password <password>
-v or --version
-h or --help
Support socks4 socks4a socks5 http-connect http-proxy protocol.
Usage: weaknet-client [options-file] [options]
Options:
-p or --port <port>, range 1-65535
-m or --algorithm <algorithm>, support list:
chacha20, chacha20-ietf,
chacha20-ietf-poly1305,
xchacha20-ietf-poly1305
-s or --password <password>
-R or --remote-addr <ip:port>
-v or --version
-h or --help
Just a text file, useful for hiding options from the command line.
./weaknet-server ./server.conf -p 12345
server.conf example:
-m chacha20
-s 12345