hardcode in a /22 until fixed correctly
This commit is contained in:
parent
d1d0113832
commit
a361bffa3c
6
add.go
6
add.go
@ -8,8 +8,10 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// TODO -- replace hardcoded /22 with one derived from conf.Network
|
||||||
|
|
||||||
const wgQuickPeerConf = `[Interface]
|
const wgQuickPeerConf = `[Interface]
|
||||||
Address = {{ .Peer.IP }}
|
Address = {{ .Peer.IP }}/22
|
||||||
PrivateKey={{ .Peer.PrivateKey.Key }}
|
PrivateKey={{ .Peer.PrivateKey.Key }}
|
||||||
{{- if .DsnetConfig.DNS }}
|
{{- if .DsnetConfig.DNS }}
|
||||||
DNS = {{ .DsnetConfig.DNS }}
|
DNS = {{ .DsnetConfig.DNS }}
|
||||||
@ -26,7 +28,7 @@ PersistentKeepalive={{ .Keepalive }}
|
|||||||
const vyattaPeerConf = `[Interface]
|
const vyattaPeerConf = `[Interface]
|
||||||
configure
|
configure
|
||||||
|
|
||||||
set interfaces wireguard dsnet address {{ .Peer.IP }}
|
set interfaces wireguard dsnet address {{ .Peer.IP }}/22
|
||||||
set interfaces wireguard dsnet route-allowed-ips true
|
set interfaces wireguard dsnet route-allowed-ips true
|
||||||
|
|
||||||
set interfaces wireguard dsnet peer {{ .DsnetConfig.PrivateKey.PublicKey.Key }} endpoint {{ .DsnetConfig.ExternalIP }}:{{ .DsnetConfig.ListenPort }}
|
set interfaces wireguard dsnet peer {{ .DsnetConfig.PrivateKey.PublicKey.Key }} endpoint {{ .DsnetConfig.ExternalIP }}:{{ .DsnetConfig.ListenPort }}
|
||||||
|
Loading…
Reference in New Issue
Block a user