mirror of
https://github.com/DanWin/mail-hosting.git
synced 2024-11-24 00:20:26 +00:00
13 lines
398 B
Text
13 lines
398 B
Text
[Interface]
|
|
Address = 10.9.0.1/24
|
|
MTU = 1380
|
|
SaveConfig = true
|
|
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -t nat -A POSTROUTING -o ens3 -j MASQUERADE
|
|
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -t nat -D POSTROUTING -o ens3 -j MASQUERADE
|
|
ListenPort = 12912
|
|
PrivateKey = YOUR_PRIVATE_KEY
|
|
|
|
[Peer]
|
|
PublicKey = YOUR_PUBLIC_KEY
|
|
AllowedIPs = 10.9.0.2/32
|
|
Endpoint = YOUR_IP:12912
|