mieru【見える】是一款安全的、无流量特征、难以主动探测的,基于TCP或UDP协议的socks5网络代理软件。
mieru代理软件由称为mieru【見える】的客户端软件和称为mita【見た】的代理服务器软件这两部分组成。
更多介绍:https://github.com/enfein/mieru
安装服务端,作者很贴心,还打好了deb包,直接apt安装即可:
wget https://github.com/enfein/mieru/releases/download/v1.6.0/mita_1.6.0_amd64.deb apt install ./mita_1.6.0_amd64.deb
检查服务状态,确定是active状态:
systemctl status mita
新建一个服务端的配置文件:
nano server_config.json
写入如下配置:
{ "portBindings": [ { "port": 22345, "protocol": "TCP" } ], "users": [ { "name": "pingzi", "password": "solo220poundMaiZi" } ], "loggingLevel": "INFO", "mtu": 1400 }
应用配置:
mita apply config server_config.json
启动代理服务:
mita start
检查工作状态:
mita status
回显这样的内容:mieru server status is “RUNNING”,说明代理服务正常工作,到这里服务端就配置完成了。
在这里下载客户端:
https://github.com/enfein/mieru/releases
我使用windows,下载对应系统架构的客户端:
https://github.com/enfein/mieru/releases/download/v1.6.0/mieru_1.6.0_windows_amd64.zip
新建一个client_config.json客户端配置文件,写入如下内容:
{ "profiles": [ { "profileName": "default", "user": { "name": "pingzi", "password": "solo220poundMaiZi" }, "servers": [ { "ipAddress": "89.64.19.37", "domainName": "", "portBindings": [ { "port": 22345, "protocol": "TCP" } ] } ], "mtu": 1400 } ], "activeProfile": "default", "rpcPort": 8964, "socks5Port": 3080, "loggingLevel": "INFO" }
打开powershell执行如下命令应用客户端的配置:
./mieru apply config client_config.json
启动客户端:
./mieru start
正常的话会回显:mieru client is started, listening to localhost:3080
[可选]配置分流,这里我使用v2rayn,下面是一份可用于v2rayn的配置文件:
{ "policy": { "system": { "statsOutboundUplink": true, "statsOutboundDownlink": true } }, "log": { "access": "", "error": "", "loglevel": "warning" }, "inbounds": [ { "tag": "socks", "port": 10808, "listen": "127.0.0.1", "protocol": "socks", "sniffing": { "enabled": false, "destOverride": [ "http", "tls" ] }, "settings": { "auth": "noauth", "udp": true, "allowTransparent": false } }, { "tag": "http", "port": 10809, "listen": "127.0.0.1", "protocol": "http", "sniffing": { "enabled": false, "destOverride": [ "http", "tls" ] }, "settings": { "auth": "noauth", "udp": true, "allowTransparent": false } } ], "outbounds": [ { "tag": "proxy", "protocol": "socks", "settings": { "servers": [ { "address": "127.0.0.1", "port": 3080, "users": [] } ] } }, { "tag": "block", "protocol": "blackhole", "settings": {} }, { "tag": "direct", "protocol": "freedom", "settings": {} } ], "routing": { "domainStrategy": "IPOnDemand", "rules": [ { "type": "field", "outboundTag": "block", "domain": ["geosite:category-ads-all"] }, { "type": "field", "outboundTag": "direct", "domain": ["geosite:cn"] }, { "type": "field", "outboundTag": "direct", "ip": [ "geoip:cn", "geoip:private" ] } ] } }
将上面的配置保存为任意名字的.json配置文件,然后在v2rayn添加自定义配置服务器即可:
更多关于mieru的配置和选项可参考:
https://github.com/enfein/mieru/blob/main/docs/server-install.md
https://github.com/enfein/mieru/blob/main/docs/client-install.md
最新评论
5211314
能不能教我 一点不会