Skip to content

Instantly share code, notes, and snippets.

@delfer
Created March 30, 2022 06:39
Show Gist options
  • Save delfer/32f9c3abe356c784290eca789c43891b to your computer and use it in GitHub Desktop.
Save delfer/32f9c3abe356c784290eca789c43891b to your computer and use it in GitHub Desktop.
Example Nyr wg0.conf
# Do not alter the commented lines
# They are used by wireguard-install
# ENDPOINT 123.32.1.123
[Interface]
Address = 10.7.0.1/24
PrivateKey = 6BHdTUCKVScVazHW7hlWHG02HP58qVbdS5UZ/UgZrHU=
#ListenPort = Commented line
ListenPort = 51820
## One more comment for Address = PrivateKey = ListenPort =
# ListenPort = 123456788
# BEGIN_PEER client
[Peer]
PublicKey = pSrgxMLBa0LUc8X/FT3UxUT5ZOiKzCvdXSMjgCaCrUQ=
PresharedKey = ARZW+Ockw/nHzF6nkZ0NnEsAQ9uBFJLzMH3J8igG9gs=
AllowedIPs = 10.7.0.2/32
# END_PEER client
# BEGIN_PEER JohnDoe
[Peer]
PublicKey = K2BgC6J66vkWXJOkRApyqbChOvMqunXsD7cBMY6LT1s=
PresharedKey = 8EkDBl+go2r0w8aEypIdOQ7r9JXR0imIiQTjdD4jUak=
AllowedIPs = 10.7.0.3/32
# END_PEER JohnDoe
# BEGIN_PEER Test_User
[Peer]
PublicKey = yR0PuZp/Zm9VJpMhI8OzdUTzDInifaPTjDn9Vl+BMw0=
PresharedKey = HARMlkVODBpr0XH081RevK0WivEvdNW862VghO3lRF0=
AllowedIPs = 10.7.0.4/32
# END_PEER Test_User
# BEGIN_PEER __Test_User_2
[Peer]
PublicKey = PL7qXaKn35c65gtF1+amzLdbi82X+DzdjIDwlbNCgH8=
PresharedKey = Ih19u3dPfe0UKcMOjrkQI7CrPpLkZWlIfCiPqHysrlQ=
AllowedIPs = 10.7.0.5/32
# END_PEER __Test_User_2
# BEGIN_PEER Test-__User-3
[Peer]
PublicKey = lenWwQngqnkOhfCZTcqlqu54v6SqupAfdzHVrYBwSCc=
PresharedKey = 7NjdyTtq4sG8l7k6AA1OtYqOVo7vXcExeKiE7G3Qhg4=
AllowedIPs = 10.7.0.6/32
# END_PEER Test-__User-3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment