• Stars
    star
    154
  • Rank 242,095 (Top 5 %)
  • Language
    JavaScript
  • Created about 5 years ago
  • Updated almost 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

手把手教你用Rust写代理, 代码已完成, 文章不定期更新

miniproxy

1.39 stable终于发布啦!

使用Rust 1.39.0实现的简易代理,同时支持HTTP,HTTPS和SOCKS5协议。本项目仅用于学习交流。

如何编译

首先安装Rust,如何安装请移步官网 注意由于需要使用async/await,所以需要指定rust版本为1.39(stable)

cargo build --release

默认开启TCP加速,使用gkd-rs提供加速功能。 可在编译时使用--no-default-features关闭加速功能。

二进制文件会在项目目录的target/release文件夹下,找到两个名为minilocalminiserver的二进制文件即可。关于如何交叉编译,请自行搜索。不过我自己在macbook上交叉编译就没成功过。

如何使用

本代理分为两部分:minilocalminiserverminiserver运行于网络服务器上,minilocal运行于本地。

a. 先在服务器上部署miniserver,启动的时候会随机产生一个base64编码的密码

RUST_LOG=mini=info ./miniserver -h 0.0.0.0 -p 59999 -d

b. 然后在本地启动minilocal,需要指定server的通讯密码

RUST_LOG=mini=info ./minilocal -s "xxx.xx.xx.xx:59999" -p 9998 -P xxxxxx

c. 进行系统代理设定,代理地址为127.0.0.0:9998,或者也可以设置自动代理,PAC文件地址为http://127.0.0.1:9998/pac。本代理同时支持HTTP,HTTPS和SOCKS5协议

原理及教程

尚在编写中,文档可见docs

More Repositories

1

sensitive

敏感词查找,验证,过滤和替换 🤓 FindAll, Validate, Filter and Replace words.
Go
630
star
2

mobc

A generic connection pool for Rust with async/await support
Rust
283
star
3

nipper

A Rust crate for manipulating HTML with CSS selectors
Rust
121
star
4

rust-ajson

Rust port of gjson,get JSON value by dotpath syntax
Rust
104
star
5

gkd-rs

A multi-connections TCP accelerator, written in Rust
Rust
26
star
6

trie-go

The golang implementation of trie tree.
Go
24
star
7

danmu.go

基于golang的命令行形式的直播网站(斗鱼)的弹幕浏览
Go
18
star
8

react-affix

A simple react affix component(Deprecated, use sticky instead)
JavaScript
15
star
9

mobc-redis

Redis support for the mobc connection pool
Rust
12
star
10

notes

My notes
10
star
11

mobc-postgres

Rust
9
star
12

neighbor

基于geohash和mysql实现的附近的人
Go
6
star
13

Posts

📫 Posts is a Python library for send mail easily.
Python
5
star
14

douyu

Crawler For DouyuTv Statistics
Python
4
star
15

yake

Pelican theme.
HTML
4
star
16

tiresias

simple demos for learning scarpy
Python
2
star
17

sparta

Douyu Statistic Backend
JavaScript
2
star
18

comethandler

🔫 helps the server which is builded with golang to push messages to the http clients easily.
Go
2
star
19

tide-demo

Rust
1
star
20

hackathon-2015

Eleme Hackathon 2015
Java
1
star
21

wisburg-terminal

JavaScript
1
star
22

flask_restful_doc

Generate api docs for flask restful resource
Python
1
star
23

bomd-server

base on markdown. a lightweight blog framework which id managed in local
CSS
1
star
24

noname

Go
1
star
25

remote-shortcuts

通过手机使用快捷键操作windows程序
Rust
1
star
26

init-react-webpack-project

A simple and small python2 script that can help you to init a react & webpack project.
Python
1
star