Git Product home page Git Product logo

sower's Introduction

sower

GitHub release Actions Status GitHub issue GitHub star GitHub license

中文介绍见 Wiki

Sower is a cross-platform intelligent transparent proxy tool. It provides both socks5 proxy and DNS-based proxy. All these kinds of proxies support intelligent routing.

If you already have another proxy solution, you can use its socks5(h) service as a parent proxy to enjoy sower's intelligent routing.

Installation

To enjoy sower, you need to deploy sower on both server-side(sowerd) and client-side(sower).

Sowerd

If you want to use sower as a secondary proxy to provide intelligent routing, you can skip sowerd.

On the server-side, sowerd runs just like a web server proxy. It will bind two ports 80 / 443.

You can use your own certificate or the certificate automatically applied for by sowerd from Let's Encrypt.

There are two ways to run the sowerd service:

  1. Run the command with root permission

    # sowerd -password XXX -fake_site 127.0.0.1:8080
  2. Install as a systemd service

    [Unit]
    Description=sower server service
    After=network.target
    
    [Service]
    Type=simple
    ExecStart=/usr/local/bin/sowerd
    Environment="FAKE_SITE=127.0.0.1:8080"
    Environment="PASSWORD=XXX"
    
    [Install]
    WantedBy=multi-user.target

Sower

A config file is required on the sower client side. Here is a usable example in China.

Sower will bind 4 ports by default with root permission. They are: udp(53) / tcp(80) / tcp(443) / tcp(1080).

After doing the next three steps, you can enjoy the intelligent transparent proxy solution:

  1. Run the command with root permission:

    # sower -f sower.hcl
  2. Change your DNS server to 127.0.0.1.

  3. Set your proxy to socks5h://127.0.0.1:1080.

Architecture

Architecture diagram

sower's People

Contributors

dependabot[bot] avatar wweir 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.