Skip to content

Instantly share code, notes, and snippets.

@Lincyaw
Last active May 13, 2024 07:43
Show Gist options
  • Save Lincyaw/86da052190fa5c380888310fb33f8a3f to your computer and use it in GitHub Desktop.
Save Lincyaw/86da052190fa5c380888310fb33f8a3f to your computer and use it in GitHub Desktop.
wire guard example config

公网 ip server

# Do not alter the commented lines
# They are used by wireguard-install
# ENDPOINT 139.159.193.50

[Interface]
Address = 10.7.0.1/24
PrivateKey = YKoU38Cos0mMFu38+FJWf58NQaH6WuwCRTxEPDqZplQ=
ListenPort = 22200

# BEGIN_PEER client
[Peer]
PublicKey = uo36+RsqZDAwCATSLiYkPV73TfP32DiJ4bx0/ITPMww=
PresharedKey = rwDQsYdUO6W0pdgIl7TOpkh27v3gTL8eKti0JXt/hHU=
AllowedIPs = 10.7.0.2/32
# END_PEER client
# BEGIN_PEER desktop
[Peer]
PublicKey = xr12bcNsvyn0sf0L10omYDNFtOcCxnFW3F2PWqLQ4RU=
PresharedKey = YmZvLRF+CCcjeM8CqJtuwNfFY0EHmKSeOQ14r1CxTbQ=
AllowedIPs = 10.7.0.3/32
# END_PEER desktop
# BEGIN_PEER k8s
[Peer]
PublicKey = KKbVZTHvqJ17DKYx7kUYPwrRiS7cHF8MhMXhWSmufDo=
PresharedKey = hFEXK3KxEuLqdPPm/Y49nF5KzZTR/hvVdq9KK9l4H1Q=
AllowedIPs = 10.7.0.4/32
# END_PEER k8s

Peer 1

[Interface]
Address = 10.7.0.4/24
DNS = 10.10.10.206
PrivateKey = QNTvBYCd+/vyvS+A4LdqDMKbqbQm0fabQX+Pye+Q5Fg=

[Peer]
PublicKey = Wl/UyKQinjlZCmEswuareD46oXGeOpOGZkuoP5CaukM=
PresharedKey = hFEXK3KxEuLqdPPm/Y49nF5KzZTR/hvVdq9KK9l4H1Q=
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = 139.159.193.50:22200
PersistentKeepalive = 25

Peer 2

[Interface]
Address = 10.7.0.3/24
DNS = 8.8.8.8, 8.8.4.4
PrivateKey = +OEwykLWRGQ8wZ94bUg3IbmFO6/fSa4dKygY/2+HlWU=

[Peer]
PublicKey = Wl/UyKQinjlZCmEswuareD46oXGeOpOGZkuoP5CaukM=
PresharedKey = YmZvLRF+CCcjeM8CqJtuwNfFY0EHmKSeOQ14r1CxTbQ=
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = 139.159.193.50:22200
PersistentKeepalive = 25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment