lala.im:配置mieru / 見える代理

運維技術·VPN代理·lala.im · 2022-07-31 · 123 人浏览

原文地址:https://lala.im/8427.html,請支持原作者!該處僅作轉載。

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"]
      },
      {
運維技術 VPN代理 lala.im
Theme Jasmine by Kent Liao