mirror of
https://codeberg.org/YGGverse/psocks.git
synced 2026-03-31 16:35:28 +00:00
implement web-api server with stats
This commit is contained in:
parent
ddd7120f61
commit
126185480f
7 changed files with 952 additions and 44 deletions
12
README.md
12
README.md
|
|
@ -1,22 +1,24 @@
|
|||
# psocks
|
||||
|
||||
Experimental async SOCKS5 (TCP/UDP) proxy server based on [fast-socks5](https://github.com/dizda/fast-socks5/blob/master/examples/server.rs), featuring allowlist-based access control (drop everything but allowed by user)
|
||||
Experimental async SOCKS5 (TCP/UDP) proxy server based on [fast-socks5](https://github.com/dizda/fast-socks5/blob/master/examples/server.rs), featuring allowlist-based access control (drop everything but allowed by user) with JSON/API based on [Rocket](https://rocket.rs) framework.
|
||||
|
||||
## Roadmap
|
||||
|
||||
* [ ] Range support
|
||||
* [ ] Local Web-API
|
||||
* [ ] Block stats
|
||||
* [x] Block stats
|
||||
* [ ] In-memory list update (without server restart)
|
||||
* [ ] Performance optimization
|
||||
|
||||
## Usage
|
||||
|
||||
``` bash
|
||||
RUST_LOG=trace cargo run -- -a=/path/to/allow1.txt \
|
||||
-a=http://localhost/allow2.txt \
|
||||
no-auth
|
||||
RUST_LOG=psocks=trace cargo run -- -a=/path/to/allow1.txt \
|
||||
-a=http://localhost/allow2.txt \
|
||||
no-auth
|
||||
```
|
||||
* set `socks5://127.0.0.1:1080` proxy in your application
|
||||
* open http://127.0.0.1:8010 in browser for stats & control API
|
||||
|
||||
### Allow list example
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue