stuffy_stuff/wireguard.conf

47 lines
905 B
Plaintext
Raw Normal View History

2021-02-15 12:34:07 +01:00
############ SERVER CONFIG #################
2020-02-05 01:59:57 +01:00
# Server
[Interface]
Address = 10.8.0.1
ListenPort = 51820
PrivateKey = privserver
2021-02-15 12:34:07 +01:00
# Server end
2020-02-05 01:59:57 +01:00
2021-02-15 12:34:07 +01:00
# client 1
2020-02-05 01:59:57 +01:00
[Peer]
PublicKey = client1
PresharedKey = sss
AllowedIPs = 10.8.0.3/32
2021-02-15 12:34:07 +01:00
# client 1 end
2020-02-05 01:59:57 +01:00
2021-02-15 12:34:07 +01:00
# client 2
2020-02-05 01:59:57 +01:00
[Peer]
PublicKey = client2
AllowedIPs = 10.8.0.4/32
2021-02-15 12:34:07 +01:00
# client 2 end
2020-02-05 01:59:57 +01:00
2021-02-15 12:34:07 +01:00
###################### CLIENT 1 CONFIG ############################
2020-02-05 01:59:57 +01:00
[Interface]
PrivateKey = privcl1
Address = 10.8.0.3/32
[Peer]
PublicKey = pubserv
PresharedKey = sss
AllowedIPs = 10.8.0.0/24
2021-02-15 12:34:07 +01:00
Endpoint = xxx:51820 # public ip address of the server
2020-02-05 01:59:57 +01:00
PersistentKeepalive = 25
2021-02-15 12:34:07 +01:00
###################### CLIENT 2 CONFIG ############################
2020-02-05 01:59:57 +01:00
[Interface]
PrivateKey = privcl2
Address = 10.8.0.4/32
[Peer]
PublicKey = pubserv
AllowedIPs = 10.8.0.0/24
2021-02-15 12:34:07 +01:00
Endpoint = xxx:51820 # public ip address of the server
2020-02-05 01:59:57 +01:00
PersistentKeepalive = 25
##################################################