Code Monkey home page Code Monkey logo

shadowsocks-rs-simplified's Introduction

Introduction

I was trying to write a Rust version of shadowsocks for practice after learning Rust.

This project implements a simplified shadowsocks model based on crate tokio, trust_dns and openssl.

So far I've finished most of it, including a local server and a remote server. Communication between then is partially encrypted. And a GUI for local server is on my schedule, but probably I don't have enough time to complete.

  • 1.24: rewrite this project in tokio 0.2.x, futures 0.3.x and async/await;

Dependencies

tokio = "0.2.10"

futures = "0.3"

openssl = "0.10" // In Windows you should install OpenSSL-win and add it to Path ($env:OPENSSL_DIR)

Structure

  1. ss_local: local server (listening on 7962 port)
  2. ss_server: remote server (listening on 9002 port)

Test

Just clone this repo and then in console:

cargo run -p ss_local
cargo run -p ss_server

You can change the source code to customize your application, including port, DNS address, etc. I haven't provided configuration method yet(maybe later...).

Cause shadowsocks is based on Sock5 proxy, you can use Chrome extension TunnelSwitch to provide socks5 client in Chrome (set proxy server as 127.0.0.1:7962).

As for actual use, more tests should be done.

Currently this project is just a practice for Rust programming.

shadowsocks-rs-simplified's People

Contributors

zijiaw avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.