mirror of
https://github.com/KusakabeShi/EtherGuard-VPN.git
synced 2025-08-20 13:47:32 +02:00
Update readme.md
This commit is contained in:
26
README_zh.md
26
README_zh.md
@@ -55,15 +55,35 @@ Usage of ./etherguard-go-vpp:
|
|||||||
|
|
||||||
首先按需求修改`example_config/super_mode/gensuper.yaml`
|
首先按需求修改`example_config/super_mode/gensuper.yaml`
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
Config output dir: /tmp/eg_gen
|
||||||
|
ConfigTemplate for super node: ""
|
||||||
|
ConfigTemplate for edge node: ""
|
||||||
|
Network name: eg_net
|
||||||
|
Super Node:
|
||||||
|
Listen port: 3456
|
||||||
|
EdgeAPI prefix: /eg_net/eg_api
|
||||||
|
Endpoint(IPv4)(optional): example.com
|
||||||
|
Endpoint(IPv6)(optional): example.com
|
||||||
|
Endpoint(EdgeAPI): http://example.com:3456/eg_net/eg_api
|
||||||
|
Edge Node:
|
||||||
|
Node IDs: "[1~10,11,19,23,29,31,55~66,88~99]"
|
||||||
|
MacAddress prefix: "" #留空隨機產生
|
||||||
|
IPv4 range: 192.168.76.0/24
|
||||||
|
IPv6 range: fd95:71cb:a3df:e586::/64
|
||||||
|
IPv6 LL range: fe80::a3df:0/112
|
||||||
```
|
```
|
||||||
$ ./etherguard-go -mode gencfg -cfgmode super -config example_config/super_mode/gensuper.yaml
|
|
||||||
```
|
|
||||||
|
|
||||||
順帶一提,最後三個欄位,IP的部分可以直接省略沒關係
|
順帶一提,最後三個欄位,IP的部分可以直接省略沒關係
|
||||||
這個欄位唯一的目的只是在啟動以後,調用ip命令,幫tap接口加個ip
|
這個欄位唯一的目的只是在啟動以後,調用ip命令,幫tap接口加個ip
|
||||||
和VPN本身運作完全無關
|
和VPN本身運作完全無關
|
||||||
VPN起來以後,自己手動加ip也行
|
VPN起來以後,自己手動加ip也行
|
||||||
|
|
||||||
|
```
|
||||||
|
$ ./etherguard-go -mode gencfg -cfgmode super -config example_config/super_mode/gensuper.yaml
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
把一個super,2個edge分別搬去三台機器
|
把一個super,2個edge分別搬去三台機器
|
||||||
或是2台機器,super和edge可以是同一台
|
或是2台機器,super和edge可以是同一台
|
||||||
|
|
||||||
|
@@ -9,7 +9,7 @@ Super Node:
|
|||||||
Endpoint(IPv6)(optional): example.com
|
Endpoint(IPv6)(optional): example.com
|
||||||
Endpoint(EdgeAPI): http://example.com:3456/eg_net/eg_api
|
Endpoint(EdgeAPI): http://example.com:3456/eg_net/eg_api
|
||||||
Edge Node:
|
Edge Node:
|
||||||
Node IDs: "[1~100]"
|
Node IDs: "[1~10,11,19,23,29,31,55~66,88~99]"
|
||||||
MacAddress prefix: ""
|
MacAddress prefix: ""
|
||||||
IPv4 range: 192.168.76.0/24
|
IPv4 range: 192.168.76.0/24
|
||||||
IPv6 range: fd95:71cb:a3df:e586::/64
|
IPv6 range: fd95:71cb:a3df:e586::/64
|
||||||
|
Reference in New Issue
Block a user