Skip to content

icpz/shadowsocks-asio

Repository files navigation

Shadowsocks boost::asio port

Introduction

This is a simple port of shadowsocks.

  • Pause for being busy...

Build from source

Windows

Prepare
  • Install vcpkg and cmake.

  • Set environment variables VCPKG_DEFAULT_TRIPLET=x64-windows-static, VCPKG_ROOT={Path to your vcpkg repo}

  • Install dependencies:

.\vcpkg.exe install openssl libsodium gflags glog boost-system boost-asio boost-program-options boost-process boost-format boost-endian boost-variant
Clone repo and build
git clone https://github.com/lcdtyph/shadowsocks-asio
cd shadowsocks-asio
.\build-win.ps1
Install

Following command will install binaries and dlls into %HOMEPATH%\Documents\bin

cmake --build . --target INSTALL --config Release

Debian

Prepare
  • Install the latest cmake

  • Build the latest boost from source

# change into boost source directory
./bootstrap.sh --with-libraries=system,program_options,filesystem
./b2 cxxflags=-fPIC threading=multi -j2
./b2 install
  • Build libsodium from source
apt install -y autoconf libtool
# change into libsodium source directory
./autogen.sh
./configure --with-pic=yes
make -j2 install
ldconfig
  • Install rest dependencies
apt install build-essential git-core libgoogle-glog-dev libssl1.0-dev
Clone repo and build
git clone https://github.com/lcdtyph/shadowsocks-asio
cd shadowsocks-asio
cmake . && make -j2
Install
make install
ldconfig

macOS

Prepare
brew install cmake libsodium openssl boost glog gflags
Clone repo and build
git clone https://github.com/lcdtyph/shadowsocks-asio
cd shadowsocks-asio
cmake . && make -j2
Install
make install

TODO

  • friendly help message
  • udp relay (current only available for ss-server)
  • replace boost::program_options with gflags
  • ss-redir
  • reconstruction

License

lcdtyph [email protected] Copyright (C) 2018 lcdtyph

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

About

A simple socks5 proxy based on boost::asio

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published