Jafner.net/docker_config/wireguard/config/wg0.conf
2021-03-01 11:45:53 -08:00

23 lines
654 B
Plaintext

[Interface]
Address = 10.13.14.1
ListenPort = 51820
PrivateKey = 0F7XoEckCQyj7nVUC5nXoSueug+3Tha2vdYNLR37cXw=
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]
# peer1
PublicKey = EC933+zQLSdTe1epqFGYtU5eC+8pslWakxpB/KZAOxQ=
AllowedIPs = 10.13.14.2/32
[Peer]
# peer2
PublicKey = ykdMxhRMAMArEmBXxZPh8gjD1Ay+/TNxoabUmZOjqGA=
AllowedIPs = 10.13.14.3/32
[Peer]
# peer3
PublicKey = ***REMOVED***
AllowedIPs = 10.13.14.4/32