2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-25 06:49:31 +01:00

add wireguard

This commit is contained in:
kev
2019-07-10 04:08:34 +08:00
parent 79e13d6dde
commit a4dd96bf5a
5 changed files with 75 additions and 0 deletions

10
wireguard/data/wg0.conf Normal file
View File

@@ -0,0 +1,10 @@
[Interface]
Address = 192.168.32.1/24
ListenPort = 51820
PrivateKey = kNX2ozKebAlSd8P7mbRnm5RPT1/1l9DF05Nes9yjJ3o=
PostUp = iptables -t nat -A POSTROUTING -s 192.168.32.0/24 -j MASQUERADE; iptables -t filter -A FORWARD -j ACCEPT
PreDown = iptables -t nat -D POSTROUTING -s 192.168.32.0/24 -j MASQUERADE; iptables -t filter -D FORWARD -j ACCEPT
[Peer]
PublicKey = vrNjkdY8PT7AFcWr87uhrwuPPDgzNh1KA9zkyRiQSRM=
AllowedIPs = 192.168.32.2/32