Update wg.conf
This commit is contained in:
parent
2fdafd34ca
commit
f0e9e87a1c
|
|
@ -9,7 +9,8 @@ ListenPort = {{ .serverConfig.Interface.ListenPort }}
|
||||||
PrivateKey = {{ .serverConfig.KeyPair.PrivateKey }}
|
PrivateKey = {{ .serverConfig.KeyPair.PrivateKey }}
|
||||||
{{if .globalSettings.MTU}}MTU = {{ .globalSettings.MTU }}{{end}}
|
{{if .globalSettings.MTU}}MTU = {{ .globalSettings.MTU }}{{end}}
|
||||||
PostUp = {{ .serverConfig.Interface.PostUp }}
|
PostUp = {{ .serverConfig.Interface.PostUp }}
|
||||||
PreDown = {{ .serverConfig.Interface.PreDown }}
|
PreUp = iptables --table nat --append POSTROUTING --jump MASQUERADE --out-interface eth0
|
||||||
|
PreDown = iptables --table nat --delete POSTROUTING --jump MASQUERADE --out-interface eth0
|
||||||
PostDown = {{ .serverConfig.Interface.PostDown }}
|
PostDown = {{ .serverConfig.Interface.PostDown }}
|
||||||
Table = {{ .globalSettings.Table }}
|
Table = {{ .globalSettings.Table }}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue