remove [Interfaces] left over from before, re-order
This commit is contained in:
parent
b38e0966eb
commit
d0e8eb74ec
17
add.go
17
add.go
@ -23,23 +23,18 @@ AllowedIPs={{ .AllowedIPs }}
|
||||
PersistentKeepalive={{ .Keepalive }}
|
||||
`
|
||||
|
||||
const vyattaPeerConf = `[Interface]
|
||||
configure
|
||||
|
||||
const vyattaPeerConf = `configure
|
||||
set interfaces wireguard dsnet address {{ .Peer.IP }}/{{ .Cidrmask }}
|
||||
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 allowed-ips {{ .AllowedIPs }}
|
||||
set interfaces wireguard dsnet peer persistent-keepalive {{ .Keepalive }}
|
||||
|
||||
set interfaces wireguard dsnet private-key {{ .Peer.PrivateKey.Key }}
|
||||
set interfaces wireguard dsnet preshared-key {{ .Peer.PresharedKey.Key }}
|
||||
{{- if .DsnetConfig.DNS }}
|
||||
#set service dns forwarding name-server {{ .DsnetConfig.DNS }}
|
||||
{{ end }}
|
||||
|
||||
set interfaces wireguard dsnet private-key {{ .Peer.PrivateKey.Key }}
|
||||
set interfaces wireguard dsnet preshared-key {{ .Peer.PresharedKey.Key }}
|
||||
|
||||
set interfaces wireguard dsnet peer {{ .DsnetConfig.PrivateKey.PublicKey.Key }} endpoint {{ .DsnetConfig.ExternalIP }}:{{ .DsnetConfig.ListenPort }}
|
||||
set interfaces wireguard dsnet peer allowed-ips {{ .AllowedIPs }}
|
||||
set interfaces wireguard dsnet peer persistent-keepalive {{ .Keepalive }}
|
||||
commit; save
|
||||
`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user