mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-25 06:49:31 +01:00
add wireguard
This commit is contained in:
10
wireguard/data/wg0.conf
Normal file
10
wireguard/data/wg0.conf
Normal 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
|
||||
Reference in New Issue
Block a user