项目作者: wweir

项目描述 :
Sower is a cross-platform intelligent transparent proxy solution.
高级语言: Go
项目地址: git://github.com/wweir/sower.git
创建时间: 2018-11-24T13:19:02Z
项目社区:https://github.com/wweir/sower

开源协议:MIT License

下载


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

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

    1. [Unit]
    2. Description=sower server service
    3. After=network.target
    4. [Service]
    5. Type=simple
    6. ExecStart=/usr/local/bin/sowerd
    7. Environment="FAKE_SITE=127.0.0.1:8080"
    8. Environment="PASSWORD=XXX"
    9. [Install]
    10. 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:

    1. # 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