mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-06-08 00:56:58 +03:00
Update wg.conf
This commit is contained in:
parent
2fdafd34ca
commit
f0e9e87a1c
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue