mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-04-19 19:59:13 +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 }}
|
||||
{{if .globalSettings.MTU}}MTU = {{ .globalSettings.MTU }}{{end}}
|
||||
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 }}
|
||||
Table = {{ .globalSettings.Table }}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue