Compare commits
1 Commits
main
...
replace-wa
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
46ba73600d |
@@ -41,36 +41,41 @@ This section only introduces installation methods.
|
||||
::: details docker-compose.yml
|
||||
|
||||
```yaml [docker-compose.yml]
|
||||
services:
|
||||
watchtower: # Used to automatically update easytier image, delete this part if not needed
|
||||
image: containrrr/watchtower
|
||||
container_name: watchtower
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
- WATCHTOWER_NO_STARTUP_MESSAGE
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
command: --interval 3600 --cleanup --label-enable
|
||||
easytier:
|
||||
image: easytier/easytier:latest # Domestic users can use m.daocloud.io/docker.io/easytier/easytier:latest
|
||||
hostname: easytier
|
||||
container_name: easytier
|
||||
labels:
|
||||
com.centurylinklabs.watchtower.enable: 'true'
|
||||
restart: unless-stopped
|
||||
network_mode: host
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
- NET_RAW
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
devices:
|
||||
- /dev/net/tun:/dev/net/tun
|
||||
volumes:
|
||||
- /etc/easytier:/root
|
||||
- /etc/machine-id:/etc/machine-id:ro # Map host machine code
|
||||
command: -d --network-name <user> --network-secret <password> -p tcp://<your-public-ip>:11010
|
||||
services:
|
||||
# watchtower automatically updates the EasyTier image; remove this section if not needed
|
||||
watchtower:
|
||||
image: nickfedor/watchtower
|
||||
container_name: watchtower
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
- WATCHTOWER_NO_STARTUP_MESSAGE
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
command: --interval 3600 --cleanup --label-enable
|
||||
|
||||
easytier:
|
||||
# Users in mainland China can use the DaoCloud mirror
|
||||
# image: m.daocloud.io/docker.io/easytier/easytier:latest
|
||||
image: easytier/easytier:latest
|
||||
hostname: easytier
|
||||
container_name: easytier
|
||||
labels:
|
||||
com.centurylinklabs.watchtower.enable: 'true'
|
||||
restart: unless-stopped
|
||||
network_mode: host
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
- NET_RAW
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
devices:
|
||||
- /dev/net/tun:/dev/net/tun
|
||||
volumes:
|
||||
- /etc/machine-id:/etc/machine-id:ro
|
||||
command: >
|
||||
-d --network-name <user> --network-secret <password>
|
||||
-p tcp://<public-ip-of-other-peer-or-public-node>:11010
|
||||
```
|
||||
|
||||
:::
|
||||
|
||||
@@ -76,7 +76,7 @@ Otherwise, the TCP protocol will still be used.
|
||||
|
||||
## Checking KCP Proxy Status
|
||||
|
||||
You can check all active proxied connections using the EasyTier CLI tool.
|
||||
You can check the status of KCP proxy connections using the EasyTier CLI tool.
|
||||
|
||||
```bash
|
||||
$ easytier-cli proxy
|
||||
@@ -108,7 +108,7 @@ QUIC proxy on the receiving end can be disabled using the `--disable-quic-input`
|
||||
sudo easytier-core --disable-quic-input
|
||||
```
|
||||
|
||||
Both the sender and receiver can check all active connections proxied by QUIC using the `easytier-cli proxy` command.
|
||||
Both the sender and receiver can check the QUIC proxy connection status using the `easytier-cli proxy` command.
|
||||
|
||||
```bash
|
||||
$ easytier-cli proxy
|
||||
|
||||
@@ -41,36 +41,41 @@
|
||||
::: details docker-compose.yml
|
||||
|
||||
```yaml [docker-compose.yml]
|
||||
services:
|
||||
watchtower: # 用于自动更新easytier镜像,若不需要请删除这部分
|
||||
image: containrrr/watchtower
|
||||
container_name: watchtower
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
- WATCHTOWER_NO_STARTUP_MESSAGE
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
command: --interval 3600 --cleanup --label-enable
|
||||
easytier:
|
||||
image: easytier/easytier:latest # 国内用户可以使用 m.daocloud.io/docker.io/easytier/easytier:latest
|
||||
hostname: easytier
|
||||
container_name: easytier
|
||||
labels:
|
||||
com.centurylinklabs.watchtower.enable: 'true'
|
||||
restart: unless-stopped
|
||||
network_mode: host
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
- NET_RAW
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
devices:
|
||||
- /dev/net/tun:/dev/net/tun
|
||||
volumes:
|
||||
- /etc/easytier:/root
|
||||
- /etc/machine-id:/etc/machine-id:ro # 映射宿主机机器码
|
||||
command: -d --network-name <用户> --network-secret <密码> -p tcp://<您的公网IP>:11010
|
||||
services:
|
||||
# watchtower 用于自动更新 EasyTier 镜像,若不需要可以删除此节
|
||||
watchtower:
|
||||
image: nickfedor/watchtower
|
||||
container_name: watchtower
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
- WATCHTOWER_NO_STARTUP_MESSAGE
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
command: --interval 3600 --cleanup --label-enable
|
||||
|
||||
easytier:
|
||||
# 国内用户可以使用 daocloud.io 镜像
|
||||
# image: m.daocloud.io/docker.io/easytier/easytier:latest
|
||||
image: easytier/easytier:latest
|
||||
hostname: easytier
|
||||
container_name: easytier
|
||||
labels:
|
||||
com.centurylinklabs.watchtower.enable: 'true'
|
||||
restart: unless-stopped
|
||||
network_mode: host
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
- NET_RAW
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
devices:
|
||||
- /dev/net/tun:/dev/net/tun
|
||||
volumes:
|
||||
- /etc/machine-id:/etc/machine-id:ro
|
||||
command: >
|
||||
-d --network-name <用户> --network-secret <密码>
|
||||
-p tcp://<其他对等节点 / 公共节点的公网 IP>:11010
|
||||
```
|
||||
|
||||
:::
|
||||
|
||||
@@ -80,7 +80,7 @@ sudo easytier-core --enable-kcp-proxy --use-smoltcp
|
||||
|
||||
## 查看 KCP 代理状态
|
||||
|
||||
可以通过 EasyTier CLI 工具查看所有已建立的活跃连接。
|
||||
可以通过 EasyTier CLI 工具查看 KCP 代理的链接状态。
|
||||
|
||||
```bash
|
||||
$ easytier-cli proxy
|
||||
@@ -112,7 +112,7 @@ sudo easytier-core --enable-quic-proxy
|
||||
sudo easytier-core --disable-quic-input
|
||||
```
|
||||
|
||||
发送端和接收端可以通过 `easytier-cli proxy` 命令查看所有通过 QUIC 代理建立的活跃连接。
|
||||
发送端和接收端可以通过 `easytier-cli proxy` 命令查看 QUIC 代理的链接状态。
|
||||
|
||||
```bash
|
||||
$ easytier-cli proxy
|
||||
|
||||
@@ -16,11 +16,11 @@
|
||||
"typescript": "^5.9.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@antfu/eslint-config": "7.7.3",
|
||||
"@antfu/eslint-config": "3.14.0",
|
||||
"eslint": "9.33.0",
|
||||
"eslint-plugin-format": "2.0.1",
|
||||
"eslint-plugin-format": "1.0.1",
|
||||
"markdown-it-task-lists": "2.1.1",
|
||||
"mermaid": "11.13.0",
|
||||
"mermaid": "11.12.0",
|
||||
"vitepress": "1.6.3",
|
||||
"vitepress-plugin-mermaid": "2.0.17"
|
||||
}
|
||||
|
||||
2273
pnpm-lock.yaml
generated
2273
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user