EtherGuard-VPN/example_config/p2p_mode
2021-12-12 18:06:54 +00:00
..
EgNet_edge1.yaml Move TTL to header, remove packet_len, increase MTU to 1404 2021-12-12 11:35:20 +00:00
EgNet_edge2.yaml Move TTL to header, remove packet_len, increase MTU to 1404 2021-12-12 11:35:20 +00:00
EgNet_edge3.yaml Move TTL to header, remove packet_len, increase MTU to 1404 2021-12-12 11:35:20 +00:00
EgNet_edge4.yaml Move TTL to header, remove packet_len, increase MTU to 1404 2021-12-12 11:35:20 +00:00
EgNet_edge5.yaml Move TTL to header, remove packet_len, increase MTU to 1404 2021-12-12 11:35:20 +00:00
EgNet_edge6.yaml Move TTL to header, remove packet_len, increase MTU to 1404 2021-12-12 11:35:20 +00:00
genp2p_2.yaml Update readme.md 2021-12-12 18:06:54 +00:00
genp2p.yaml Update readme.md 2021-12-12 18:06:54 +00:00
README_zh.md Update readme.md 2021-12-12 18:06:54 +00:00
README.md Update readme.md 2021-12-12 18:06:54 +00:00

Etherguard

English | 中文

P2P Mode

P2P Mode is inspired by tinc, There are no SuperNode. All EdgeNode will exchange information each other.
EdgeNodes are keep trying to connect each other, and notify all other peers success or not.
All edges runs Floyd-Warshall Algorithm locally and find the best route by it self.
Not recommend to use this mode in production environment, not test yet.

Quick Start

First, edit the gensp2p.yaml

Config output dir: /tmp/eg_gen_static   # Profile output location
ConfigTemplate for edge node: ""        # Profile Template
Network name: "EgNet"
Edge Node:
  MacAddress prefix: ""                 # Leave blank to generate randomly
  IPv4 range: 192.168.76.0/24           # By the way, the IP part can be omitted.
  IPv6 range: fd95:71cb:a3df:e586::/64  # The only purpose of this field is to call the ip command after startup to add an ip to the tap interface
  IPv6 LL range: fe80::a3df:0/112       # 
Edge Nodes:                             # Node related settings
  1:
    Endpoint(optional): 127.0.0.1:3001
  2:
    Endpoint(optional): 127.0.0.1:3002
  3:
    Endpoint(optional): 127.0.0.1:3003
  4:
    Endpoint(optional): 127.0.0.1:3004
  5:
    Endpoint(optional): 127.0.0.1:3005
  6:
    Endpoint(optional): 127.0.0.1:3006

Run this, it will generate the required configuration file

./etherguard-go -mode gencfg -cfgmode p2p -config example_config/p2p_mode/gensp2p.yaml

Deploy these configuration files to the corresponding nodes, and then execute

./etherguard-go -config [config path] -mode edge

you can turn off unnecessary logs to increase performance after it works.

[WIP]