#proxy-server #socks5-proxy #proxy #firewall #shadowsocks #local-server #socks5

shadowsocks-service

shadowsocks is a fast tunnel proxy that helps you bypass firewalls

56 stable releases

new 1.21.2 Oct 24, 2024
1.20.4 Aug 15, 2024
1.20.3 Jul 28, 2024
1.18.2 Mar 13, 2024
1.10.2 Mar 28, 2021

#1470 in Network programming

Download history 2552/week @ 2024-07-04 2335/week @ 2024-07-11 3456/week @ 2024-07-18 7384/week @ 2024-07-25 4096/week @ 2024-08-01 5436/week @ 2024-08-08 6181/week @ 2024-08-15 6093/week @ 2024-08-22 5800/week @ 2024-08-29 4287/week @ 2024-09-05 3613/week @ 2024-09-12 6280/week @ 2024-09-19 3767/week @ 2024-09-26 4048/week @ 2024-10-03 3273/week @ 2024-10-10 5457/week @ 2024-10-17

17,895 downloads per month
Used in shadowsocks-rust

MIT license

3MB
87K 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)
    • FakeDNS (local-fake-dns)
    • SIP008 Online Config (local-online-config)
  • 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

~20–43MB
~853K SLoC