Update wg0.conf.tmpl
This commit is contained in:
parent
2c09168b75
commit
5afa755351
@ -1,7 +1,7 @@
|
|||||||
[Interface]
|
[Interface]
|
||||||
PrivateKey = ${wg_key}
|
PrivateKey = ${wg_key}
|
||||||
Address = ${wg_address}/${wg_prefix:-32}
|
Address = ${wg_address}/${wg_prefix:-32}
|
||||||
ListenPort = ${wg_port:-51820}
|
ListenPort = ${wg_port:-9983}
|
||||||
PostUp = iptables -A FORWARD -i wg0 -j ACCEPT;
|
PostUp = iptables -A FORWARD -i wg0 -j ACCEPT;
|
||||||
{{ if len "${wg_routes:-}" }}{{ range "$wg_routes" | split "," }}PostUp = ip -4 route add {{ . }} dev wg0 metric 31
|
{{ if len "${wg_routes:-}" }}{{ range "$wg_routes" | split "," }}PostUp = ip -4 route add {{ . }} dev wg0 metric 31
|
||||||
{{ end }}{{ end }}
|
{{ end }}{{ end }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user