moesocks: A functional firewall killer

[ apache, network, program ] [ Propose Tags ]

A socks5 proxy using the client / server architecture.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.1.0.4, 0.1.0.5, 0.1.0.6, 0.1.0.7, 0.1.0.8, 0.1.0.9, 0.1.0.10, 0.1.0.11, 0.1.0.12, 0.1.0.13, 0.1.0.14, 0.1.0.15, 0.1.0.16, 0.1.0.17, 0.1.0.18, 0.1.0.19, 0.1.0.20, 0.1.0.21, 0.1.0.22, 0.1.0.23, 0.1.0.24, 0.1.0.25, 0.1.0.26, 0.1.0.27, 0.1.1.0, 0.1.1.10, 0.1.1.20, 0.1.1.30, 0.1.1.31, 0.1.1.32, 0.1.2.0, 0.1.2.10, 0.1.2.20, 0.1.2.30, 1.0.0.0, 1.0.0.1, 1.0.0.10, 1.0.0.20, 1.0.0.30, 1.0.0.40, 1.0.0.41, 1.0.0.42, 1.0.0.43, 1.0.0.44, 1.0.1.0
Change log CHANGELOG.md
Dependencies aeson, async, attoparsec, base (>4 && <=5), binary, bytestring, containers, cryptohash, hslogger, HsOpenSSL, lens, mtl, network, optparse-applicative, random, safe, stm, text, time, transformers, unix, unordered-containers [details]
License Apache-2.0
Copyright Copyright (C) 2015 Jinjing Wang
Author Jinjing Wang
Maintainer Jinjing Wang <nfjinjing@gmail.com>
Category Network
Home page https://github.com/nfjinjing/moesocks
Source repo head: git clone git://github.com/nfjinjing/moesocks.git
Uploaded by JinjingWang at 2015-08-16T08:38:38Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Executables moesocks
Downloads 30853 total (140 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2015-11-23 [all 6 reports]

Readme for moesocks-0.1.0.18

[back to package description]

MoeSocks

A socks5 proxy using the client / server architecture.

MoeSocks is greatly inspired by shadowsocks.

A sample config.json file is included in this repository and the cabal archive.

type moesocks --help for help.

Usage

  • Edit config.json to fit your setup (at least the remote and password fields)

  • Start a remote node outside the firewall:

      moesocks --role remote -c config.json
    
  • Start a local node inside the firewall:

      moesocks --role local -c config.json
    
  • Now you have a socks5 proxy running inside the firewall using port localPort.

Features

  • Socks5 proxy service, obviously
  • TCP port forwarding
  • UDP port forwarding, for example -U 5300:8.8.8.8:53
  • TCP per connection throttling (as a side effect of trying to find a bug in the remote)
  • Socks5 service on local can be turned off
  • Understand shadowsocks' configuration file

Not working

  • Remote is flaky, particularly when trying to send data through the Great Firewall of China (GFW).
  • UDP over Socks5 is not implemented
  • More then 2 times slower then the original Python implementation (measured at 20M/s vs 43M/s on an Intel P8800, using the AES-256-CFB method)

Planning features

  • None

Notes

There's a bug that prevents remote from working correctly with GFW. Thanks, Prof Fang!

You should use the original Python implementation of shadowsocks on the remote server if your primary goal is to bypass internet censorship in China.

From the author's limited testing, shadowsocks-go also works reasonably well, though it might not run as fast as the Python's version.

There is an earlier implementation of shadowsocks-haskell by rnons that makes MoeSocks possible.

The original goal of MoeSocks is to provide extra configurability to standard shadowsocks, but it has been discarded since remote is too flaky.