Difference between revisions of "Wireguard"

From Alessandro's Wiki
(Created page with " [Interface] # Name = host Address = 192.0.2.3/32 ListenPort = 51820 PrivateKey = DNS = 1.0.0.1,1.0.0.2 Table = 12345 MTU = 1420 PreUp = /bin/example arg1 arg2 %i PostUp = /bin/example arg1 arg2 %i PreDown = /bin arg1 arg2 %i PostDown = /bin arg1 arg2 %i [Peer] # Name = peer AllowedIPs = 10.0.2.1/24 Endpoint = node1.example.tld:12345 PublicKey = remotePublicKeyAbcAbcAbc= PersistentKeepalive = 25")
 
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
  [Interface]
  [Interface]
  # Name = host
  # Name = host
  Address = 192.0.2.3/32
  Address = 10.0.2.3/32
  ListenPort = 51820
  ListenPort = 12345
  PrivateKey =
  PrivateKey =
  DNS = 1.0.0.1,1.0.0.2
  DNS = 1.0.0.1,1.0.0.2
  Table = 12345
  Table = 1234
  MTU = 1420
  # MTU = 1420
  PreUp = /bin/example arg1 arg2 %i
  # PreUp = /bin %i
  PostUp = /bin/example arg1 arg2 %i
  # PostUp = /bin %i
  PreDown = /bin arg1 arg2 %i
  # PreDown = /bin %i
  PostDown = /bin arg1 arg2 %i
  # PostDown = /bin %i


  [Peer]
  [Peer]
  # Name = peer
  # Name = peer
  AllowedIPs = 10.0.2.1/24
  AllowedIPs = 10.0.2.1/24
  Endpoint = node1.example.tld:12345
  Endpoint = peer.fqdn:56789
  PublicKey = remotePublicKeyAbcAbcAbc=
  PublicKey =
  PersistentKeepalive = 25
  PersistentKeepalive = 60

Latest revision as of 22:45, 15 August 2025

[Interface]
# Name = host
Address = 10.0.2.3/32
ListenPort = 12345
PrivateKey =
DNS = 1.0.0.1,1.0.0.2
Table = 1234
# MTU = 1420
# PreUp = /bin %i
# PostUp = /bin %i
# PreDown = /bin %i
# PostDown = /bin %i
[Peer]
# Name = peer
AllowedIPs = 10.0.2.1/24
Endpoint = peer.fqdn:56789
PublicKey =
PersistentKeepalive = 60