mirror of
https://github.com/EasyTier/easytier.github.io.git
synced 2025-05-19 10:27:06 +00:00
🌈 style: lint
This commit is contained in:
@@ -33,7 +33,7 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0 # 如果未启用 lastUpdated,则不需要
|
||||
- uses: pnpm/action-setup@v3 # 如果使用 pnpm,请取消注释
|
||||
with:
|
||||
with:
|
||||
version: 9
|
||||
run_install: false
|
||||
# - uses: oven-sh/setup-bun@v1 # 如果使用 Bun,请取消注释
|
||||
@@ -64,4 +64,4 @@ jobs:
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v4
|
||||
uses: actions/deploy-pages@v4
|
||||
|
||||
@@ -12,7 +12,7 @@ export const cn = defineConfig({
|
||||
items: [
|
||||
{ text: '简介', link: '/guide/introduction' },
|
||||
{ text: '安装', link: '/guide/installation' },
|
||||
]
|
||||
],
|
||||
},
|
||||
{
|
||||
text: '组网',
|
||||
@@ -24,7 +24,7 @@ export const cn = defineConfig({
|
||||
{ text: '无公网IP', link: '/guide/network/networking-without-public-ip' },
|
||||
{ text: '使用 WireGuard 客户端接入', link: '/guide/network/use-easytier-with-wirefuard-client' },
|
||||
{ text: '其他配置', link: '/guide/network/configurations' },
|
||||
]
|
||||
],
|
||||
},
|
||||
{
|
||||
items: [
|
||||
@@ -32,8 +32,8 @@ export const cn = defineConfig({
|
||||
{ text: '社区和贡献', link: '/guide/community-and-contribution' },
|
||||
{ text: '许可证', link: '/guide/license' },
|
||||
{ text: '联系方式', link: '/guide/contact' },
|
||||
]
|
||||
],
|
||||
},
|
||||
]
|
||||
}
|
||||
],
|
||||
},
|
||||
})
|
||||
|
||||
@@ -11,7 +11,7 @@ export const en = defineConfig({
|
||||
items: [
|
||||
{ text: 'Introduction', link: '/en/guide/introduction' },
|
||||
{ text: 'installation', link: '/en/guide/installation' },
|
||||
]
|
||||
],
|
||||
},
|
||||
{
|
||||
text: 'networking',
|
||||
@@ -23,7 +23,7 @@ export const en = defineConfig({
|
||||
{ text: 'Without Public IP', link: '/en//guide/network/networking-without-public-ip' },
|
||||
{ text: 'Use WireGuard Client', link: '/en//guide/network/use-easytier-with-wirefuard-client' },
|
||||
{ text: 'Other Configurations', link: '/en//guide/network/configurations' },
|
||||
]
|
||||
],
|
||||
},
|
||||
{
|
||||
items: [
|
||||
@@ -31,8 +31,8 @@ export const en = defineConfig({
|
||||
{ text: 'Community and Contribution', link: '/en/guide/community-and-contribution' },
|
||||
{ text: 'License', link: '/en/guide/license' },
|
||||
{ text: 'Contact', link: '/en/guide/contact' },
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { defineConfig } from 'vitepress'
|
||||
|
||||
import { en } from './en'
|
||||
import { cn } from './cn'
|
||||
|
||||
@@ -9,4 +10,4 @@ export default defineConfig({
|
||||
root: { label: '简体中文', ...cn },
|
||||
en: { label: 'English', ...en },
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
@@ -1 +1 @@
|
||||
[简体中文](https://github.com/KKRainbow/EasyTier/README_CN.md) | [English](https://github.com/KKRainbow/EasyTier/README.md)
|
||||
[简体中文](https://github.com/KKRainbow/EasyTier/README_CN.md) | [English](https://github.com/KKRainbow/EasyTier/README.md)
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# Community and Contribution
|
||||
|
||||
We welcome and encourage community contributions! If you want to get involved, please submit a [GitHub PR](https://github.com/KKRainbow/EasyTier/pulls). Detailed contribution guidelines can be found in [CONTRIBUTING.md](https://github.com/KKRainbow/EasyTier/blob/main/CONTRIBUTING.md).
|
||||
|
||||
We welcome and encourage community contributions! If you want to get involved, please submit a [GitHub PR](https://github.com/KKRainbow/EasyTier/pulls). Detailed contribution guidelines can be found in [CONTRIBUTING.md](https://github.com/KKRainbow/EasyTier/blob/main/CONTRIBUTING.md).
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
# Contact
|
||||
|
||||
|
||||
- Ask questions or report problems: [GitHub Issues](https://github.com/KKRainbow/EasyTier/issues)
|
||||
- Discussion and exchange: [GitHub Discussions](https://github.com/KKRainbow/EasyTier/discussions)
|
||||
- QQ Group: [949700262](https://qm.qq.com/q/LDxBN5L3kA)
|
||||
- Telegram: https://t.me/easytier
|
||||
- Telegram: https://t.me/easytier
|
||||
|
||||
@@ -6,9 +6,11 @@
|
||||
2. **Install via crates.io**
|
||||
|
||||
::: code-group
|
||||
|
||||
```sh [cargo]
|
||||
cargo install easytier
|
||||
```
|
||||
|
||||
:::
|
||||
|
||||
3. **Install from source code**
|
||||
@@ -16,4 +18,4 @@
|
||||
```sh [cargo]
|
||||
cargo install --git https://github.com/KKRainbow/EasyTier.git
|
||||
```
|
||||
:::
|
||||
:::
|
||||
|
||||
@@ -5,7 +5,7 @@ EasyTier is a simple, safe and decentralized VPN networking solution implemented
|
||||

|
||||
|
||||
## Features
|
||||
|
||||
|
||||
- **Decentralized**: No need to rely on centralized services, nodes are equal and independent.
|
||||
- **Safe**: Use WireGuard protocol to encrypt data.
|
||||
- **High Performance**: Full-link zero-copy, with performance comparable to mainstream networking software.
|
||||
@@ -16,4 +16,4 @@ EasyTier is a simple, safe and decentralized VPN networking solution implemented
|
||||
- **Smart Routing**: Selects links based on traffic to reduce latency and increase throughput.
|
||||
- **TCP Support**: Provides reliable data transmission through concurrent TCP links when UDP is limited, optimizing performance.
|
||||
- **High Availability**: Supports multi-path and switches to healthy paths when high packet loss or network errors are detected.
|
||||
- **IPv6 Support**: Supports networking using IPv6.
|
||||
- **IPv6 Support**: Supports networking using IPv6.
|
||||
|
||||
+2
-2
@@ -1,3 +1,3 @@
|
||||
# License
|
||||
|
||||
EasyTier is released under the [Apache License 2.0](https://github.com/KKRainbow/EasyTier/blob/main/LICENSE).
|
||||
|
||||
EasyTier is released under the [Apache License 2.0](https://github.com/KKRainbow/EasyTier/blob/main/LICENSE).
|
||||
|
||||
@@ -1,15 +1,14 @@
|
||||
# Configurations
|
||||
|
||||
You can use ``easytier-core --help`` to view all configuration items
|
||||
You can use `easytier-core --help` to view all configuration items
|
||||
|
||||
|
||||
```` sh
|
||||
```sh
|
||||
Options:
|
||||
--network-name <NETWORK_NAME>
|
||||
network name to identify this vpn network
|
||||
network name to identify this vpn network
|
||||
[default: default]
|
||||
--network-secret <NETWORK_SECRET>
|
||||
network secret to verify this node belongs to the vpn network
|
||||
network secret to verify this node belongs to the vpn network
|
||||
[default: ]
|
||||
-i, --ipv4 <IPV4>
|
||||
ipv4 address of this vpn node
|
||||
@@ -20,39 +19,39 @@ Options:
|
||||
-n, --proxy-networks <PROXY_NETWORKS>
|
||||
export local networks to other peers in the vpn
|
||||
-r, --rpc-portal <RPC_PORTAL>
|
||||
rpc portal address to listen for management
|
||||
rpc portal address to listen for management
|
||||
[default: 127.0.0.1:15888]
|
||||
-l, --listeners <LISTENERS>
|
||||
listeners to accept connections, pass '' to avoid listening.
|
||||
listeners to accept connections, pass '' to avoid listening.
|
||||
[default: tcp://0.0.0.0:11010 udp://0.0.0.0:11010 wg://0.0.0.0:11011]
|
||||
--net-ns <NET_NS>
|
||||
specify the linux network namespace, default is the root namespace
|
||||
--console-log-level <CONSOLE_LOG_LEVEL>
|
||||
console log level
|
||||
console log level
|
||||
[possible values: trace, debug, info, warn, error, off]
|
||||
--file-log-level <FILE_LOG_LEVEL>
|
||||
file log level
|
||||
file log level
|
||||
[possible values: trace, debug, info, warn, error, off]
|
||||
--file-log-dir <FILE_LOG_DIR>
|
||||
directory to store log files
|
||||
-m, --instance-name <INSTANCE_NAME>
|
||||
instance name to identify this vpn node in same machine
|
||||
instance name to identify this vpn node in same machine
|
||||
[default: default]
|
||||
-d, --instance-id <INSTANCE_ID>
|
||||
instance uuid to identify this vpn node in whole vpn network example: 123e4567-e89b-12d3-a456-426614174000
|
||||
instance uuid to identify this vpn node in whole vpn network example: 123e4567-e89b-12d3-a456-426614174000
|
||||
--vpn-portal <VPN_PORTAL>
|
||||
url that defines the vpn portal, allow other vpn clients to connect.
|
||||
example: wg://0.0.0.0:11010/10.14.14.0/24, means the vpn portal is a wireguard server listening on vpn.example.com:11010, and the vpn client is in network of 10.14.14.0/24
|
||||
example: wg://0.0.0.0:11010/10.14.14.0/24, means the vpn portal is a wireguard server listening on vpn.example.com:11010, and the vpn client is in network of 10.14.14.0/24
|
||||
--default-protocol <DEFAULT_PROTOCOL>
|
||||
default protocol to use when connecting to peers
|
||||
-u, --disable-encryption
|
||||
disable encryption for peers communication, default is false, must be same with peers
|
||||
--multi-thread
|
||||
use multi-thread runtime, default is single-thread
|
||||
use multi-thread runtime, default is single-thread
|
||||
--disable-ipv6
|
||||
do not use ipv6
|
||||
-h, --help
|
||||
Print help
|
||||
-V, --version
|
||||
Print version
|
||||
````
|
||||
```
|
||||
|
||||
@@ -8,4 +8,4 @@ sudo easytier-core --ipv4 10.144.144.2 --peers udp://22.1.1.1:11010
|
||||
|
||||
The `--peers` parameter can fill in the listening address of any node already in the virtual network.
|
||||
|
||||
---
|
||||
---
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# Networking without Public IP
|
||||
|
||||
EasyTier supports networking using shared public nodes. The currently deployed shared public node is
|
||||
EasyTier supports networking using shared public nodes. The currently deployed shared public node is
|
||||
|
||||
``tcp://easytier.public.kkrainbow.top:11010``
|
||||
`tcp://easytier.public.kkrainbow.top:11010`
|
||||
|
||||
When using shared nodes, each node entering the network needs to provide the same ``--network-name`` and ``--network-secret`` parameters as the unique identifier of the network.
|
||||
When using shared nodes, each node entering the network needs to provide the same `--network-name` and `--network-secret` parameters as the unique identifier of the network.
|
||||
|
||||
Taking two nodes as an example, Node A executes:
|
||||
|
||||
|
||||
@@ -32,15 +32,15 @@ Subnet proxy information will automatically sync to each node in the virtual net
|
||||
```sh
|
||||
easytier-cli route
|
||||
```
|
||||
|
||||
| ipv4 | hostname | proxy_cidrs | next_hop_ipv4 | next_hop_hostname | next_hop_lat | cost |
|
||||
| :----------- | :------- | :---------- | :------------ | :---------------- | :----------- | :--- |
|
||||
| 10.144.144.1 | abc-dec | 10.1.1.0/24 | DIRECT | | 3.25 | 1 |
|
||||
|
||||
|
||||
2. Test whether Node A can access nodes under the proxied subnet
|
||||
|
||||
```sh
|
||||
ping 10.1.1.2
|
||||
```
|
||||
|
||||
---
|
||||
---
|
||||
|
||||
@@ -1,26 +1,28 @@
|
||||
# Two-node Networking
|
||||
|
||||
|
||||
Assuming the network topology of the two nodes is as follows
|
||||
|
||||
|
||||
```mermaid
|
||||
flowchart LR
|
||||
|
||||
|
||||
subgraph Node A IP 22.1.1.1
|
||||
nodea[EasyTier\n10.144.144.1]
|
||||
end
|
||||
|
||||
|
||||
subgraph Node B
|
||||
nodeb[EasyTier\n10.144.144.2]
|
||||
end
|
||||
|
||||
|
||||
nodea <-----> nodeb
|
||||
|
||||
|
||||
```
|
||||
|
||||
1. Execute on Node A:
|
||||
|
||||
```sh
|
||||
sudo easytier-core --ipv4 10.144.144.1
|
||||
```
|
||||
|
||||
Successful execution of the command will print the following.
|
||||
|
||||
```sh
|
||||
@@ -52,9 +54,10 @@ nodea <-----> nodeb
|
||||
xxxx-xx-xx xx:xx:xx: tun device ready. dev: tun0
|
||||
xxxx-xx-xx xx:xx:xx: new listener added. listener: tcp://0.0.0.0:11010
|
||||
xxxx-xx-xx xx:xx:xx: new listener added. listener: udp://0.0.0.0:11010
|
||||
````
|
||||
```
|
||||
|
||||
2. Execute on Node B
|
||||
|
||||
```sh
|
||||
sudo easytier-core --ipv4 10.144.144.2 --peers udp://22.1.1.1:11010
|
||||
```
|
||||
@@ -62,23 +65,27 @@ nodea <-----> nodeb
|
||||
3. Test Connectivity
|
||||
|
||||
The two nodes should connect successfully and be able to communicate within the virtual subnet
|
||||
|
||||
```sh
|
||||
ping 10.144.144.2
|
||||
```
|
||||
|
||||
Use easytier-cli to view node information in the subnet
|
||||
|
||||
```sh
|
||||
easytier-cli peer
|
||||
```
|
||||
| ipv4 | hostname | cost | lat_ms | loss_rate | rx_bytes | tx_bytes | tunnel_proto | nat_type | id |
|
||||
| :------------ | :------- | :--- | :----- | :-------- | :------- | :------- | :----------- | :------- | :-------- |
|
||||
| 10.144.144.1 | abc-dec | 1 | 3.452 | 0 | 17.33kB | 20.42kB | udp | FullCone | 390879727 |
|
||||
|
||||
|
||||
| ipv4 | hostname | cost | lat_ms | loss_rate | rx_bytes | tx_bytes | tunnel_proto | nat_type | id |
|
||||
| :----------- | :------- | :--- | :----- | :-------- | :------- | :------- | :----------- | :------- | :-------- |
|
||||
| 10.144.144.1 | abc-dec | 1 | 3.452 | 0 | 17.33kB | 20.42kB | udp | FullCone | 390879727 |
|
||||
|
||||
```sh
|
||||
easytier-cli route
|
||||
```
|
||||
|
||||
| ipv4 | hostname | proxy_cidrs | next_hop_ipv4 | next_hop_hostname | next_hop_lat | cost |
|
||||
| :----------- | :------- | :---------- | :------------ | :---------------- | :----------- | :--- |
|
||||
| 10.144.144.1 | abc-dec | | DIRECT | | 3.646 | 1 |
|
||||
|
||||
---
|
||||
---
|
||||
|
||||
@@ -52,4 +52,4 @@ connected_clients:
|
||||
|
||||
```
|
||||
|
||||
Before using the Client Config, you need to modify the Interface Address and Peer Endpoint to the client's IP and the IP of the EasyTier node, respectively. Import the configuration file into the WireGuard client to access the EasyTier network.
|
||||
Before using the Client Config, you need to modify the Interface Address and Peer Endpoint to the client's IP and the IP of the EasyTier node, respectively. Import the configuration file into the WireGuard client to access the EasyTier network.
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# Networking
|
||||
|
||||
::: tip tips
|
||||
The following text only describes the use of the command-line tool; the GUI program can be configured by referring to the following concepts.
|
||||
:::
|
||||
|
||||
Make sure EasyTier is installed according to the [Installation Guide](/en/guide/installation), and both easytier-core and easytier-cli commands are available.
|
||||
Make sure EasyTier is installed according to the [Installation Guide](/en/guide/installation), and both easytier-core and easytier-cli commands are available.
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@
|
||||
- [ ] Improve documentation and user guides.
|
||||
- [ ] Support features such as encryption, TCP hole punching,etc.
|
||||
- [ ] Support Android, IOS and other mobile platforms.
|
||||
- [ ] Support Web configuration management.
|
||||
- [ ] Support Web configuration management.
|
||||
|
||||
@@ -32,4 +32,3 @@ features:
|
||||
- title: Smart Routing
|
||||
details: Selects links based on traffic to reduce latency and increase throughput.
|
||||
---
|
||||
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
我们欢迎并鼓励社区贡献!如果你想参与进来,请提交 [GitHub PR](https://github.com/KKRainbow/EasyTier/pulls)。
|
||||
|
||||
详细的贡献指南可以在 [Contributing](https://github.com/KKRainbow/EasyTier/blob/main/CONTRIBUTING.md) 中找到。
|
||||
详细的贡献指南可以在 [Contributing](https://github.com/KKRainbow/EasyTier/blob/main/CONTRIBUTING.md) 中找到。
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@
|
||||
- 提问或报告问题:[GitHub Issues](https://github.com/KKRainbow/EasyTier/issues)
|
||||
- 讨论和交流:[GitHub Discussions](https://github.com/KKRainbow/EasyTier/discussions)
|
||||
- QQ 群: [949700262](https://qm.qq.com/q/LDxBN5L3kA)
|
||||
- Telegram:https://t.me/easytier
|
||||
- Telegram:https://t.me/easytier
|
||||
|
||||
@@ -1,14 +1,16 @@
|
||||
# 安装 {#installation}
|
||||
|
||||
1. **下载预编译的二进制文件**
|
||||
访问 [GitHub Release 页面](https://github.com/KKRainbow/EasyTier/releases) 下载适用于您操作系统的二进制文件。Release 压缩包中同时包含命令行程序和图形界面程序。
|
||||
访问 [GitHub Release 页面](https://github.com/KKRainbow/EasyTier/releases) 下载适用于您操作系统的二进制文件。Release 压缩包中同时包含命令行程序和图形界面程序。
|
||||
|
||||
2. **通过 crates.io 安装**
|
||||
|
||||
::: code-group
|
||||
|
||||
```sh [cargo]
|
||||
cargo install easytier
|
||||
```
|
||||
|
||||
:::
|
||||
|
||||
3. **通过源码安装**
|
||||
@@ -16,4 +18,4 @@
|
||||
```sh [cargo]
|
||||
cargo install --git https://github.com/KKRainbow/EasyTier.git
|
||||
```
|
||||
:::
|
||||
:::
|
||||
|
||||
@@ -16,4 +16,4 @@
|
||||
- **智能路由**:根据流量智能选择链路,减少延迟,提高吞吐量。
|
||||
- **TCP 支持**:在 UDP 受限的情况下,通过并发 TCP 链接提供可靠的数据传输,优化性能。
|
||||
- **高可用性**:支持多路径和在检测到高丢包率或网络错误时切换到健康路径。
|
||||
- **IPV6 支持**:支持利用 IPV6 组网。
|
||||
- **IPV6 支持**:支持利用 IPV6 组网。
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
# 许可证
|
||||
|
||||
EasyTier 根据 [Apache License 2.0](https://github.com/KKRainbow/EasyTier/blob/main/LICENSE) 许可证发布。
|
||||
EasyTier 根据 [Apache License 2.0](https://github.com/KKRainbow/EasyTier/blob/main/LICENSE) 许可证发布。
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
|
||||
可使用 `easytier-core --help` 查看全部配置项
|
||||
|
||||
```` sh
|
||||
```sh
|
||||
Options:
|
||||
--network-name <NETWORK_NAME>
|
||||
network name to identify this vpn network
|
||||
network name to identify this vpn network
|
||||
[default: default]
|
||||
--network-secret <NETWORK_SECRET>
|
||||
network secret to verify this node belongs to the vpn network
|
||||
network secret to verify this node belongs to the vpn network
|
||||
[default: ]
|
||||
-i, --ipv4 <IPV4>
|
||||
ipv4 address of this vpn node
|
||||
@@ -19,39 +19,39 @@ Options:
|
||||
-n, --proxy-networks <PROXY_NETWORKS>
|
||||
export local networks to other peers in the vpn
|
||||
-r, --rpc-portal <RPC_PORTAL>
|
||||
rpc portal address to listen for management
|
||||
rpc portal address to listen for management
|
||||
[default: 127.0.0.1:15888]
|
||||
-l, --listeners <LISTENERS>
|
||||
listeners to accept connections, pass '' to avoid listening.
|
||||
listeners to accept connections, pass '' to avoid listening.
|
||||
[default: tcp://0.0.0.0:11010 udp://0.0.0.0:11010 wg://0.0.0.0:11011]
|
||||
--net-ns <NET_NS>
|
||||
specify the linux network namespace, default is the root namespace
|
||||
--console-log-level <CONSOLE_LOG_LEVEL>
|
||||
console log level
|
||||
console log level
|
||||
[possible values: trace, debug, info, warn, error, off]
|
||||
--file-log-level <FILE_LOG_LEVEL>
|
||||
file log level
|
||||
file log level
|
||||
[possible values: trace, debug, info, warn, error, off]
|
||||
--file-log-dir <FILE_LOG_DIR>
|
||||
directory to store log files
|
||||
-m, --instance-name <INSTANCE_NAME>
|
||||
instance name to identify this vpn node in same machine
|
||||
instance name to identify this vpn node in same machine
|
||||
[default: default]
|
||||
-d, --instance-id <INSTANCE_ID>
|
||||
instance uuid to identify this vpn node in whole vpn network example: 123e4567-e89b-12d3-a456-426614174000
|
||||
instance uuid to identify this vpn node in whole vpn network example: 123e4567-e89b-12d3-a456-426614174000
|
||||
--vpn-portal <VPN_PORTAL>
|
||||
url that defines the vpn portal, allow other vpn clients to connect.
|
||||
example: wg://0.0.0.0:11010/10.14.14.0/24, means the vpn portal is a wireguard server listening on vpn.example.com:11010, and the vpn client is in network of 10.14.14.0/24
|
||||
example: wg://0.0.0.0:11010/10.14.14.0/24, means the vpn portal is a wireguard server listening on vpn.example.com:11010, and the vpn client is in network of 10.14.14.0/24
|
||||
--default-protocol <DEFAULT_PROTOCOL>
|
||||
default protocol to use when connecting to peers
|
||||
-u, --disable-encryption
|
||||
disable encryption for peers communication, default is false, must be same with peers
|
||||
--multi-thread
|
||||
use multi-thread runtime, default is single-thread
|
||||
use multi-thread runtime, default is single-thread
|
||||
--disable-ipv6
|
||||
do not use ipv6
|
||||
-h, --help
|
||||
Print help
|
||||
-V, --version
|
||||
Print version
|
||||
````
|
||||
```
|
||||
|
||||
@@ -8,4 +8,4 @@ sudo easytier-core --ipv4 10.144.144.2 --peers udp://22.1.1.1:11010
|
||||
|
||||
其中 `--peers ` 参数可以填写任意一个已经在虚拟网络中的节点的监听地址。
|
||||
|
||||
---
|
||||
---
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# 无公网IP组网
|
||||
|
||||
EasyTier 支持共享公网节点进行组网。目前已部署共享的公网节点
|
||||
EasyTier 支持共享公网节点进行组网。目前已部署共享的公网节点
|
||||
|
||||
``tcp://easytier.public.kkrainbow.top:11010``
|
||||
`tcp://easytier.public.kkrainbow.top:11010`
|
||||
|
||||
使用共享节点时,需要每个入网节点提供相同的 ``--network-name`` 和 ``--network-secret`` 参数,作为网络的唯一标识。
|
||||
使用共享节点时,需要每个入网节点提供相同的 `--network-name` 和 `--network-secret` 参数,作为网络的唯一标识。
|
||||
|
||||
以双节点为例,节点 A 执行:
|
||||
|
||||
@@ -20,4 +20,4 @@ sudo easytier-core --ipv4 10.144.144.2 --network-name abc --network-secret abc -
|
||||
|
||||
命令执行成功后,节点 A 即可通过虚拟 IP 10.144.144.2 访问节点 B。
|
||||
|
||||
---
|
||||
---
|
||||
|
||||
@@ -32,15 +32,15 @@ sudo easytier-core --ipv4 10.144.144.2 -n 10.1.1.0/24
|
||||
```sh
|
||||
easytier-cli route
|
||||
```
|
||||
|
||||
| ipv4 | hostname | proxy_cidrs | next_hop_ipv4 | next_hop_hostname | next_hop_lat | cost |
|
||||
| :----------- | :------- | :---------- | :------------ | :---------------- | :----------- | :--- |
|
||||
| 10.144.144.1 | abc-dec | 10.1.1.0/24 | DIRECT | | 3.25 | 1 |
|
||||
|
||||
|
||||
2. 测试节点 A 是否可访问被代理子网下的节点
|
||||
|
||||
```sh
|
||||
ping 10.1.1.2
|
||||
```
|
||||
|
||||
---
|
||||
---
|
||||
|
||||
@@ -1,26 +1,28 @@
|
||||
|
||||
# 双节点组网
|
||||
|
||||
假设双节点的网络拓扑如下
|
||||
```mermaid
|
||||
flowchart LR
|
||||
|
||||
subgraph 节点 A IP 22.1.1.1
|
||||
nodeA[EasyTier\n10.144.144.1]
|
||||
end
|
||||
```mermaid
|
||||
flowchart LR
|
||||
|
||||
subgraph 节点 B
|
||||
nodeB[EasyTier\n10.144.144.2]
|
||||
end
|
||||
subgraph 节点 A IP 22.1.1.1
|
||||
nodeA[EasyTier\n10.144.144.1]
|
||||
end
|
||||
|
||||
nodeA <-----> nodeB
|
||||
subgraph 节点 B
|
||||
nodeB[EasyTier\n10.144.144.2]
|
||||
end
|
||||
|
||||
```
|
||||
nodeA <-----> nodeB
|
||||
|
||||
```
|
||||
|
||||
1. 在节点 A 上执行:
|
||||
|
||||
```sh
|
||||
sudo easytier-core --ipv4 10.144.144.1
|
||||
```
|
||||
|
||||
命令执行成功会有如下打印。
|
||||
|
||||
```sh
|
||||
@@ -52,9 +54,10 @@
|
||||
xxxx-xx-xx xx:xx:xx: tun device ready. dev: tun0
|
||||
xxxx-xx-xx xx:xx:xx: new listener added. listener: tcp://0.0.0.0:11010
|
||||
xxxx-xx-xx xx:xx:xx: new listener added. listener: udp://0.0.0.0:11010
|
||||
````
|
||||
```
|
||||
|
||||
2. 在节点 B 执行
|
||||
|
||||
```sh
|
||||
sudo easytier-core --ipv4 10.144.144.2 --peers udp://22.1.1.1:11010
|
||||
```
|
||||
@@ -62,23 +65,27 @@
|
||||
3. 测试联通性
|
||||
|
||||
两个节点应成功连接并能够在虚拟子网内通信
|
||||
|
||||
```sh
|
||||
ping 10.144.144.2
|
||||
```
|
||||
|
||||
使用 easytier-cli 查看子网中的节点信息
|
||||
|
||||
```sh
|
||||
easytier-cli peer
|
||||
```
|
||||
| ipv4 | hostname | cost | lat_ms | loss_rate | rx_bytes | tx_bytes | tunnel_proto | nat_type | id |
|
||||
| :------------ | :------- | :--- | :----- | :-------- | :------- | :------- | :----------- | :------- | :-------- |
|
||||
| 10.144.144.1 | abc-dec | 1 | 3.452 | 0 | 17.33kB | 20.42kB | udp | FullCone | 390879727 |
|
||||
|
||||
|
||||
| ipv4 | hostname | cost | lat_ms | loss_rate | rx_bytes | tx_bytes | tunnel_proto | nat_type | id |
|
||||
| :----------- | :------- | :--- | :----- | :-------- | :------- | :------- | :----------- | :------- | :-------- |
|
||||
| 10.144.144.1 | abc-dec | 1 | 3.452 | 0 | 17.33kB | 20.42kB | udp | FullCone | 390879727 |
|
||||
|
||||
```sh
|
||||
easytier-cli route
|
||||
```
|
||||
|
||||
| ipv4 | hostname | proxy_cidrs | next_hop_ipv4 | next_hop_hostname | next_hop_lat | cost |
|
||||
| :----------- | :------- | :---------- | :------------ | :---------------- | :----------- | :--- |
|
||||
| 10.144.144.1 | abc-dec | | DIRECT | | 3.646 | 1 |
|
||||
|
||||
---
|
||||
---
|
||||
|
||||
@@ -54,4 +54,4 @@ connected_clients:
|
||||
|
||||
使用 Client Config 前,需要将 Interface Address 和 Peer Endpoint 分别修改为客户端的 IP 和 EasyTier 节点的 IP。将配置文件导入 WireGuard 客户端,即可访问 EasyTier 网络。
|
||||
|
||||
---
|
||||
---
|
||||
|
||||
+2
-1
@@ -1,6 +1,7 @@
|
||||
# 组网
|
||||
|
||||
::: warning 注意
|
||||
下文仅描述命令行工具的使用,图形界面程序可参考下述概念自行配置。
|
||||
:::
|
||||
|
||||
确保已按照 [安装指南](/guide/installation) 安装 EasyTier,并且 easytier-core 和 easytier-cli 两个命令都已经可用。
|
||||
确保已按照 [安装指南](/guide/installation) 安装 EasyTier,并且 easytier-core 和 easytier-cli 两个命令都已经可用。
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@
|
||||
- [ ] 完善文档和用户指南。
|
||||
- [ ] 支持 TCP 打洞等特性。
|
||||
- [ ] 支持 Android、IOS 等移动平台。
|
||||
- [ ] 支持 Web 配置管理。
|
||||
- [ ] 支持 Web 配置管理。
|
||||
|
||||
+9
-9
@@ -1,24 +1,24 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"esModuleInterop": true,
|
||||
"resolveJsonModule": true,
|
||||
"allowJs": true,
|
||||
"strict": true,
|
||||
"jsx": "preserve",
|
||||
"baseUrl": ".",
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"paths": {
|
||||
"@theme/*": [
|
||||
".vitepress/theme/*"
|
||||
]
|
||||
}
|
||||
},
|
||||
"resolveJsonModule": true,
|
||||
"allowJs": true,
|
||||
"strict": true,
|
||||
"outDir": "dist",
|
||||
"esModuleInterop": true
|
||||
},
|
||||
"include": [
|
||||
"env.d.ts",
|
||||
"src/**/*",
|
||||
".vitepress/**/*"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user