diff --git a/README.md b/README.md index 898f4fd..90421c1 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,48 @@ # sower -another cross platform transparent proxy tool +Yet another cross platform transparent proxy tool + +## architecture +``` + request target servers +<-------------+ +-------------> + | | + | | + +------------server-------------+ + | | relay service| | + | +-----+---------------------+ | + | | | | + | | parsr http(s) target url | | + | | | | + | +---------------------------+ | + | | + +--------^----------------------+ + | request domain server + quic connection +----------> + | | + +--------+---client+------+-----+ + | | | + | | | + | relay service | dns | + | | server | + | | | + | 127.0.0.1 or other | + | | | + +-------^----------+---^----^---+ + | | | + | | | +-----> + | +----------+ | | + 2 1 1 2 + + + + + + block request normal request + +``` + +## install +1. install server on `server node` by `make server` +2. write config file, example: [conf/sower.toml](https://github.com/wweir/sower/blob/master/conf/sower.toml) +3. install client on `client node` by `make client` +4. add `127.0.0.1` as you first domain server ## todo +- [ ] authenticate - [ ] broker \ No newline at end of file diff --git a/conf/sower.toml b/conf/sower.toml index 063fbca..b1dee85 100644 --- a/conf/sower.toml +++ b/conf/sower.toml @@ -2,8 +2,16 @@ server_port="5533" server_addr="127.0.0.1:5533" dns_server="114.114.114.114" blocklist=[ - "*.google.com", - "*.youtube.com", - "zh.wikipedia.org", + "*.google.com", # google + "*.youtube.com", # youtube + "*.ytimg.com", + "*.ggpht.com", + "*.googlevideo.com", + "golang.org", # golang + "*.googlesource.com", + "zh.wikipedia.org", # wikipeida + "*.facebook.com", # facebook + "static.xx.fbcdn.net", + "*.web.telegram.org", # telegram ] verbose=1 \ No newline at end of file