#proxy-server #local-server #socks5-proxy #proxy #firewall #sock #socks5

shadowsocks-service

shadowsocks is a fast tunnel proxy that helps you bypass firewalls

42 stable releases

new 1.18.3 Apr 21, 2024
1.18.2 Mar 13, 2024
1.18.1 Feb 18, 2024
1.17.1 Nov 26, 2023
1.10.2 Mar 28, 2021

#1230 in Network programming

Download history 2946/week @ 2024-01-03 2621/week @ 2024-01-10 2385/week @ 2024-01-17 2484/week @ 2024-01-24 3149/week @ 2024-01-31 4249/week @ 2024-02-07 3441/week @ 2024-02-14 2278/week @ 2024-02-21 3624/week @ 2024-02-28 5280/week @ 2024-03-06 5453/week @ 2024-03-13 7020/week @ 2024-03-20 4043/week @ 2024-03-27 4855/week @ 2024-04-03 4815/week @ 2024-04-10 3488/week @ 2024-04-17

18,116 downloads per month
Used in shadowsocks-rust

MIT license

2.5MB
69K SLoC

shadowsocks-service

License crates.io docs.rs

This is a port of shadowsocks.

shadowsocks is a fast tunnel proxy that helps you bypass firewalls.

Features

  • Local Server

    • SOCKS 5
    • SOCKS 4/4a (local-socks4)
    • HTTP (local-http)
    • Tunnel (local-tunnel)
    • Redir, aka Transparent Proxy (local-redir)
    • DNS (local-dns)
    • Tun (local-tun)
  • Server

  • Manager


lib.rs:

Shadowsocks Service

https://shadowsocks.org/

shadowsocks is a fast tunnel proxy that helps you bypass firewalls.

Usage

Build shadowsocks and you will get at least 2 binaries: sslocal and ssserver

Write your servers in a configuration file. Format is defined in shadowsocks' documentation

For 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"
}

Save it in file shadowsocks.json and run local proxy server with

cargo run --bin sslocal -- -c shadowsocks.json

Now you can use SOCKS5 protocol to proxy your requests, for example:

curl --socks5-hostname 127.0.0.1:1080 https://www.google.com

On the server side, you can run the server with

cargo run --bin ssserver -- -c shadowsocks.json

Server should use the same configuration file as local, except the listen addresses for servers must be socket addresses.

Of course, you can also use cargo install to install binaries.

Dependencies

~18–61MB
~1M SLoC