update readme

This commit is contained in:
KusakabeSi 2021-09-21 20:10:11 +00:00
parent a26376cec5
commit 1fcc1bbfa1
3 changed files with 6 additions and 4 deletions

View File

@ -67,6 +67,7 @@ Usage of ./etherguard-go:
3. `noL2`: Remove all Layer 2 header
2. `nodeid`: NodeID. Must be unique in the whole Etherguard network.
3. `nodename`: Node Name.
4. `defaultttl`: Default TTL(etherguard layer. not affect ethernet layer)
4. `privkey`: Private key. Same spec as wireguard.
5. `listenport`: UDP lesten port
6. `loglevel`: Log Level

View File

@ -77,6 +77,7 @@ Usage of ./etherguard-go-vpp:
但是本VPN會查詢L2用作選路所以會變成一律廣播
2. `nodeid`: 節點ID。節點之間辨識身分用的同一網路內節點ID不能重複
3. `nodename`: 節點名稱
4. `defaultttl`: 預設ttl(etherguard層使用和乙太層不共通)
4. `privkey`: 私鑰和wireguard規格一樣
5. `listenport`: 監聽的udp埠
6. `loglevel`: 紀錄log

View File

@ -98,10 +98,10 @@ HTTP還有一個API
1. nodereporttimeout: 收到的`Pong`封包的有效期限。太久沒收到就變回Infinity
1. recalculatecooldown: Floyd-Warshal是O(n^3)時間複雜度,不能太常算。設個冷卻時間
1. peers: Peer列表參考 [README_zh.md](../README_zh.md)
1. nodeid: 1
1. pubkey: ZqzLVSbXzjppERslwbf2QziWruW3V/UIx9oqwU8Fn3I=
1. endpoint: 127.0.0.1:3001
1. static: true
1. nodeid: Peer的節點ID
1. name: Peer名稱(顯示在前端)
1. pubkey: peer 公鑰
1. pskey: preshared key
## V4 V6 兩個公鑰
為什麼要分開IPv4和IPv6呢?