diff --git a/wireguard/wg0.conf b/wireguard/wg0.conf new file mode 100644 index 00000000..c56b4f8c --- /dev/null +++ b/wireguard/wg0.conf @@ -0,0 +1,14 @@ +[Interface] +Address = 10.64.0.1/10 +ListenPort = 500 +DNS = 10.3.14.15 +PrivateKey = server_privatekey + +PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE +PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE + +[Peer] +#Peer-1 +PublicKey = peer1_publickey +AllowedIPs = 10.111.9.1/32 +#PersistentkeepAlive = 60