tp wireguard

This commit is contained in:
root 2023-10-12 15:52:38 +02:00
parent 63fd73b56c
commit 32d6b7dbd1
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,15 @@
# local settings for Endpoint A
[Interface]
PrivateKey = aLihTWpe3bt3XwNPGOVS0mB9vfr4JqeZPyzhlgQ052k=
Address = 10.0.0.1/32
ListenPort = 51820
# IP forwarding
PreUp = sysctl -w net.ipv4.ip_forward=1
# remote settings for Endpoint B
[Peer]
PublicKey = 8bEwgf4jUaIvZslBNwQSP3sNrJPZg1YDiFqyMCvJszo=
Endpoint = 192.168.3.2:51820
AllowedIPs = 10.0.0.2/32, 192.168.2.0/24

15
sio2/CYBER/wg0-b.conf Normal file
View File

@ -0,0 +1,15 @@
# local settings for Endpoint B
[Interface]
PrivateKey = eLqg4jQCId97MOdcP5k0FIlxnaMBArlPPEaTVmRPWFk=
Address = 10.0.0.2/32
ListenPort = 51820
# IP forwarding
PreUp = sysctl -w net.ipv4.ip_forward=1
# remote settings for Endpoint A
[Peer]
PublicKey = 5UQzcels7MqDXWdt2oDvfbjykISpYl4i8uYFytHijUc=
Endpoint = 192.168.3.2:51820
AllowedIPs = 10.0.0.1/32, 192.168.1.0/24