This is a 'bis' version of original shadowsocks in Erlang implementation shadowsocks-erlang.
Thanks to the original designer of shadowsocks: clowwindy, and the Erlang implementation writer Yongke.
Make sure your have Erlang/OTP in your system, and rebar is needed to.
Make release:
First edit config/local.config
and config/remote.config
, then
rebar3 release -n sslocal
rebar3 release -n ssremote
_build/default/rel/sslocal/bin/sslocal start
-
Config files
local.config, remote.config
-
Descriptions
{shadowsocks,
[
{type, local},
{local_port,1080},
{server,"localhost"},
{server_port,8388},
{password,"barfoo!"},
{method,rc4}
]}
{type, local}
is for client, {type, remote}
is for server side.
RC4 stream cipher is implemented with random IV and serve as default cipher. Upgrade to use Rebar3.
IPv6 address supported. IPv6 domain resolve supported.
- UDP support
- Add more obfuscation
You are free to use, reuse and abuse all the code in this project, with following conditions are met:.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.