[Interface]
Address = ${INTERFACE}.1
ListenPort = {{ service_port_wireguard }}
PrivateKey = $(cat /config/server/privatekey-server)
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth+ -j MASQUERADE
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth+ -j MASQUERADE
{% for item in wireguard_peers %}

[Peer]
# Name = {{ item.name }}
PublicKey = {{ item.public_key }}
AllowedIPs = {{ item.source_ip }}
{% endfor %}