静看光阴荏苒
不管不顾不问不说也不念

配置mieru / 見える代理

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

赞(16)
未经允许不得转载:荒岛 » 配置mieru / 見える代理
分享到: 更多 (0)

评论 6

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #1

    打开powershell执行如下命令应用客户端的配置: 那里,忘记加速 .\ 了

    hofaeair2年前 (2022-08-04) Microsoft Edge 103.0.1264.77 Microsoft Edge 103.0.1264.77 Windows 10 x64 Edition Windows 10 x64 Edition回复
    • 加上,打错了…… :cry:
      .\mieru apply config client_config.json
      .\mieru start

      hofaeair2年前 (2022-08-04) Microsoft Edge 103.0.1264.77 Microsoft Edge 103.0.1264.77 Windows 10 x64 Edition Windows 10 x64 Edition回复
      • 感谢提醒,已修正。

        LALA2年前 (2022-08-05) Google Chrome 104.0.0.0 Google Chrome 104.0.0.0 Windows 10 x64 Edition Windows 10 x64 Edition回复
  2. #2

    lala,你的聊天站现在的域名是多少啊,之前的进不去了 :grin:

    Sensei2年前 (2022-08-05) Google Chrome 104.0.0.0 Google Chrome 104.0.0.0 Windows 10 x64 Edition Windows 10 x64 Edition回复
    • 目前是这个chat.ohsb.net,不过最近有打算换到matrix了,这个基本也放养状态了。。

      LALA2年前 (2022-08-05) Google Chrome 104.0.0.0 Google Chrome 104.0.0.0 Windows 10 x64 Edition Windows 10 x64 Edition回复

分享创造快乐

广告合作资源投稿