readme.md and allowed_char

Update etherguard-super.service

Update etherguard-super.service

Update etherguard-super.service
This commit is contained in:
Kusakabe Si 2021-12-15 06:30:12 +00:00
parent 38738694fa
commit 6ca992a1db
4 changed files with 11 additions and 10 deletions

View File

@ -49,7 +49,9 @@ Static Mode | No dynamic routing, no handshake server.<br>Similar to original wi
Static Mode | Inspired by [n2n](https://github.com/ntop/n2n). There 2 types of node: SuperNode and EdgeNode<br>EdgeNode must connect to SuperNode firstget connection info of other EdgeNode from the SuperNode<br>The SuperNode runs [Floyd-Warshall Algorithm](https://en.wikipedia.org/wiki/FloydWarshall_algorithm)and distribute the result to all other EdgeNodes.<br>[Detail](example_config/super_mode/README.md)
P2P Mode | Inspired by [tinc](https://github.com/gsliepen/tinc), There are no SuperNode. All EdgeNode will exchange information each other.<br>EdgeNodes are keep trying to connect each other, and notify all other peers success or not.<br>All edges runs [Floyd-Warshall Algorithm](https://en.wikipedia.org/wiki/FloydWarshall_algorithm) locally and find the best route by it self.<br>**Not recommend to use this mode in production environment, not test yet.**<br>[Detail](example_config/p2p_mode/README.md)
## [Quick start](example_config/super_mode/README.md)
## Quick start
[Super mode quick start](example_config/super_mode/README.md)
## Build

View File

@ -2,16 +2,15 @@
[Unit]
Description=Etherguard supernode
After=network.target
# wg-quick.service
[Service]
User=nobody
Group=nogroup
WorkingDirectory=/etc/eggo
User=root
Group=root
Type=notify
#ExecStartPre=+chgrp nogroup /var/run/wireguard
ExecStartPre=+mkdir -p /var/run/wireguard
#ExecStartPre=+chgrp etherguard /var/run/wireguard
#ExecStartPre=+chmod 775 /var/run/wireguard
ExecStart=etherguard-go -config /etc/eggo/super.yaml -mode super -no-uapi
ExecStart=etherguard-go -config /etc/eggo/super.yaml -mode super
Nice=5
[Install]

View File

@ -68,7 +68,7 @@ func GenNMCfg(NMCinfigPath string, enableP2P bool, printExample bool) (err error
if len(NMCfg.NetworkName) > 10 {
return fmt.Errorf("name too long")
}
allowed := "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_"
allowed := "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-"
for _, c := range []byte(NMCfg.NetworkName) {
if !strings.Contains(allowed, string(c)) {
return fmt.Errorf("name can only contain %v", allowed)

View File

@ -164,7 +164,7 @@ func GenSuperCfg(SMCinfigPath string, printExample bool) (err error) {
if len(SMCfg.NetworkName) > 10 {
return fmt.Errorf("Name too long")
}
allowed := "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_"
allowed := "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-"
for _, c := range []byte(SMCfg.NetworkName) {
if strings.Contains(allowed, string(c)) == false {
return fmt.Errorf("Name can only contain %v", allowed)