mirror of
https://github.com/KusakabeShi/EtherGuard-VPN.git
synced 2024-11-25 00:33:08 +01:00
readme.md and allowed_char
Update etherguard-super.service Update etherguard-super.service Update etherguard-super.service
This commit is contained in:
parent
38738694fa
commit
6ca992a1db
@ -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 first,get connection info of other EdgeNode from the SuperNode<br>The SuperNode runs [Floyd-Warshall Algorithm](https://en.wikipedia.org/wiki/Floyd–Warshall_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/Floyd–Warshall_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
|
||||
|
||||
|
@ -2,17 +2,16 @@
|
||||
[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]
|
||||
WantedBy=multi-user.target
|
||||
WantedBy=multi-user.target
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user