中文介绍见 Wiki
The sower is a cross-platform intelligent transparent proxy tool base on DNS solution.
The first time you visit a new website, sower will detect if the domain in block list and add it in suggect list. So that, you do not need to care about the rules, sower will handle it in a intelligent way.
If you wanna enjoy the sower, you need to deploy sower on both server and client side.
On client side, sower listening UDP 53
and TCP 80
/443
ports, so that you need run it with privileged.
On server side, it just listening to a port (default 5533
), parse and relay the request to target server.
Sower also provides an http(s) proxy listening on :8080
by default. You can turn it off or use another port at any time.
After Deployed, please check your config file, it is placed in /usr/local/etc/sower.toml
by default. Here is the example config file conf/sower.toml
Auto deploy script support Linux server side and masOS/Linux client side.
$ bash -c "$(curl -s https://raw.githubusercontent.com/wweir/sower/master/deploy/install)"
Then modify the configuration file as needed and set 127.0.0.1
as your first domain name server.
In most situation, you just need to modify /etc/resolv.conf
.
If you wanna uninstall sower, change install
into uninstall
and rerun the command.
- Download the precompiled file from https://github.com/wweir/sower/releases
- Decompression the file into a folder
- Run
./sower -h
for help - Config domain name server
- Config auto start
The auto build docker images are wweir/sower.
It is very simple to use it on the server side. Export the port(5533) and run it directly.
But the client is more troublesome and needs some understanding of the working mechanism of the sower.
request target servers
<-------------+ +------------->
| |
| |
+------------server-------------+
| | relay service| |
| +-----+---------------------+ |
| | | |
| | parse http(s) target url | |
| | | |
| +---------------------------+ |
| shadow service |
+--------^----------------------+
| request domain server
quic / KCP / TCP +---------->
| |
+--------+---client+------+-----+
| | |
| shadow service | |
| relay service | dns |
| | service |
| | |
| 127.0.0.1 or other |
| | |
+-^-----^----------+---^----^---+
| | | |
| | | | +----->
http(s) proxy | +----------+ | |
2 1 1 2
+ + + +
blocked request normal request
For more detail, see 透明代理 Sower 技术剖析
- authenticate
- broker
- CI/CD
- relay optimization
- deploy script for all normal platform
- dns rule intelligent suggestions