Coder Social home page Coder Social logo

ss-tun's Introduction

ss-tun

This script sets up a L3 proxy backed by Shadowsocks

Why bother using it?

Shadowsocks is an application level (SOCKS5) proxy that can be used only when your application supports it.

With tun2socks, you can convert any application level proxy into VPN, which means your routing table changes and your network packets will be sent through a virtual network interface (created by tun2socks). Eventually all TCP/UDP traffic on your system will go through Shadowsocks as if Shadowsocks was a real gateway.

As we all know, DNS in China is heavily polluted. It's necessary for us to use DoH (DNS over HTTPS), which can be proxied by Shadowsocks. Hence, this project uses doh-proxy for such purposes.

How to use it?

Windows (10 and above)

  1. Edit ss_config.json
  2. Run ss-switch.bat
  3. Check output of the script, and test your connectivity
  4. Run ss-switch.bat again to disable ss-tun, and follow on-screen instructions

Linux

as a systemd service

  1. Edit ss_config.json
  2. Run install.sh
  3. Use systemctl start/stop ss-tun.service to toggle

one-shot

Put required binaries in $PATH

  1. Edit ss_config.json
  2. Run ./ss-tun to start
  3. Run ./ss-tun stop to stop

ss-tun's People

Contributors

jm33-m0 avatar procommiter avatar

Stargazers

 avatar  avatar  avatar  avatar Statanis 123 avatar  avatar  avatar  avatar SaiRson avatar  avatar

Watchers

 avatar  avatar

ss-tun's Issues

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.