Update On Tue Jun 10 20:38:00 CEST 2025

This commit is contained in:
github-action[bot]
2025-06-10 20:38:00 +02:00
parent 1ca6c81234
commit 0c9e519bd0
154 changed files with 1145 additions and 950 deletions

View File

@@ -32,7 +32,7 @@ PROJECT_NAME=$(shell basename "${ROOT}")
# - pkg/version/current.go
#
# Use `tools/bump_version.sh` script to change all those files at one shot.
VERSION="3.15.0"
VERSION="3.16.0"
# Build binaries and installation packages.
.PHONY: build

View File

@@ -1,5 +1,5 @@
Package: mieru
Version: 3.15.0
Version: 3.16.0
Section: net
Priority: optional
Architecture: amd64

View File

@@ -1,5 +1,5 @@
Name: mieru
Version: 3.15.0
Version: 3.16.0
Release: 1%{?dist}
Summary: Mieru proxy client
License: GPLv3+

View File

@@ -1,5 +1,5 @@
Package: mieru
Version: 3.15.0
Version: 3.16.0
Section: net
Priority: optional
Architecture: arm64

View File

@@ -1,5 +1,5 @@
Name: mieru
Version: 3.15.0
Version: 3.16.0
Release: 1%{?dist}
Summary: Mieru proxy client
License: GPLv3+

View File

@@ -1,5 +1,5 @@
Package: mita
Version: 3.15.0
Version: 3.16.0
Section: net
Priority: optional
Architecture: amd64

View File

@@ -1,5 +1,5 @@
Name: mita
Version: 3.15.0
Version: 3.16.0
Release: 1%{?dist}
Summary: Mieru proxy server
License: GPLv3+

View File

@@ -1,5 +1,5 @@
Package: mita
Version: 3.15.0
Version: 3.16.0
Section: net
Priority: optional
Architecture: arm64

View File

@@ -1,5 +1,5 @@
Name: mita
Version: 3.15.0
Version: 3.16.0
Release: 1%{?dist}
Summary: Mieru proxy server
License: GPLv3+

View File

@@ -16,7 +16,9 @@
},
{
"name": "meiyougongchandang",
"password": "caiyouxinzhongguo"
"password": "caiyouxinzhongguo",
"allowPrivateIP": true,
"allowLoopbackIP": true
}
],
"loggingLevel": "INFO",

View File

@@ -144,6 +144,28 @@ mieru stop
mieru start
```
All supported logging levels include `FATAL`, `ERROR`, `WARN`, `INFO`, `DEBUG` and `TRACE`.
## Changing the Metrics Logging Interval
By default, mieru / mita prints metrics information in the logs every 10 minutes. If you want to adjust this output interval, use the following settings:
```js
{
"advancedSettings": {
"metricsLoggingInterval": "1h30m"
}
}
```
You can specify the interval in:
- seconds `s`
- minutes `m`
- hours `h`
or any combination of these units.
## View User Network Traffic
You can run the commands `mita get users` and `mita get quotas` on the server to check each user's most recent active time and the amount of network traffic used.

View File

@@ -144,6 +144,28 @@ mieru stop
mieru start
```
所有支持的日志等级包括 `FATAL`, `ERROR`, `WARN`, `INFO`, `DEBUG``TRACE`
## 修改指标日志输出间隔
mieru / mita 每隔 10 分钟通过日志打印指标信息。如果想要调整这个输出的间隔,请使用下面的设置:
```js
{
"advancedSettings": {
"metricsLoggingInterval": "1h30m"
}
}
```
其中可以使用单位
-`s`
- 分钟 `m`
- 小时 `h`
以及他们的组合。
## 查看用户网络流量
可以在服务器运行 `mita get users``mita get quotas` 指令,查看每个用户最近的活跃时间和消耗的网络流量。

View File

@@ -18,32 +18,32 @@ Or you can manually install and configure proxy server using the steps below.
```sh
# Debian / Ubuntu - X86_64
curl -LSO https://github.com/enfein/mieru/releases/download/v3.15.0/mita_3.15.0_amd64.deb
curl -LSO https://github.com/enfein/mieru/releases/download/v3.16.0/mita_3.16.0_amd64.deb
# Debian / Ubuntu - ARM 64
curl -LSO https://github.com/enfein/mieru/releases/download/v3.15.0/mita_3.15.0_arm64.deb
curl -LSO https://github.com/enfein/mieru/releases/download/v3.16.0/mita_3.16.0_arm64.deb
# RedHat / CentOS / Rocky Linux - X86_64
curl -LSO https://github.com/enfein/mieru/releases/download/v3.15.0/mita-3.15.0-1.x86_64.rpm
curl -LSO https://github.com/enfein/mieru/releases/download/v3.16.0/mita-3.16.0-1.x86_64.rpm
# RedHat / CentOS / Rocky Linux - ARM 64
curl -LSO https://github.com/enfein/mieru/releases/download/v3.15.0/mita-3.15.0-1.aarch64.rpm
curl -LSO https://github.com/enfein/mieru/releases/download/v3.16.0/mita-3.16.0-1.aarch64.rpm
```
## Install mita package
```sh
# Debian / Ubuntu - X86_64
sudo dpkg -i mita_3.15.0_amd64.deb
sudo dpkg -i mita_3.16.0_amd64.deb
# Debian / Ubuntu - ARM 64
sudo dpkg -i mita_3.15.0_arm64.deb
sudo dpkg -i mita_3.16.0_arm64.deb
# RedHat / CentOS / Rocky Linux - X86_64
sudo rpm -Uvh --force mita-3.15.0-1.x86_64.rpm
sudo rpm -Uvh --force mita-3.16.0-1.x86_64.rpm
# RedHat / CentOS / Rocky Linux - ARM 64
sudo rpm -Uvh --force mita-3.15.0-1.aarch64.rpm
sudo rpm -Uvh --force mita-3.16.0-1.aarch64.rpm
```
Those instructions can also be used to upgrade the version of mita software package.
@@ -254,22 +254,37 @@ The `dns` -> `dualStack` attribute supports the following values:
4. `ONLY_IPv4`: Force to use the first IPv4 address returned by the DNS server. If there is no IPv4 address, the connection fails.
5. `ONLY_IPv6`: Force to use the first IPv6 address returned by the DNS server. If there is no IPv6 address, the connection fails.
### Allow Users to Access Internal Network
By default, proxy server only allows users to send proxy requests to the Internet.
If you want to allow users to access private IP addresses (e.g., `192.168.1.100`) through the proxy server, set the `users` -> `allowPrivateIP` attribute.
If you want to allow users to access the server's local machine (e.g., `127.0.0.1`) through the proxy server, add the `users` -> `allowLoopbackIP` attribute.
```js
{
"users": [
{
"name": "ducaiguozei",
"password": "xijinping",
"allowPrivateIP": true,
"allowLoopbackIP": true
},
{
"name": "meiyougongchandang",
"password": "caiyouxinzhongguo"
}
]
}
```
### Limiting User Traffic
We can use the `users` -> `quotas` property to limit the amount of traffic a user is allowed to use. For example, if you want user "ducaiguozei" to use no more than 1 GB of traffic within 1 day, and no more than 10 GB within 30 days, you can apply the following settings.
```js
{
"portBindings": [
{
"portRange": "2012-2022",
"protocol": "TCP"
},
{
"port": 2027,
"protocol": "TCP"
}
],
"users": [
{
"name": "ducaiguozei",
@@ -289,9 +304,7 @@ We can use the `users` -> `quotas` property to limit the amount of traffic a use
"name": "meiyougongchandang",
"password": "caiyouxinzhongguo"
}
],
"loggingLevel": "INFO",
"mtu": 1400
]
}
```

View File

@@ -18,32 +18,32 @@ sudo python3 setup.py --lang=zh
```sh
# Debian / Ubuntu - X86_64
curl -LSO https://github.com/enfein/mieru/releases/download/v3.15.0/mita_3.15.0_amd64.deb
curl -LSO https://github.com/enfein/mieru/releases/download/v3.16.0/mita_3.16.0_amd64.deb
# Debian / Ubuntu - ARM 64
curl -LSO https://github.com/enfein/mieru/releases/download/v3.15.0/mita_3.15.0_arm64.deb
curl -LSO https://github.com/enfein/mieru/releases/download/v3.16.0/mita_3.16.0_arm64.deb
# RedHat / CentOS / Rocky Linux - X86_64
curl -LSO https://github.com/enfein/mieru/releases/download/v3.15.0/mita-3.15.0-1.x86_64.rpm
curl -LSO https://github.com/enfein/mieru/releases/download/v3.16.0/mita-3.16.0-1.x86_64.rpm
# RedHat / CentOS / Rocky Linux - ARM 64
curl -LSO https://github.com/enfein/mieru/releases/download/v3.15.0/mita-3.15.0-1.aarch64.rpm
curl -LSO https://github.com/enfein/mieru/releases/download/v3.16.0/mita-3.16.0-1.aarch64.rpm
```
## 安装 mita 软件包
```sh
# Debian / Ubuntu - X86_64
sudo dpkg -i mita_3.15.0_amd64.deb
sudo dpkg -i mita_3.16.0_amd64.deb
# Debian / Ubuntu - ARM 64
sudo dpkg -i mita_3.15.0_arm64.deb
sudo dpkg -i mita_3.16.0_arm64.deb
# RedHat / CentOS / Rocky Linux - X86_64
sudo rpm -Uvh --force mita-3.15.0-1.x86_64.rpm
sudo rpm -Uvh --force mita-3.16.0-1.x86_64.rpm
# RedHat / CentOS / Rocky Linux - ARM 64
sudo rpm -Uvh --force mita-3.15.0-1.aarch64.rpm
sudo rpm -Uvh --force mita-3.16.0-1.aarch64.rpm
```
上述指令也可以用来升级 mita 软件包的版本。
@@ -254,22 +254,37 @@ Tor 浏览器 -> mieru 客户端 -> GFW -> mita 服务器 -> Tor 网络 -> 目
4. `ONLY_IPv4`:强制使用 DNS 服务器返回的第一个 IPv4 地址。如果没有 IPv4 地址则连接失败。
5. `ONLY_IPv6`:强制使用 DNS 服务器返回的第一个 IPv6 地址。如果没有 IPv6 地址则连接失败。
### 允许用户访问内网
默认情况下,代理服务器只允许用户向互联网发起代理请求。
如果需要允许用户通过代理服务器访问私有 IP 地址,例如 `192.168.1.100`,请设置 `users` -> `allowPrivateIP` 属性。
如果需要允许用户通过代理服务器访问服务器本机,例如 `127.0.0.1`,请设置 `users` -> `allowLoopbackIP` 属性。
```js
{
"users": [
{
"name": "ducaiguozei",
"password": "xijinping",
"allowPrivateIP": true,
"allowLoopbackIP": true
},
{
"name": "meiyougongchandang",
"password": "caiyouxinzhongguo"
}
]
}
```
### 限制用户流量
我们可以使用 `users` -> `quotas` 属性限制用户可以使用的流量大小。例如,如果想让用户 "ducaiguozei" 在 1 天时间内最多使用 1 GB 流量,并且在 30 天时间内最多使用 10 GB 流量,可以应用下面的设置。
```js
{
"portBindings": [
{
"portRange": "2012-2022",
"protocol": "TCP"
},
{
"port": 2027,
"protocol": "TCP"
}
],
"users": [
{
"name": "ducaiguozei",
@@ -289,9 +304,7 @@ Tor 浏览器 -> mieru 客户端 -> GFW -> mita 服务器 -> Tor 网络 -> 目
"name": "meiyougongchandang",
"password": "caiyouxinzhongguo"
}
],
"loggingLevel": "INFO",
"mtu": 1400
]
}
```

View File

@@ -16,5 +16,5 @@
package version
const (
AppVersion = "3.15.0"
AppVersion = "3.16.0"
)