Add 'wireguard.conf'
This commit is contained in:
parent
92bf83a463
commit
509f6e4e55
1 changed files with 50 additions and 0 deletions
50
wireguard.conf
Normal file
50
wireguard.conf
Normal file
|
@ -0,0 +1,50 @@
|
|||
# Server
|
||||
[Interface]
|
||||
Address = 10.8.0.1
|
||||
ListenPort = 51820
|
||||
PrivateKey = privserver
|
||||
SaveConfig = false
|
||||
|
||||
# laptop start
|
||||
[Peer]
|
||||
PublicKey = client1
|
||||
PresharedKey = sss
|
||||
AllowedIPs = 10.8.0.3/32
|
||||
# laptop end
|
||||
|
||||
# omv
|
||||
[Peer]
|
||||
PublicKey = client2
|
||||
AllowedIPs = 10.8.0.4/32
|
||||
# omv end
|
||||
|
||||
###################################################
|
||||
|
||||
# Client 1
|
||||
[Interface]
|
||||
PrivateKey = privcl1
|
||||
Address = 10.8.0.3/32
|
||||
MTU = 1280
|
||||
|
||||
[Peer]
|
||||
PublicKey = pubserv
|
||||
PresharedKey = sss
|
||||
AllowedIPs = 10.8.0.0/24
|
||||
Endpoint = xxx:51820
|
||||
PersistentKeepalive = 25
|
||||
|
||||
##################################################
|
||||
|
||||
# Client 2
|
||||
[Interface]
|
||||
PrivateKey = privcl2
|
||||
Address = 10.8.0.4/32
|
||||
MTU = 1280
|
||||
|
||||
[Peer]
|
||||
PublicKey = pubserv
|
||||
AllowedIPs = 10.8.0.0/24
|
||||
Endpoint = xxx:51820
|
||||
PersistentKeepalive = 25
|
||||
|
||||
##################################################
|
Loading…
Reference in a new issue