2024-05-06 18:01:03 +02:00
|
|
|
[Interface]
|
2024-05-30 15:12:12 +02:00
|
|
|
PrivateKey = {{ WIREGUARD_SERVER_PRIVATE_KEY }}
|
2024-05-06 18:01:03 +02:00
|
|
|
Address = 10.0.0.1/24
|
|
|
|
MTU = 1420
|
2024-05-30 15:12:12 +02:00
|
|
|
ListenPort = {{ WIREGUARD_SERVER_LISTEN_PORT }}
|
2024-05-06 18:01:03 +02:00
|
|
|
PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eno1 -j MASQUERADE
|
|
|
|
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eno1 -j MASQUERADE
|
|
|
|
|
|
|
|
### Wifi Fablab ###
|
|
|
|
[Peer]
|
2024-05-30 15:12:12 +02:00
|
|
|
PublicKey = {{ WIREGUARD_WIFI_FABLAB_PUBLIC_KEY }}
|
2024-05-06 18:01:03 +02:00
|
|
|
AllowedIPs = 10.0.0.2/32
|
|
|
|
###################
|