WIPIVERSE All articles

Shadowsocks

Shadowsocks is a free and open-source encryption protocol project, widely used in China to circumvent Internet censorship. It was created in 2012 by a Chinese programmer known by the pseudonym "clowwindy," and multiple implementations of the protocol have been made available since. Shadowsocks provides an encrypted equivalent of a SOCKS proxy. A Shadowsocks client converts the Shadowsocks connection to SOCKS5 for local use. Unlike SSH port forwarding, Shadowsocks can also proxy User Datagram Protocol (UDP) traffic.

Technical Overview

Shadowsocks is a secure split proxy loosely based on SOCKS5. The Shadowsocks local component (ss-local) acts like a traditional SOCKS5 server and provides proxy service to clients. It encrypts and forwards data streams and packets from the client to the Shadowsocks remote component (ss-remote), which decrypts and forwards them to the target server. The protocol supports various encryption ciphers, including stream ciphers and AEAD (Authenticated Encryption with Associated Data) ciphers.

History and Development

The project was first released on 20 April 2012. On 22 August 2015, "clowwindy" announced in a GitHub thread that they had been contacted by the police and could no longer maintain the project. The code was subsequently branched with a removal notice. Three days later, another proxy application, GoAgent, also had its GitHub repository removed. The removals received media attention, with some speculating about a possible connection to a distributed-denial-of-service attack targeting GitHub that occurred several days later. Despite the takedown, collaborators continued the project's development.

Implementations

The original Python implementation can still be installed using the Pip package manager, though its GitHub repository contents were removed. Other server implementations exist in Go, Rust, and C (using the libev event loop library), as well as C++ with a Qt GUI and Perl. Client implementations are available for Windows (shadowsocks-win), macOS (ShadowsocksX-NG), Android (shadowsocks-android), and iOS (Wingy). Many clients support redirecting all system traffic over Shadowsocks, allowing it to be used similarly to a VPN.

ShadowsocksR

ShadowsocksR is a fork of the original Shadowsocks project, claimed to be superior in terms of security and stability. Upon release, it was found to violate the license by not having the source code of its C# client available. It was also criticized for its approach to alleged security issues in the source project. Development of ShadowsocksR has stopped, while the original Shadowsocks project continues to be developed.

Related Projects

Shadowsocks is similar to The Tor Project's Pluggable Transport (PT) concept, as both use a SOCKS proxy interface and aim to make traffic harder to detect. However, Shadowsocks is simpler, while Obfs4 used in PT is more obfuscated. Unlike Obfs4, Shadowsocks is not resistant to active probing. The V2Ray framework adds obfuscation on top of traffic encryption. Outline VPN, developed by Jigsaw (a technology incubator created by Google), is a free and open-source tool that deploys Shadowsocks servers on multiple cloud service providers.

Legal and Regulatory Context

Shadowsocks is primarily associated with circumventing the Great Firewall of China and other forms of Internet censorship. Its use and distribution have been subject to legal scrutiny in jurisdictions with restrictive Internet policies. The project is licensed under the MIT License.

Browse

More topics to explore

    Browse all articles