From d72b83f3c0db3dd1a8d4f4ece2c58ff48287e109 Mon Sep 17 00:00:00 2001 From: Ioannis Dressos <96877388+idressos@users.noreply.github.com> Date: Sun, 29 Oct 2023 16:21:01 +0200 Subject: [PATCH] Include FwMark option when applying config --- templates/wg.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/wg.conf b/templates/wg.conf index 1b71f7f..b333217 100644 --- a/templates/wg.conf +++ b/templates/wg.conf @@ -7,6 +7,7 @@ Address = {{$first :=true}}{{range .serverConfig.Interface.Addresses }}{{if $first}}{{$first = false}}{{else}},{{end}}{{.}}{{end}} ListenPort = {{ .serverConfig.Interface.ListenPort }} PrivateKey = {{ .serverConfig.KeyPair.PrivateKey }} +{{if .globalSettings.FirewallMark }}FwMark = {{ .globalSettings.FirewallMark }}{{end}} {{if .globalSettings.MTU}}MTU = {{ .globalSettings.MTU }}{{end}} {{if .serverConfig.Interface.PostUp }}PostUp = {{ .serverConfig.Interface.PostUp }}{{end}} {{if .serverConfig.Interface.PostDown }}PostDown = {{ .serverConfig.Interface.PostDown }}{{end}}