Update readme.md

This commit is contained in:
Kusakabe Si 2021-12-07 20:47:41 +00:00
parent 0be4e84f8d
commit 1c50fe0c98
2 changed files with 24 additions and 4 deletions

View File

@ -55,15 +55,35 @@ Usage of ./etherguard-go-vpp:
首先按需求修改`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命令幫tap接口加個ip
和VPN本身運作完全無關
VPN起來以後自己手動加ip也行
```
$ ./etherguard-go -mode gencfg -cfgmode super -config example_config/super_mode/gensuper.yaml
```
把一個super2個edge分別搬去三台機器
或是2台機器super和edge可以是同一台

View File

@ -9,7 +9,7 @@ Super Node:
Endpoint(IPv6)(optional): example.com
Endpoint(EdgeAPI): http://example.com:3456/eg_net/eg_api
Edge Node:
Node IDs: "[1~100]"
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