server_config/wireguard/server/wg0.conf

14 lines
467 B
Plaintext
Raw Normal View History

2024-05-06 18:01:03 +02:00
[Interface]
PrivateKey = {{ WIREGUARD_SERVER_PRIVATE_KEY }}
2024-05-06 18:01:03 +02:00
Address = 10.0.0.1/24
MTU = 1420
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]
PublicKey = {{ WIREGUARD_WIFI_FABLAB_PUBLIC_KEY }}
2024-05-06 18:01:03 +02:00
AllowedIPs = 10.0.0.2/32
###################